summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Ka-Ping Yee's version is better:Guido van Rossum1997-03-201-37/+116
| | | | | | | | | | Here's a "keyword" module which, in the spirit of "token.py", updates the list of keywords automatically from a source file (in this case, "graminit.c" seemed like a reasonable choice, easier than "Grammar/Grammar"). You get "kwlist", a sorted list of keywords; "kwdict", a dictionary mapping each keyword to 1; and "iskeyword", a function which tells you if a given string happens to be a keyword.
* Simple module to publish list of Python keywords.Guido van Rossum1997-03-201-0/+37
|
* Avoid crashes with nested multipart/mixed parts.Guido van Rossum1997-03-201-1/+8
|
* Added note about adding \n to source for exec and compile.Guido van Rossum1997-03-191-0/+7
|
* Added Q. about HTTP/1.1.Guido van Rossum1997-03-161-0/+11
|
* New long_lshift, without restriction on size of shift count, by Tim Peters.Guido van Rossum1997-03-161-26/+22
| | | | This makes it possible to write 1L<<1000000, memory permitting.
* Remove err_input -- there is no such global!Guido van Rossum1997-03-141-1/+0
|
* New form of PyFPE_END_PROTECT macro.Guido van Rossum1997-03-1412-36/+36
|
* Include setjmp.h so it compiles if WANT_SIGFPE_HANDLER is undefined.Guido van Rossum1997-03-141-0/+1
|
* Remove redundant references to thread stuff -- long, long ago, thereGuido van Rossum1997-03-141-6/+0
| | | | was some locking code in this file that needed it...
* Add Macros defining new names for all external symbols.Guido van Rossum1997-03-142-0/+36
|
* Change PyFPE_END_PROTECT to PyFPE_END_PROTECT(v). v should be theGuido van Rossum1997-03-141-3/+3
| | | | | | last variable to which a floating point expression is assigned. The macro passes its address to a dummy function so that the optimizer can't delay calculating its value until after the macro.
* Implement find_class() without exec statement.Guido van Rossum1997-03-141-4/+2
|
* Change the list() function to match the documentation in the commentGuido van Rossum1997-03-141-1/+1
| | | | (it should return a list of tuples, not a list of lists).
* Added Fred Drake's netrc parser class.Guido van Rossum1997-03-141-0/+100
|
* Support disassembly of a variety of objects through dis.dis().Guido van Rossum1997-03-141-0/+17
|
* Add optional 4th argument to [r]find and [r]index (end of slice).Guido van Rossum1997-03-145-43/+99
|
* Add a rough list of undocumented stuff at the end.Guido van Rossum1997-03-145-1/+445
|
* Hint about [\] trick to avoid quad backslashes.Guido van Rossum1997-03-142-4/+6
|
* target libinstall:Fred Drake1997-03-131-0/+2
| | | | | Create the .pyo files corresponding to the .py and .pyc files as well.
* compile(): Use the __debug__ flag to determine the proper filename extensionFred Drake1997-03-131-1/+1
| | | | to use for the cached module code object.
* Fix dumb bug calling parsestrplus with wrong node as argument.Guido van Rossum1997-03-111-1/+3
| | | | | Add prototypes for parsestr() and parsestrplus() (unrelated, but seemed to make sense.)
* Define __debug__ as 0 if -O is given, 1 otherwise. Also test forGuido van Rossum1997-03-111-0/+4
| | | | errors in initializing the dictionary.
* Added support for ``if __debug__:'' -- if -O is given, this form isGuido van Rossum1997-03-111-2/+90
| | | | | | | | | | | recognized by the code generator and code generation for the test and the subsequent suite is suppressed. One must write *exactly* ``if __debug__:'' or ``elif __debug__:'' -- no parentheses or operators must be present, or the optimization is not carried through. Whitespace doesn't matter. Other uses of __debug__ will find __debug__ defined as 0 or 1 in the __builtin__ module.
* When -O is given, use ".pyo" instead of ".pyc".Guido van Rossum1997-03-111-1/+9
|
* Zap all env vars beginning with PYTHON to prevent an obvious form of attack.Guido van Rossum1997-03-111-0/+2
|
* Added support for imaginary constants (e.g. 0j, 1j, 1.0j).Guido van Rossum1997-03-101-4/+5
|
* Clarify error message for unexpected keyword parameter.Guido van Rossum1997-03-101-1/+4
|
* Restore old behavior of autotest and testall, using regrtest.Guido van Rossum1997-03-072-217/+7
| | | | This is done for backward compatibility with Python 1.4.
* Add "extra-verbose" mode, triggered by specifying two -v flags. InGuido van Rossum1997-03-071-4/+12
| | | | | this mode, all tests are run in verbose mode with their output to stdout. No comparing of output is done.
* Much more rigorous testing -- we now try many times, varying in timeGuido van Rossum1997-03-071-86/+97
| | | | | | | | | | | | | of day, day of week, and season. Fix the weekday predictions -- these seemed to be all bogus. The new predictions seem to correspond with strftime() on Solaris and IRIX, so I believe they are correct. Get rid of the test for non-standard format %C returning "the same as date(1)". This is hard to do reliably without opening a pipe to date, and moreover, on IRIX 6.2, %C yields the Century. So we use that instead. (We don't complain about this in non-verbose mode anyway.)
* Fixed doc string, added __version__, fixed 1 bug.Guido van Rossum1997-03-071-11/+18
|
* Ka-Ping's version.Guido van Rossum1997-03-071-45/+132
|
* Add casts to CMPERROR macro to silence SunPro compiler warnings aboutGuido van Rossum1997-03-051-1/+1
| | | | integer overflow in << operator.
* Greatly renamed. Not a very thorough job -- I'm going to restructureGuido van Rossum1997-03-051-210/+211
| | | | it anyway.
* Add Emacs shell-script directive, SunPro version#, and fix typoGuido van Rossum1997-03-041-2/+3
|
* Solaris and IRIX specific instructions for fpectl.Guido van Rossum1997-03-041-2/+14
|
* A few comment alignment and clarifications.Guido van Rossum1997-03-041-3/+5
|
* Add -O option which sets Py_OptimizeFlag to avoid emitting SET_LINENO.Guido van Rossum1997-03-031-2/+7
| | | | | Fred: sorry, I hadn't checked these changes in. This should fix your tracebacks!
* Add global Py_OptimizeFlag.Guido van Rossum1997-03-031-0/+1
|
* Add global Py_OptimizeFlag. SET_LINENO is omitted again unless this isGuido van Rossum1997-03-031-4/+7
| | | | nonzero.
* Added intern()Guido van Rossum1997-03-032-0/+26
|
* Added ref to StringIO docs.Guido van Rossum1997-03-032-0/+6
|
* Correct two typosGuido van Rossum1997-03-032-2/+2
|
* Fix name of PyObject_GetAttrStringGuido van Rossum1997-03-031-1/+1
|
* Added (minimal) StringIO docs.Guido van Rossum1997-03-035-1/+31
|
* Fix up indentation of examples to use 4 spaces instead of tabs.Guido van Rossum1997-02-282-118/+118
|
* Remove the list of Python users, replace it with a pointer to theGuido van Rossum1997-02-261-38/+2
| | | | on-line list of same.
* Added new ftp mirror site ftp://ftp.cdrom.com/pub/python/ (Walnut Creek CDROM).Guido van Rossum1997-02-251-0/+1
|
* Converted to CW11.Jack Jansen1997-02-2433-12036/+12178
|