Commit graph

79093 commits

Author SHA1 Message Date
Eli Bendersky
1a8c3e247a Issue #17989: element_setattro returned incorrect error value.
This caused an exception to be raised later than expected.
2013-05-18 07:53:47 -07:00
Eli Bendersky
ef9683b73f Issue #17989: element_setattro returned incorrect error value.
This caused an exception to be raised later than expected.
2013-05-18 07:52:34 -07:00
Raymond Hettinger
163e9821b4 Undo the deprecation of _asdict().
Backed out changeset c4ca39bece9d
2013-05-18 00:05:20 -07:00
Raymond Hettinger
4e0172fd9a Deprecate nametuple._asdict() 2013-05-17 17:14:27 -07:00
Raymond Hettinger
8c03d832b3 merge 2013-05-17 16:43:58 -07:00
Raymond Hettinger
587d3bf78a Update docstring for _asdict() to indicate it is obsolete.
Use the cleaner looking @property style for __dict__.
Move _replace() to be just after make() to indicate that
it is a core method on named tuples.
2013-05-17 16:43:14 -07:00
Benjamin Peterson
4d94474ba3 rewrite the parsing of field names to be more consistent wrt recursive expansion 2013-05-17 18:22:31 -05:00
Benjamin Peterson
48953632df merge 3.3 2013-05-17 17:35:28 -05:00
Victor Stinner
3e269397e3 FileIO.readall(): remove trailing space from an exception message 2013-05-18 00:38:43 +02:00
Richard Oudkerk
af7260e81a Issue #15758: Fix FileIO.readall() so it no longer has O(n**2) complexity. 2013-05-17 23:34:42 +01:00
Benjamin Peterson
d2b58a9880 only recursively expand in the format spec (closes #17644) 2013-05-17 17:34:30 -05:00
Benjamin Peterson
a29ac45200 reset __class__, so multiple runs don't fail (closes #17999) 2013-05-17 11:33:26 -05:00
Raymond Hettinger
2f6fe51860 merge 2013-05-17 03:24:54 -07:00
Raymond Hettinger
36f74aa7f7 Issue #17563: Fix dict resize performance regression. 2013-05-17 03:01:13 -07:00
Raymond Hettinger
5c71079d06 merge 2013-05-17 02:29:27 -07:00
Raymond Hettinger
b37706f306 Remove unnecessary exception handler. 2013-05-17 02:28:33 -07:00
Raymond Hettinger
419722168b merge 2013-05-17 02:24:18 -07:00
Raymond Hettinger
0fe236b734 Ignore Mac OS X entries for .DS_Store 2013-05-17 02:23:16 -07:00
Serhiy Storchaka
fff61f2cd3 Issue #14596: The struct.Struct() objects now use more compact implementation. 2013-05-17 10:49:44 +03:00
Serhiy Storchaka
e67f8e7419 Fix some bugs in Tools/scripts/abitype.py. 2013-05-17 10:18:40 +03:00
Serhiy Storchaka
369d05a616 Fix some bugs in Tools/scripts/abitype.py. 2013-05-17 10:17:43 +03:00
Benjamin Peterson
a07565da20 merge 3.3 2013-05-16 19:38:48 -05:00
Benjamin Peterson
e2135c6158 move definition to top of block 2013-05-16 19:38:22 -05:00
Victor Stinner
84bb1cf994 Fix compilater warnings on Windows 64-bit 2013-05-17 00:12:04 +02:00
Victor Stinner
9ce59bbe43 Fix a compilater warning on Windows 64-bit 2013-05-17 00:04:56 +02:00
Vinay Sajip
862b15e7d0 Issue #17981: Closed socket on error in SysLogHandler. 2013-05-16 22:57:02 +01:00
Victor Stinner
d3dfd0e433 Fix a compilater warning on Windows 64-bit
idx variable is used for a tuple indexn so use Py_ssize_t (not int).
2013-05-16 23:48:01 +02:00
Vinay Sajip
3a8f510b52 Closes #17981: Merged fix from 3.3. 2013-05-16 23:02:54 +01:00
Benjamin Peterson
43b2ab96bc make GCC complain about declarations not at the top of blocks 2013-05-16 15:33:00 -05:00
Benjamin Peterson
aa96588399 merge 3.3 2013-05-16 15:30:09 -05:00
Benjamin Peterson
18b7191653 C89 declaration compliance 2013-05-16 15:29:44 -05:00
Victor Stinner
6fdd7b81fa Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function
is long, not int.
2013-05-16 22:26:29 +02:00
Victor Stinner
0b1bc56bb6 fix compilation on Windows 2013-05-16 22:17:17 +02:00
Benjamin Peterson
e8e14591eb rather than passing locals to the class body, just execute the class body in the proper environment 2013-05-16 14:37:25 -05:00
Brian Curtin
e914123d1f Merge with 3.3 2013-05-16 12:03:40 -05:00
Brian Curtin
2502ebf9c9 Add Nick Sloan for his contribution to #17732 2013-05-16 11:59:29 -05:00
Giampaolo Rodola'
3cb09064a3 Issue #17992: Add timeouts to asyncore and asynchat tests so that they won't accidentally hang. 2013-05-16 15:21:53 +02:00
Giampaolo Rodola'
0d4f08cee3 ftplib tests: provide a global socket's TIMEOUT variable and use it everywhere so that failing tests won't accidentally hang 2013-05-16 15:12:01 +02:00
Benjamin Peterson
dd778eb885 null mege 3.3 with fix not applicable here 2013-05-15 16:18:51 -05:00
Benjamin Peterson
1e93b06007 complain about "global __class__" in a class body (closes #17983) 2013-05-15 16:17:25 -05:00
Benjamin Peterson
312595ce3a hide the __class__ closure from the class body (#12370) 2013-05-15 15:26:42 -05:00
Georg Brandl
fe361dfab5 null-merge from 3.3 2013-05-15 19:43:15 +02:00
Georg Brandl
c032f16d18 post-release update. 2013-05-15 19:42:39 +02:00
doko@ubuntu.com
94fd53ba4e - Fix typos in the multiprocessing module. 2013-05-15 18:08:03 +02:00
doko@ubuntu.com
9df891ca41 - Fix typos in the multiprocessing module. 2013-05-15 18:06:56 +02:00
doko@ubuntu.com
bcaddf6382 - Issue #17754: Make ctypes.util.find_library() independent of the locale. 2013-05-15 18:04:50 +02:00
doko@ubuntu.com
ef535584a9 - Issue #17754: Make ctypes.util.find_library() independent of the locale. 2013-05-15 18:02:13 +02:00
doko@ubuntu.com
dbbf4c813f Misc/NEWS: Add 3.3.3 section and move entries made after the 3.3.2 release
to the new section.
2013-05-15 18:00:05 +02:00
Benjamin Peterson
9aed17ff7f null merge 3.3 from backport 2013-05-14 22:32:34 -05:00
Benjamin Peterson
e1b4cbc422 when arguments are cells clear the locals slot (backport of #17927) 2013-05-14 22:31:26 -05:00