Guido van Rossum
21aa0ef351
Changed my mind on replace().
...
It's now replace(str, old, new, maxsplit=0).
Note new ordering of parameters (string first);
this is more consistent with translate().
1997-04-02 05:49:46 +00:00
Guido van Rossum
aa925a5efd
Add #! line.
1997-04-02 05:47:39 +00:00
Guido van Rossum
ab096c91e2
New doc strings.
1997-04-02 05:47:11 +00:00
Guido van Rossum
fd79566d0f
Fix two small bugs with proxies.
1997-04-02 05:46:35 +00:00
Guido van Rossum
a9a3575e26
New symbols due to assert statement.
1997-04-02 05:46:05 +00:00
Guido van Rossum
c1a4ba97b7
New test output for test_builtin
1997-04-02 05:44:51 +00:00
Guido van Rossum
3917c22125
Win32 precision clock() -- Mark Hammond.
1997-04-02 05:35:28 +00:00
Guido van Rossum
9bf8445541
Support include statement :-(
1997-04-02 05:33:00 +00:00
Guido van Rossum
925e547fcc
Support assert stmt.
1997-04-02 05:32:13 +00:00
Guido van Rossum
4669fb474b
Several fixes reported by jim F.
1997-04-02 05:31:09 +00:00
Guido van Rossum
2a7f58de1c
Allow passing a .pyo file.
...
Print correct name in fatal error from PyErr_Print.
1997-04-02 05:28:38 +00:00
Guido van Rossum
228d7f3f67
Added assert statement.
1997-04-02 05:24:36 +00:00
Guido van Rossum
8ecd1ad785
Added assert grammar.
1997-04-02 05:24:08 +00:00
Guido van Rossum
6dacd90a83
Allow leading underscore in keywords.
1997-04-02 05:23:46 +00:00
Guido van Rossum
6fa4466cec
Added AssertionError.
1997-04-02 05:22:53 +00:00
Guido van Rossum
556440d278
Added __assert__ statement (later to be renamed)
1997-04-02 05:22:18 +00:00
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