- 19 Dec, 2001 9 commits
-
-
Guido van Rossum authored
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().
-
Fred Drake authored
-
Fred Drake authored
both are proxy objects.
-
Fred Drake authored
under regrtest.
-
Guido van Rossum authored
__safe_for_unpickling__ attribute.
-
Fred Drake authored
"handler()" function, not the "handle()" function.
-
Jack Jansen authored
extension, not the EXT one, as regen uses the python binary in the build directory. Fixes #493959.
-
Tim Peters authored
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.
-
Tim Peters authored
eval_frame(): Added asserts to the top of the eval loop, to verify that the eval stack pointer is in bounds, plus some comments.
-
- 18 Dec, 2001 16 commits
-
-
Tim Peters authored
-
Martin v. Löwis authored
-
Tim Peters authored
to prevent mysterious errors at shutdown due to "os.unlink" turning into "None.unlink".
-
Guido van Rossum authored
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.
-
Thomas Heller authored
-
Just van Rossum authored
available in OSX (mach-o) but not in CarbonLib (neither on OSX or OS9).
-
Thomas Heller authored
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.
-
Fred Drake authored
-
Fred Drake authored
This closes SF patch #494622.
-
Fred Drake authored
This is part of SF patch #494622.
-
Fred Drake authored
annotation as well. This closes SF patch #494582.
-
Jack Jansen authored
-
Jack Jansen authored
-
Just van Rossum authored
-
Just van Rossum authored
for DataBrowser controls.
-
Just van Rossum authored
for GetEventParameter().
-
- 17 Dec, 2001 12 commits
-
-
Tim Peters authored
obvious to anyone except PyType_Ready's author <0.9 wink>.
-
Guido van Rossum authored
types (the tp_base field must be initialized prior to that call).
-
Guido van Rossum authored
to the non-existing pympz (did that ever exist?).
-
Guido van Rossum authored
NULL, so that you can call PyType_Ready() to initialize a type that is to be separately compiled with C on Windows. inherit_special(): Add a long comment explaining that you have to set tp_new if your base class is PyBaseObject_Type.
-
Guido van Rossum authored
-
Barry Warsaw authored
paren. This was there to worm around a stupid XEmacs bug, but since I can't tickle the bug in newer XEmacsen (just tried w/21.4.5) it's possible the problem has been fixed. We shouldn't have to be working around editor bugs anyway. If it crops up again, I'll report it (again) to the XEmacs crowd.
-
Jack Jansen authored
-
Jack Jansen authored
-
Sjoerd Mullender authored
unescaped newlines in strings.
-
Steve Purcell authored
- Adds Fred's patch 487662: "Better error message for assertEqual" - Removed small portion of code unused after Guido's patch 490119: "Don't treat ^C as error"
-
Guido van Rossum authored
Montanaro) (With minor adjustments.)
-
Tim Peters authored
got a barrage of compile errors that didn't make sense to the C++ brain: MSVC does not allow C (but does allow C++) initializers to contain data addresses supplied by other DLLs. So changed the initializers here to use dummy nulls, and changed module init to plug in the foreign addresses at runtime (manually simulating what C++ does by magic). Tested on Windows, and Guido tested on Linux (thanks!). BTW, the *point* is that people are going to use this module as a template for writing their own subtypes, and it's unusual for extension authors to build their extensions into Python directly (separate DLLs are the norm on Windows); so it's better if we give them a template that works <wink>.
-
- 16 Dec, 2001 3 commits
-
-
Jack Jansen authored
-
Tim Peters authored
to Guido for the revelation).
-
Tim Peters authored
about its dubious treatment of NULL (also opened a bug report on that, but don't want to risk changing it this late in the 2.2 game).
-