Guido van Rossum
659a3b5881
Optimized the hell out of listmessages().
...
Changed numericprog regexpr to make it faster to check.
Removed now unnecessary checks for os.curdir, os.pardir.
1997-04-02 01:18:30 +00:00
Guido van Rossum
c054d70aee
Get rid of .conj pseudo data attribute for complex numbers.
...
Add __members__ attribute.
1997-04-01 03:12:33 +00:00
Guido van Rossum
94dbd99483
Remove ConflictError (which was also removed from bltinmodule.c, even
...
though the checkin message failed to note that).
1997-03-31 17:19:40 +00:00
Guido van Rossum
9199f62aa1
remove ConflictError
1997-03-31 17:19:05 +00:00
Guido van Rossum
5a35e32de6
Remove ConflictError, add InteractiveFlag, CObject_Type, FdIsInteractive, and thread entry points.
1997-03-31 17:18:03 +00:00
Guido van Rossum
c6472e9ee1
1. Add string conversions to int(), long(), float(). (Not to complex()!)
...
2. Fix two bugs in complex():
- Memory leak when using complex(classinstance) -- r was never
DECREF'ed.
- Conversion of the second argument, if not complex, was done using
the type vector of the 1st.
1997-03-31 17:15:43 +00:00
Guido van Rossum
dddf7a6fb4
Added test of complex() (that catches a bug in 1.4!).
...
Added test that ensures that int() and long() truncate float numbers
towards zero.
1997-03-31 17:13:17 +00:00
Guido van Rossum
8d2893b5b2
Added a list of the main undocumented extension modules.
1997-03-27 20:57:52 +00:00
Guido van Rossum
7f3b0421de
Added docs for UserDict,UserList
1997-03-27 14:56:18 +00:00
Guido van Rossum
b6a80262e1
Added docs for glob and mailcap
1997-03-25 22:09:18 +00:00
Guido van Rossum
e6d579ddbc
Added docs for glob
1997-03-25 22:07:53 +00:00
Guido van Rossum
20af95b433
Added docs for mailcap
1997-03-25 22:01:35 +00:00
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