| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
2.2.1 bugfix candidate.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This fixes SF bug #495896.
Fix up various markup consistency & style guide conformance nits.
|
| |
|
|
|
|
|
|
|
| |
(ditto for PyMem_Free() -> PyMem_FREE()) to fix and close SF bug
#495875 on systems that HAVE_SNPRINTF=0.
Check in on both release-22 branch and trunk.
|
|
|
|
|
|
| |
Question for Jack Jansen: is this reasonable?
Candidate for 2.2 release branch (if Jack thinks it's OK).
|
|
|
|
|
|
|
|
|
|
| |
Make dumbdbm merely "dumb", rather than "terminally broken". Without this
patch, it's almost impossible to use dumbdbm _without_ causing horrible
datalossage. With this patch, dumbdbm passes my own horrible torture test,
as well as the roundup test suite.
dumbdbm really could do with a smidgin of a rewrite or two, but that's not
suitable for the release21-maint branch.
|
|
|
|
|
|
| |
Describe super() very briefly
A few minor reformattings and wording changes
Set the release date (presumably tomorrow...)
|
|
|
|
| |
This closes SF bug #495609.
|
|
|
|
| |
This fixes SF bug #495221.
|
|
|
|
|
| |
advice on docstrings.
This fixes SF bug #495601.
|
| |
|
|
|
|
|
| |
actual availability on Windows.
This fixes SF bug #495191.
|
|
|
|
|
| |
right version this time. Thanks, Ping!
(This was from SF patch #494582, "\index -> \indexii" version.)
|
|
|
|
|
| |
Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty
string. Built on rfc822, this used to return None.
|
|
|
|
| |
Remove reference to this being a draft
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rfc822.AddressList incorrectly handles empty address.
"<>" is converted to None and should be "".
AddressList.__str__() fails on None.
I got an email with such an address and my program
failed processing it.
Example:
>>> import rfc822
>>> rfc822.AddressList("<>").addresslist
[('', None)]
>>> str(rfc822.AddressList("<>"))
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.1/rfc822.py", line 753, in __str__
return ", ".join(map(dump_address_pair,
self.addresslist))
TypeError: sequence item 0: expected string, None found
[His solution: in the internal routine AddrlistClass.getrouteaddr(),
initialize adlist to "".]
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- use repr instead of implied str for doubles
- updated version number to 1.0.0 (for 2.2 final)
|
| |
|
| |
|
|
|
|
|
|
|
| |
Patch from Mark Hammond, plus code rearrangement and comments from me.
posix_do_stat(): Windows-specific code could try to free() stack
memory in some cases when a path ending with a forward or backward slash
was passed to os.stat().
|
| |
|
|
|
|
| |
reported by Dan Parisien.
|
|
|
|
|
|
|
|
|
|
|
|
| |
metaclass, reported by Dan Parisien.
Objects that are instances of custom metaclasses, i.e. whose ob_type
is a subclass of PyType_Type, should be pickled the same as new-style
classes (objects whose ob_type is PyType_Type). This can't be done
through the existing dispatch switches, and the __reduce__ trick
doesn't work for these, since it finds the unbound __reduce__ for
instances of the class (inherited from PyBaseObject_Type). So check
explicitly using PyType_IsSubtype().
|
|
|
|
|
|
|
|
|
|
|
| |
metaclass, reported by Dan Parisien.
Objects that are instances of custom metaclasses, i.e. whose class is
a subclass of 'type', should be pickled the same as new-style classes
(objects whose class is 'type'). This can't be done through a
dispatch table entry, and the __reduce__ trick doesn't work for these,
since it finds the unbound __reduce__ for instances of the class
(inherited from 'object'). So check explicitly using issubclass().
|
| |
|
|
|
|
| |
both are proxy objects.
|
|
|
|
| |
under regrtest.
|
|
|
|
| |
__safe_for_unpickling__ attribute.
|
|
|
|
| |
"handler()" function, not the "handle()" function.
|
|
|
|
|
| |
extension, not the EXT one, as regen uses the python binary in the build
directory. Fixes #493959.
|
|
|
|
|
|
|
|
| |
binascii_b2a_base64(): We didn't allocate enough buffer space for very
short inputs (e.g., a 1-byte input can produce a 5-byte output, but we
only allocated 2 bytes). I expect that malloc overheads absorbed the
overrun in practice, but computing a correct upper bound is a very simple
change.
|
|
|
|
|
| |
eval_frame(): Added asserts to the top of the eval loop, to verify
that the eval stack pointer is in bounds, plus some comments.
|
| |
|
| |
|
|
|
|
|
| |
to prevent mysterious errors at shutdown due to "os.unlink" turning into
"None.unlink".
|
|
|
|
|
|
| |
This way, when a socket object is deleted after the socket module has
already been zapped by module shutdown, we don't get annoying warnings
about exceptions in __del__ methods.
|
| |
|
|
|
|
| |
available in OSX (mach-o) but not in CarbonLib (neither on OSX or OS9).
|
|
|
|
|
|
|
|
|
|
|
|
| |
crashes.
If no external zip-utility is found, the archive is created by the
zipfile module, which behaves different now than in 2.1: if the
zip-file is created in the root directory if the distribution, it will
contain an (empty) version of itself.
This triggered the above bug - so it's better to create the zip-file
far away in the TMP directory.
|
| |
|
|
|
|
| |
This closes SF patch #494622.
|