- 18 Mar, 2002 4 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
Neil Schemenauer yazdı
-
Neil Schemenauer yazdı
malloc() and free() don't change.
-
Guido van Rossum yazdı
The proper fix is not quite what was submitted; it's really better to take the class of the object passed rather than calling PyMethod_New with NULL pointer args, because that can then cause other core dumps later. I also added a testcase for the fix to classmethods() in test_descr.py. I've already applied this to the 2.2 branch.
-
- 17 Mar, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
Change the way __doc__ is handled, to avoid blowing up on non-string __doc__ values.
-
- 15 Mar, 2002 2 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
in PyObject_Get/SetAttr.
-
- 14 Mar, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
As promised in my response to the bug report, I'm not really fixing it; in fact, one could argule over what the proper fix should do. Instead, I'm adding a little magic that raises TypeError if you try to pickle an instance of a class that has __slots__ but doesn't define or override __getstate__. This is done by adding a bozo __getstate__ that always raises TypeError.
-
- 12 Mar, 2002 2 kayıt (commit)
-
-
Guido van Rossum yazdı
There were several places that assumed the md_dict field was always set, but it needn't be. Fixed these to be more careful. I changed PyModule_GetDict() to initialize md_dict to a new dictionary if it's NULL. Bugfix candidate.
-
Tim Peters yazdı
and (b) stop trying to prevent file growth. Beef up the file.truncate() docs. Change test_largefile.py to stop assuming that f.truncate() moves the file pointer to the truncation point, and to verify instead that it leaves the file position alone. Remove the test for what happens when a specified size exceeds the original file size (it's ill-defined, according to the Single Unix Spec).
-
- 11 Mar, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
dropping MS's inadequate _chsize() function. This was inspired by SF patch 498109 ("fileobject truncate support for win32"), which I rejected. libstdtypes.tex: Someone who knows should update the availability blurb. For example, if it's available on Linux, it would be good to say so. test_largefile: Uncommented the file.truncate() tests, and reworked to do more. The old comment about "permission errors" in the truncation tests under Windows was almost certainly due to that the file wasn't open for *write* access at this point, so of course MS wouldn't let you truncate it. I'd be appalled if a Unixish system did. CAUTION: Someone should run this test on Linux (etc) too. The truncation part was commented out before. Note that test_largefile isn't run by default.
-
- 10 Mar, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Adapter from SF patch 528038; fixes SF bug 527816. The wrapper for __nonzero__ should be wrap_inquiry rather than wrap_unaryfunc, since the slot returns an int, not a PyObject *.
-
- 09 Mar, 2002 2 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Tim Peters yazdı
Another year in the quest to out-guess random C behavior. Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y). The latter is useful for functions with complex results. Two corrections to errno- after-libm-call are attempted: 1. If the platform set errno to ERANGE due to underflow, clear errno. Some unknown subset of libm versions and link options do this. It's allowed by C89, but I never figured anyone would do it. 2. If the platform did not set errno but overflow occurred, force errno to ERANGE. C89 required setting errno to ERANGE, but C99 doesn't. Some unknown subset of libm versions and link options do it the C99 way now. Bugfix candidate, but hold off until some Linux people actually try it, with and without -lieee. I'll send a help plea to Python-Dev.
-
- 08 Mar, 2002 2 kayıt (commit)
-
-
Jeremy Hylton yazdı
If result == Py_NotImplemented, always DECREF it before assigning a new value to result.
-
Jeremy Hylton yazdı
PyNumber_Add() tries the nb_add slot first, then falls back to sq_concat. However, tt didn't check the return value of sq_concat. If sq_concat returns NotImplemented, raise the standard TypeError.
-
- 07 Mar, 2002 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
-
- 06 Mar, 2002 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
[ 526072 ] pickling os.stat results round II structseq's constructors can now take "invisible" fields in a dict. Gave the constructors better error messages. their __reduce__ method puts these fields in a dict. (this is all in aid of getting os.stat_result's to pickle portably) Also fixes [ 526039 ] devious code can crash structseqs Thought needed about how much of this counts as a bugfix. Certainly #526039 needs to be fixed.
-
- 05 Mar, 2002 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
[ 496873 ] structseqs unpicklable by adding a __reduce__ method to structseqs. Will also commit this to the 2.2.1 branch momentarily.
-
- 02 Mar, 2002 3 kayıt (commit)
-
-
Tim Peters yazdı
platform realloc(p, 0) returns NULL, so MALLOC_ZERO_RETURNS_NULL can be correctly undefined yet realloc(p, 0) can return NULL anyway. Prevent realloc(p, 0) doing free(p) and returning NULL via a different hack. Would probably be better to get rid of MALLOC_ZERO_RETURNS_NULL entirely. Bugfix candidate.
-
Tim Peters yazdı
copy the sign too. Added a test to test_descr to ensure that it does. Bugfix candidate.
-
Tim Peters yazdı
to fix was almost certainly a bug in _PyLong_Copy (which I'll fix next).
-
- 01 Mar, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Due to the bizarre definition of _PyLong_Copy(), creating an instance of a subclass of long with a negative value could cause core dumps later on. Unfortunately it looks like the behavior of _PyLong_Copy() is quite intentional, so the fix is more work than feels comfortable. This fix is almost, but not quite, the code that Naofumi Honda added; in addition, I added a test case.
-
- 28 Şub, 2002 1 kayıt (commit)
-
-
Andrew MacIntyre yazdı
Objects/ stringobject.c unicodeobject.c
-
- 26 Şub, 2002 1 kayıt (commit)
-
-
Andrew MacIntyre yazdı
Objects/ fileobject.c stringobject.c unicodeobject.c This commit doesn't include the cleanup patches for stringobject.c and unicodeobject.c which are shown separately in the patch manager. Those patches will be regenerated and applied in a subsequent commit, so as to preserve a fallback position (this commit to those files).
-
- 18 Şub, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
fixes #504343. 2.2.1 candidate.
-
- 16 Şub, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 08 Şub, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This fixes SF bug #514858 (Gregory Smith): complex not entirely immutable 2.2.1 Bugfix candidate!
-
- 07 Şub, 2002 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
Fix for the UTF-8 decoder: it will now accept isolated surrogates (previously it raised an exception which causes round-trips to fail). Added new tests for UTF-8 round-trip safety (we rely on UTF-8 for marshalling Unicode objects, so we better make sure it works for all Unicode code points, including isolated surrogates). Bumped the PYC magic in a non-standard way -- please review. This was needed because the old PYC format used illegal UTF-8 sequences for isolated high surrogates which now raise an exception.
-
- 06 Şub, 2002 3 kayıt (commit)
-
-
Marc-André Lemburg yazdı
-
Marc-André Lemburg yazdı
-
Marc-André Lemburg yazdı
bug related to lone high surrogates.
-
- 01 Şub, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Fix SF bug #511603: Error calling str on subclass of int Explicitly fill in tp_str with the same pointer as tp_repr.
-
- 29 Ock, 2002 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 16 Ock, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 12 Ock, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 05 Ock, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 01 Ock, 2002 1 kayıt (commit)
-
-
Neal Norwitz yazdı
This makes xreadlines behave like all other file methods (other than close() which just returns).
-
- 19 Ara, 2001 1 kayıt (commit)
-
-
Fred Drake yazdı
both are proxy objects.
-
- 17 Ara, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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.
-