Commit Graph

1031 Commits

Author SHA1 Message Date
Jeremy Hylton
d8136b500a Backport fixes to make more types collectable.
classmethod, staticmethod, cPickle.Pickler, cPickle.UNpickler
2003-05-09 18:29:21 +00:00
Tim Peters
fa90c3e468 file_truncate(): Backported 2.3 code so that file.truncate(n) works on
Windows when n is too big to fit in a 32-bit int.  This was a hole in
2.2's large file support on Windows, and turns out it's a bad hole at
least for ZODB.
2003-04-30 19:24:59 +00:00
Guido van Rossum
4f017eb311 Backport the Carlo Verre fix. 2003-04-25 05:40:32 +00:00
Tim Peters
c18cc56c21 fsync(): Implemented for Windows, via calling MS _commit. This counts
as "a bug" because there's no other way in core Python to ensure that
bytes written are actually on disk.  At least ZODB wants this guarantee,
for robustness against crashes.
2003-04-23 20:14:12 +00:00
Neal Norwitz
9976fdf83c Backport:
Fix SF bug #697220, string.strip implementation/doc mismatch

Attempt to make all the various string/unicode *strip methods the same.
 * Doc - add doc for when functions were added
 * UserString
 * string/unicode object methods
 * string module functions
'chars' is used for the last parameter everywhere.
2003-04-11 18:21:22 +00:00
Tim Peters
8998a81937 Fixed the gc-vs-__del__ bugs for new-style classes. That's it for this one. 2003-04-08 20:33:05 +00:00
Skip Montanaro
bc12473d51 note test_locale skip 2003-03-31 22:12:37 +00:00
Skip Montanaro
8c451a76df note test_largefile restriction on Mac OS X 2003-03-31 21:59:05 +00:00
Martin v. Löwis
3c5173c179 Patch #710576: Implement per-interpreter-state codec registries. 2003-03-30 20:57:31 +00:00
Tim Peters
58d23ae9a9 SF bug 705836: struct.pack of floats in non-native endian order
pack_float, pack_double, save_float:  All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits.  At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2.  In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.
2003-03-20 18:31:20 +00:00
Andrew M. Kuchling
903eff49ab Add some more Distutil changes 2003-03-12 14:28:21 +00:00
Andrew M. Kuchling
2c35140ce6 Add item 2003-03-12 14:17:38 +00:00
Gustavo Niemeyer
fac559c533 Backported fix to [521782] unreliable file.read() error handling. 2003-03-04 00:50:24 +00:00
Guido van Rossum
e0cf01371f - Backported SF patch #676342: after using pdb, the readline command
completion was botched.
2003-03-01 02:14:53 +00:00
Neal Norwitz
7df6d3d476 Fix SF bug #691793, Python 2.3a2 build fails on Tru64 2003-02-23 23:45:16 +00:00
Guido van Rossum
841569f9a3 Backport of rev 2.199 from trunk.
PyObject_Generic{Get,Set}Attr:

Don't access tp_descr_{get,set} of a descriptor without checking the
flag bits of the descriptor's type.  While we know that the main type
(the type of the object whose attribute is being accessed) has all the
right flag bits (or else PyObject_Generic{Get,Set}Attr wouldn't be
called), we don't know that for its class attributes!
2003-02-19 03:52:47 +00:00
Guido van Rossum
466a3a7150 Backport 2.217 and 2.218:
Provide access to the import lock, fixing SF bug #580952.  This is
mostly from SF patch #683257, but I had to change unlock_import() to
return an error value to avoid fatal error.
2003-02-13 17:06:02 +00:00
Guido van Rossum
32810627a2 Backport SF #660455 fix. 2003-02-12 19:09:45 +00:00
Neal Norwitz
c31c0dfba3 Partial backport for changes to fix SF bug #678518 (assert & global). 2003-02-10 01:57:51 +00:00
Skip Montanaro
e370fb1ae7 BUILDEXE setting in out-of-tree builds 2003-02-07 15:59:28 +00:00
Neal Norwitz
89d08cbd39 backport:
Fix SF bug# 676155, RuntimeWarning with tp_compare

Check return value of PyLong_AsDouble(), it can return an error.
2003-01-28 19:40:35 +00:00
Neal Norwitz
fbaaab9d25 Backport:
Fix SF bug #667147, Segmentation fault printing str subclass

Fix infinite recursion which occurred when printing an object
whose __str__() returned self.
2003-01-13 20:17:22 +00:00
Raymond Hettinger
c2c40585c0 Since the WH generator never produced zero, it wasn't fair to characterize
this as a fix to a long outstanding bug.  Instead, it makes sure that the
methods work as documented with any generator.
2003-01-11 23:42:07 +00:00
Neal Norwitz
e7329e9439 SF #659228, fix realpath() not being exported from os.path 2003-01-10 23:51:56 +00:00
Neal Norwitz
a1f2b33d00 Fix for SF #639945, 64-bit bug on AIX when loading dynamic modules 2003-01-10 23:34:01 +00:00