Guido van Rossum
bfc3944bfd
Change by Andrew Kuchling (edited by Guido):
...
Removed unused import tempfile.
Added some docstrings.
1997-03-25 21:58:08 +00:00
Guido van Rossum
31ef35b861
Added two new questions about number conversions.
1997-03-25 18:25:20 +00:00
Roger E. Masse
e5a9c8fa31
As per GvR recomendation, added support for a 'sync' attribute for the
...
GDBM module.
1997-03-25 17:39:56 +00:00
Guido van Rossum
1eb9a81eb9
Added new functions replace() and replace1().
1997-03-25 16:50:31 +00:00
Guido van Rossum
c8a80cdbad
Added docs for replace() and replace1().
1997-03-25 16:41:31 +00:00
Roger E. Masse
4fc7067055
Added a 'sync' method to shelve. If the underlying database does not have a sync
...
attribute, this method silently ignores this fact. The default (bsddb's dbhash) does.
1997-03-25 16:06:03 +00:00
Guido van Rossum
e8e87999ab
Remove untrue statement about . and .. being included in list of names
...
passed to walk() visitor.
1997-03-25 15:25:54 +00:00
Guido van Rossum
fb8f1cadb2
Add clear() method to dictionary objects.
1997-03-21 21:55:12 +00:00
Guido van Rossum
3ee6b195bb
Removed 'marshal' from the list of "ok" built-in functions -- the
...
unmarshalling code is actually rather naive and can easily be
caused to crash by feeding it invalid data. This should be fixed in
the marshal module, but I don't have the time to fix it now :-(
1997-03-21 21:18:16 +00:00
Guido van Rossum
bcd91e07d1
Fix typo (missing $ in )
1997-03-20 20:46:29 +00:00
Guido van Rossum
4d81984011
Ping's new version -- more efficient at finding the keywords.
1997-03-20 20:40:45 +00:00
Guido van Rossum
3d99e35884
Added __assert__.
1997-03-20 19:46:41 +00:00
Guido van Rossum
eb8c972648
Ka-Ping Yee's version is better:
...
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.
1997-03-20 19:45:51 +00:00
Guido van Rossum
90d556fb6e
Simple module to publish list of Python keywords.
1997-03-20 19:44:30 +00:00
Guido van Rossum
f789ee4a86
Avoid crashes with nested multipart/mixed parts.
1997-03-20 14:42:17 +00:00
Guido van Rossum
14d1c721d5
Added note about adding \n to source for exec and compile.
1997-03-19 14:43:28 +00:00
Guido van Rossum
4a908be231
Added Q. about HTTP/1.1.
1997-03-16 18:34:00 +00:00
Guido van Rossum
f2e499b1d7
New long_lshift, without restriction on size of shift count, by Tim Peters.
...
This makes it possible to write 1L<<1000000, memory permitting.
1997-03-16 00:37:59 +00:00
Guido van Rossum
e053c67780
Remove err_input -- there is no such global!
1997-03-14 05:09:30 +00:00
Guido van Rossum
45b83915f8
New form of PyFPE_END_PROTECT macro.
1997-03-14 04:32:50 +00:00
Guido van Rossum
1aeb1047ba
Include setjmp.h so it compiles if WANT_SIGFPE_HANDLER is undefined.
1997-03-14 04:32:25 +00:00
Guido van Rossum
f0958064f9
Remove redundant references to thread stuff -- long, long ago, there
...
was some locking code in this file that needed it...
1997-03-14 04:25:22 +00:00
Guido van Rossum
74277916a9
Add Macros defining new names for all external symbols.
1997-03-14 04:24:08 +00:00
Guido van Rossum
1f06beeedd
Change PyFPE_END_PROTECT to PyFPE_END_PROTECT(v). v should be the
...
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.
1997-03-14 04:23:42 +00:00
Guido van Rossum
efd3a3a843
Implement find_class() without exec statement.
1997-03-14 04:21:10 +00:00
Guido van Rossum
c69955343c
Change the list() function to match the documentation in the comment
...
(it should return a list of tuples, not a list of lists).
1997-03-14 04:18:20 +00:00
Guido van Rossum
56d1e3a517
Added Fred Drake's netrc parser class.
1997-03-14 04:16:54 +00:00
Guido van Rossum
18aef3c102
Support disassembly of a variety of objects through dis.dis().
1997-03-14 04:15:43 +00:00
Guido van Rossum
7b7c578616
Add optional 4th argument to [r]find and [r]index (end of slice).
1997-03-14 04:13:56 +00:00
Guido van Rossum
612316f016
Add a rough list of undocumented stuff at the end.
1997-03-14 04:12:52 +00:00
Guido van Rossum
1f8cee2521
Hint about [\] trick to avoid quad backslashes.
1997-03-14 04:10:13 +00:00
Fred Drake
db5a41f16b
target libinstall:
...
Create the .pyo files corresponding to the .py and .pyc files as
well.
1997-03-13 14:14:29 +00:00
Fred Drake
ef8dc06c01
compile(): Use the __debug__ flag to determine the proper filename extension
...
to use for the cached module code object.
1997-03-13 14:13:16 +00:00
Guido van Rossum
6af0c00ab6
Fix dumb bug calling parsestrplus with wrong node as argument.
...
Add prototypes for parsestr() and parsestrplus() (unrelated, but
seemed to make sense.)
1997-03-11 21:25:55 +00:00
Guido van Rossum
1c6a459921
Define __debug__ as 0 if -O is given, 1 otherwise. Also test for
...
errors in initializing the dictionary.
1997-03-11 18:43:26 +00:00
Guido van Rossum
7c53111d5b
Added support for ``if __debug__:'' -- if -O is given, this form is
...
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.
1997-03-11 18:42:21 +00:00
Guido van Rossum
0824f63cfc
When -O is given, use ".pyo" instead of ".pyc".
1997-03-11 18:37:35 +00:00
Guido van Rossum
80eb3c0202
Zap all env vars beginning with PYTHON to prevent an obvious form of attack.
1997-03-11 18:24:21 +00:00
Guido van Rossum
b5dc5e3d7e
Added support for imaginary constants (e.g. 0j, 1j, 1.0j).
1997-03-10 23:17:01 +00:00
Guido van Rossum
c43b685054
Clarify error message for unexpected keyword parameter.
1997-03-10 22:58:23 +00:00
Guido van Rossum
27e280dc77
Restore old behavior of autotest and testall, using regrtest.
...
This is done for backward compatibility with Python 1.4.
1997-03-07 21:05:43 +00:00
Guido van Rossum
f58ed25967
Add "extra-verbose" mode, triggered by specifying two -v flags. In
...
this mode, all tests are run in verbose mode with their output to
stdout. No comparing of output is done.
1997-03-07 21:04:33 +00:00
Guido van Rossum
e69be3eb93
Much more rigorous testing -- we now try many times, varying in time
...
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.)
1997-03-07 20:30:03 +00:00
Guido van Rossum
b51eaa183e
Fixed doc string, added __version__, fixed 1 bug.
1997-03-07 00:21:55 +00:00
Guido van Rossum
fc6f5339a9
Ka-Ping's version.
1997-03-07 00:21:12 +00:00
Guido van Rossum
19700b6a98
Add casts to CMPERROR macro to silence SunPro compiler warnings about
...
integer overflow in << operator.
1997-03-05 00:45:43 +00:00
Guido van Rossum
82598051e6
Greatly renamed. Not a very thorough job -- I'm going to restructure
...
it anyway.
1997-03-05 00:20:32 +00:00
Guido van Rossum
159b77fd5e
Add Emacs shell-script directive, SunPro version#, and fix typo
1997-03-04 23:44:15 +00:00
Guido van Rossum
53bb550a5f
Solaris and IRIX specific instructions for fpectl.
1997-03-04 23:36:04 +00:00
Guido van Rossum
f39fc43f31
A few comment alignment and clarifications.
1997-03-04 18:31:47 +00:00