Antoine Pitrou
1a9a9d5433
Issue #1868 : Eliminate subtle timing issues in thread-local objects by
...
getting rid of the cached copy of thread-local attribute dictionary.
2010-08-28 18:17:03 +00:00
Antoine Pitrou
c47bd4a09a
Issue #9294 : remove dead code in Objects/object.c. Patch by Grant Limberg.
2010-07-27 22:08:27 +00:00
Mark Dickinson
dc787d2055
Issue #8188 : Introduce a new scheme for computing hashes of numbers
...
(instances of int, float, complex, decimal.Decimal and
fractions.Fraction) that makes it easy to maintain the invariant that
hash(x) == hash(y) whenever x and y have equal value.
2010-05-23 13:33:13 +00:00
Mark Dickinson
fff532bef3
Issue #8749 : remove unused code in Objects/object.c. Thanks Yaniv Aknin.
2010-05-22 12:02:35 +00:00
Victor Stinner
ba6b430bd0
Fix refleak in internal_print() introduced by myself in r81251
...
_PyUnicode_AsDefaultEncodedString() uses a magical PyUnicode attribute to
automatically destroy PyUnicode_EncodeUTF8() result when the unicode string is
destroyed.
2010-05-17 09:33:42 +00:00
Victor Stinner
372ac5e732
PyObject_Dump() encodes unicode objects to utf8 with backslashreplace (instead
...
of strict) error handler to escape surrogates
2010-05-17 01:26:01 +00:00
Antoine Pitrou
f95a1b3c53
Recorded merge of revisions 81029 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
2010-05-09 15:52:27 +00:00
Mark Dickinson
1472150cc2
Merged revisions 79809 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79809 | mark.dickinson | 2010-04-05 19:54:51 +0100 (Mon, 05 Apr 2010) | 1 line
Use a better NaN test in _Py_HashDouble as well.
........
2010-04-06 10:29:17 +00:00
Mark Dickinson
5daab45158
Merged revisions 79804 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79804 | mark.dickinson | 2010-04-05 19:07:51 +0100 (Mon, 05 Apr 2010) | 5 lines
Use a more robust infinity check in _Py_HashDouble.
This fixes a test_decimal failure on FreeBSD 8.0. (modf apparently
doesn't follow C99 Annex F on FreeBSD.)
........
2010-04-05 18:09:39 +00:00
Victor Stinner
624dbf6220
Issue #6697 : catch _PyUnicode_AsString() errors in getattr() and setattr()
...
builtin functions.
2010-03-12 17:17:58 +00:00
Mark Dickinson
6711493e40
Issue #7430 : Remove lingering reference to cmp in recursion error message.
2009-12-04 10:06:06 +00:00
Mark Dickinson
6f1d04945b
Issue #6970 : Remove redundant calls made when comparing objects.
2009-11-15 13:58:49 +00:00
Skip Montanaro
ba1e0f46ab
Issue 7147 - remove ability to attempt to build Python without complex number support (was broken anyway)
2009-10-18 14:25:35 +00:00
Benjamin Peterson
1432771d55
Merged revisions 74457 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74457 | benjamin.peterson | 2009-08-15 08:16:38 -0500 (Sat, 15 Aug 2009) | 1 line
#6707 fix a crash with dir() on an uninitialized module
........
2009-08-15 13:23:05 +00:00
Benjamin Peterson
6e5b0a1140
remove reference to PyCObject
2009-07-01 01:31:12 +00:00
Benjamin Peterson
94c65d9a8f
Merged revisions 72907 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72907 | benjamin.peterson | 2009-05-24 21:40:21 -0500 (Sun, 24 May 2009) | 1 line
handle errors from _PyObject_LookupSpecial when __get__ fails
........
2009-05-25 03:10:48 +00:00
Benjamin Peterson
8bc5b68159
these builtins have to be initialized
2009-05-09 18:10:51 +00:00
Benjamin Peterson
da136967e9
this is now a bound method
2009-05-08 03:27:59 +00:00
Benjamin Peterson
224205fde2
Merged revisions 72461 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72461 | benjamin.peterson | 2009-05-07 22:06:00 -0500 (Thu, 07 May 2009) | 1 line
add _PyObject_LookupSpecial to handle fetching special method lookup
........
2009-05-08 03:25:19 +00:00
Benjamin Peterson
b173f7853e
add a replacement API for PyCObject, PyCapsule #5630
...
All stdlib modules with C-APIs now use this.
Patch by Larry Hastings
2009-05-05 22:31:58 +00:00
Benjamin Peterson
fd838e6c84
Merged revisions 71734,71738-71739 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71734 | benjamin.peterson | 2009-04-18 17:15:26 -0500 (Sat, 18 Apr 2009) | 1 line
many more types to initialize (I had to expose some of them)
........
r71738 | benjamin.peterson | 2009-04-18 21:32:42 -0500 (Sat, 18 Apr 2009) | 1 line
initialize weakref some weakref types
........
r71739 | benjamin.peterson | 2009-04-18 21:40:43 -0500 (Sat, 18 Apr 2009) | 1 line
make errors consistent
........
2009-04-20 02:09:13 +00:00
Benjamin Peterson
ae937c021d
Merged revisions 71722 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71722 | benjamin.peterson | 2009-04-18 15:12:47 -0500 (Sat, 18 Apr 2009) | 1 line
try to initalize all builtin types with PyType_Ready to avoid problems like #5787
........
2009-04-18 20:54:08 +00:00
Georg Brandl
dfd734429e
Merge revision 71222 from trunk: #5615 : make it possible to configure --without-threads again.
2009-04-05 11:47:34 +00:00
Mark Dickinson
934896dc09
Merged revisions 69846 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69846 | mark.dickinson | 2009-02-21 20:27:01 +0000 (Sat, 21 Feb 2009) | 2 lines
Issue #5341 : Fix a variety of spelling errors.
........
2009-02-21 20:59:32 +00:00
Antoine Pitrou
79eee6ba6b
Merged revisions 69582-69583 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69582 | antoine.pitrou | 2009-02-13 14:52:33 +0100 (ven., 13 févr. 2009) | 4 lines
Issue #5186 : Reduce hash collisions for objects with no __hash__ method by
rotating the object pointer by 4 bits to the right.
........
r69583 | antoine.pitrou | 2009-02-13 14:57:40 +0100 (ven., 13 févr. 2009) | 3 lines
Fix compiler warning (gcc)
........
2009-02-13 14:01:05 +00:00