Staging
v0.5.1
https://github.com/python/cpython
Revision c5a39034727cc193f891c5a75475dab550c9feac authored by Guido van Rossum on 31 July 1996, 17:35:03 UTC, committed by Guido van Rossum on 31 July 1996, 17:35:03 UTC
- Improved version of NeXT patching of $OPT
- Added new option --with-libs='lib1 lib2 ...'
- Define _REENTRANT when posix threads are in use
1 parent bed23fe
Raw File
Tip revision: c5a39034727cc193f891c5a75475dab550c9feac authored by Guido van Rossum on 31 July 1996, 17:35:03 UTC
Three changes:
Tip revision: c5a3903
keywords.py
#! /usr/local/bin/python

# This Python program sorts and reformats the table of keywords in ref2.tex

import string
l = []
try:
	while 1:
		l = l + string.split(raw_input())
except EOFError:
	pass
l.sort()
for x in l[:]:
	while l.count(x) > 1: l.remove(x)
ncols = 5
nrows = (len(l)+ncols-1)/ncols
for i in range(nrows):
	for j in range(i, len(l), nrows):
		print string.ljust(l[j], 10),
	print
back to top