Raymond Hettinger
a9e14b7015
Fix leak in classobject.c. The leak surfaced on the error exit when
...
hashing a class that does not define __hash__ but does define a
comparison.
2003-09-16 07:11:46 +00:00
Raymond Hettinger
2d72b5d707
Test __all__ for unittest.py
2003-09-16 04:37:39 +00:00
Raymond Hettinger
cc1798e0c0
Improve the leak fix so that PyTuple_New is only called when needed.
2003-09-16 04:27:52 +00:00
Jeremy Hylton
deb2dc6658
Change checks of PyUnicode_Resize() return value for clarity.
...
The unicode_resize() family only returns -1 or 0 so simply checking
for != 0 is sufficient, but somewhat unclear. Many Python API
functions return < 0 on error, reserving the right to return 0 or 1 on
success. Change the call sites for consistency with these calls.
2003-09-16 03:41:45 +00:00
Jeremy Hylton
364f6becad
Correct check of PyUnicode_Resize() return value.
2003-09-16 03:17:16 +00:00
Jeremy Hylton
1aad9c7dad
Reflow long lines and reformat.
2003-09-16 03:10:59 +00:00
Raymond Hettinger
37a724d718
Fix leak discovered in test_new by Michael Hudson.
...
Will backport to 2.3.1
2003-09-15 21:43:16 +00:00
Raymond Hettinger
1e4cf67c32
SF bug #804113 : Crypto terminology for crypto hash function
...
Noted that the SHA algorithm is really SHA-1.
(Contributed by Ronald Rivest.)
2003-09-15 18:20:52 +00:00
Andrew M. Kuchling
99f3ba1648
Remove possibly-misleading Expat version
2003-09-15 12:27:18 +00:00
Steve Purcell
d75e7e4342
Explicitly define public symbols via __all__: see discussion with Raymond
...
Hettinger in comments for issue 804115
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=804115&group_id=5470
2003-09-15 11:01:21 +00:00
Raymond Hettinger
d55111f791
* Converted test to unittest format.
...
* Expanded coverage.
2003-09-13 05:51:09 +00:00
Raymond Hettinger
2e9da6020e
The previous change works much faster (one lookup per key) when
...
iteritems() is defined.
2003-09-13 03:18:34 +00:00
Raymond Hettinger
91dd19db6f
SF bug #804115 : bad argument handling(unittest.py)
2003-09-13 02:58:00 +00:00
Raymond Hettinger
42a61ed277
Simplify doctest of tee().
2003-09-13 01:01:34 +00:00
Martin v. Löwis
cbe81f2a72
Patch #793021 : Implement htmllib.HTMLParser.reset. Fixes #711632 .
...
Backported to 2.3.
2003-09-12 16:38:00 +00:00
Martin v. Löwis
1b699a5f00
Patch #790000 : Allow os.access to handle Unicode file name.
2003-09-12 16:25:38 +00:00
Raymond Hettinger
deadbf50e4
SF #662923
...
Add support for the iterator and mapping protocols.
For Py2.3, this was done for shelve, dumbdbm and other mapping objects, but
not for bsddb and dbhash which were inadvertently missed.
2003-09-12 06:33:37 +00:00
Raymond Hettinger
74c8e55f3b
SF bug #804280 : fromkeys is not listed in index
2003-09-12 00:02:37 +00:00
Fred Drake
614438ab06
fix markup buglets
2003-09-11 18:18:54 +00:00
Fred Drake
f5c87c4d99
- added many links into the library reference
...
- removed use of the string module
- fixed some broken markup
2003-09-11 06:06:26 +00:00
Fred Drake
626d472edd
- add several links into the library reference
...
- update a couple of URLs to point to more recent portions of
python.org
2003-09-11 04:28:13 +00:00
Fred Drake
11b138fbf7
remove useless <br/> from the top navigation panel
2003-09-11 04:14:20 +00:00
Fred Drake
4587fa21ea
try to fix up the padding inside a notice environment so they fit in a
...
little better, with similar spacing characteristics with the seealso
environment
2003-09-11 04:08:47 +00:00
Raymond Hettinger
fe63faaeeb
SF patch #803449 : modernize demo scripts
...
(Contributed by George Yoshida.)
2003-09-10 21:12:59 +00:00
Fred Drake
7c4d8f3ca9
- add version annotation for HIGHEST_PROTOCOL
...
- cleaned up some markup
2003-09-10 20:47:43 +00:00
Jeremy Hylton
b7b1db9191
Oops. Really fix the indentation problem this time.
2003-09-10 20:19:54 +00:00
Jeremy Hylton
d7fb676023
Fix inconsistent mix of tabs and spaces that caused test to fail.
2003-09-10 19:57:31 +00:00
Brett Cannon
62dba4c277
select.select() now accepts a sequence (as defined by PySequence_Fast()) for
...
its first three arguments.
Closes RFE #798046 .
2003-09-10 19:37:42 +00:00
Skip Montanaro
fd4fa8801a
mention new module doc display feature of pydoc in libref and NEWS
2003-09-10 19:04:13 +00:00
Raymond Hettinger
6e380cd1d8
SF bug #803679 : Missing section number in csv module documentation
2003-09-10 18:54:49 +00:00
Raymond Hettinger
5bcc933211
SF bug #803842 : Wrong description of regexp concatenation
2003-09-10 18:45:12 +00:00
Skip Montanaro
4997a69fe4
display link to module docs when it looks like the object module is a core
...
module
2003-09-10 16:47:51 +00:00
Raymond Hettinger
0d6e8cde1a
SF bug #802302 : Invalid documentation for dbhash.
...
The documentation severely departed for the actual implementation.
2003-09-10 04:44:29 +00:00
Raymond Hettinger
bed92ee2b2
SF patch #800899 : Making "|" directive from REs a bit clearer.
2003-09-10 03:54:50 +00:00
Kurt B. Kaiser
62685d36aa
Python Bug 775061
...
1. Remove "idle" script, it lives in Tools/scripts/ now.
2. Remove shebang from idle.py, should be called explicitly.
3. Remove obsolete test code from rpc.py; needs unit test.
2003-09-10 02:42:18 +00:00
Raymond Hettinger
9756f388c0
Fix typo.
2003-09-10 00:11:28 +00:00
Fred Drake
f5f0c17b85
end-of-sentence punctuation comes *before* \footnote, not after
2003-09-09 19:49:18 +00:00
Raymond Hettinger
dfa7bd97ff
SF #801306 : Bad RE in scanf example
2003-09-09 01:30:13 +00:00
Raymond Hettinger
74923d73ee
SF bug #560286 : Add docs for 'basestring'
2003-09-09 01:12:18 +00:00
Raymond Hettinger
a098b33c93
Add an example to address a common question of how to split iterators.
2003-09-08 23:58:40 +00:00
Raymond Hettinger
9d50d91e77
Set the warnings stacklevel to two.
2003-09-08 19:16:36 +00:00
Raymond Hettinger
f350160d43
Fix spacing markup and other sundries.
2003-09-08 19:01:04 +00:00
Raymond Hettinger
b67449d31d
Fix spacing markup and other sundries.
2003-09-08 18:52:18 +00:00
Raymond Hettinger
c60577ea59
Generalize the last change to check for other markup spacing errors.
2003-09-08 18:43:46 +00:00
Raymond Hettinger
b9c07af46c
Check for \NULL markup errors.
2003-09-08 17:33:31 +00:00
Martin v. Löwis
7bbcde70d1
Only release buffer after file has been closed. Fixes #800824 .
...
Will backport to 2.2.
2003-09-07 20:42:29 +00:00
Just van Rossum
ee8f10fa37
Patch #801349 : 64-bit fix for AMD64 from Gwenole Beauchesne.
...
Classical problem with int vs. long mismatch in varargs.
2.3 backport candidate.
2003-09-07 13:36:48 +00:00
Tim Peters
f1827cfaab
SF bug 801631: file.truncate fault on windows.
...
file_truncate(): C doesn't define what fflush(fp) does if fp is open
for update, and the preceding I/O operation on fp was input. On Windows,
fflush() actually changes the current file position then. Because
Windows doesn't support ftruncate() directly, this not only caused
Python's file.truncate() to change the file position (contra our docs),
it also caused the file not to change size.
Repaired by getting the initial file position at the start, restoring
it at the end, and tossing all the complicated micro-efficiency checks
trying to avoid "provably unnecessary" seeks. file.truncate() can't
be a frequent operation, and seeking to the current file position has
got to be cheap anyway.
Bugfix candidate.
2003-09-07 03:30:18 +00:00
Fred Drake
a26c16c821
fix \NULL with following space and no {} (two instances)
2003-09-07 02:33:37 +00:00
Fred Drake
4ccf6e738e
fix \NULL with following space and no {}
2003-09-07 02:32:55 +00:00