Commit graph

80764 commits

Author SHA1 Message Date
Antoine Pitrou
61e10a5efe Issue #4366: Fix building extensions on all platforms when --enable-shared is used. 2013-09-29 01:49:07 +02:00
Antoine Pitrou
643238eb53 Issue #4366: Fix building extensions on all platforms when --enable-shared is used. 2013-09-29 01:48:40 +02:00
Benjamin Peterson
b3b0720597 merge 3.3 (#19115) 2013-09-28 15:13:10 -04:00
Benjamin Peterson
3103631f66 fix duplicate test names (closes #19115)
Patch by Xavier de Gaye.
2013-09-28 15:12:37 -04:00
Serhiy Storchaka
f7622bfcfb Issue #18950: Fix miscellaneous bugs in the sunau module.
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream.  Au_write.writeframesraw() now
correctly updates current file position.  Au_read.getnframes() now returns an
integer (as in Python 2).  Au_read and Au_write now correctly works with file
object if start file position is not a zero.
2013-09-28 21:24:43 +03:00
Serhiy Storchaka
0300a8db49 Issue #18950: Fix miscellaneous bugs in the sunau module.
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream.  Au_write.writeframesraw() now
correctly updates current file position.  Au_read.getnframes() now returns an
integer (as in Python 2).  Au_read and Au_write now correctly works with file
object if start file position is not a zero.
2013-09-28 21:21:39 +03:00
Nick Coghlan
6ba64f454d Close #18596: Support address sanity checking in clang/GCC
This patch appropriately marks known false alarms in the
small object allocator when address sanity checking is
enabled (patch contributed by Dhiru Kholia).
2013-09-29 00:28:55 +10:00
Nick Coghlan
4cc2afa0ec Close #18990: remove root attribute from XMLPullParser
- this was an internal implementation detail for iterparse
- this has been changed to use a new private method instead
- XMLPullParser.close docs are now more explicit about not
  returning a root element and instead direct users towards
  read_events
- also added missing docstrings and clarified some details
  related to exactly *when* events are consumed from the
  internal queue

(Initial patch by Stefan Behnel)
2013-09-28 23:50:35 +10:00
Ethan Furman
33918c128b Issue19030: fixed comment that was still referring to a changed descriptor. 2013-09-27 23:02:02 -07:00
Ethan Furman
9a1daf5765 Close #19011: Add documentation on some of the non-standard Enum behavior.
Issues such as iterating and containment on Enum classes, why Enum member
instances do not show up on other Enum members, and how __new__ should
be used.
2013-09-27 22:58:06 -07:00
Serhiy Storchaka
ab25c7c011 Issue #19053: ZipExtFile.read1() with non-zero argument no more returns empty
bytes until end of data.
2013-09-27 22:14:31 +03:00
Serhiy Storchaka
d2c07a58af Issue #19053: ZipExtFile.read1() with non-zero argument no more returns empty
bytes until end of data.
2013-09-27 22:11:57 +03:00
Vinay Sajip
cb2c4fe649 Updated test_logging so that errors don't occur in the absence of threading. 2013-09-27 19:08:24 +01:00
Vinay Sajip
f6cdffeb78 Streamlined logging tests by moving common code to a helper function. 2013-09-27 18:41:12 +01:00
Vinay Sajip
5421f35d5e logging: added support for Unix domain sockets to SocketHandler and DatagramHandler. 2013-09-27 18:18:28 +01:00
Eli Bendersky
55798896a4 Fix .hgtouch to list the dependencies for auto-generated AST code correctly.
Issue #19016
2013-09-27 08:48:19 -07:00
Benjamin Peterson
c3034b14ff merge 3.3 2013-09-27 09:11:31 -04:00
Benjamin Peterson
1f09c663ad let this work with system Python 2.5 2013-09-27 09:11:21 -04:00
Benjamin Peterson
c51c3ed3f2 merge 3.3 2013-09-26 23:43:11 -04:00
Benjamin Peterson
eecdd77c6b fix my absurd spelling 2013-09-26 23:42:53 -04:00
Benjamin Peterson
c30d05855a merge 3.3 (#19098) 2013-09-26 22:21:41 -04:00
Benjamin Peterson
305e5aac85 don't scale compiler stack frames if the recursion limit is huge (closes #19098) 2013-09-26 22:17:45 -04:00
Eli Bendersky
1891cff587 Move open outside try/finally 2013-09-26 09:35:39 -07:00
Eli Bendersky
99081238e9 Don't use fancy new Python features like 'with' - some bots don't have them
and can't bootstrap the parser.
2013-09-26 06:41:36 -07:00
Eli Bendersky
58fe1b1307 Normalize whitespace 2013-09-26 06:32:22 -07:00
Eli Bendersky
b788a385cd Small fixes in Parser/asdl.py - no change in functionality.
1. Make it work when invoked directly from the command-line. It was failing
   due to a couple of stale function/class usages in the __main__ section.
2. Close the parsed file in the parse() function after opening it.
2013-09-26 06:31:32 -07:00
Ethan Furman
e03ea37a7b Close #19030: improvements to inspect and Enum.
inspect.getmembers and inspect.classify_class_attrs now search the metaclass
mro for types.DynamicClassAttributes (what use to be called
enum._RouteClassAttributeToGetattr); in part this means that these two
functions no longer rely solely on dir().

Besides now returning more accurate information, these improvements also
allow a more helpful help() on Enum classes.
2013-09-25 07:14:41 -07:00
Georg Brandl
7cba5fd267 Fix minor typo. 2013-09-25 09:04:23 +02:00
Serhiy Storchaka
0fc5b27397 Null merge (tkinter.Tkapp.merge() was removed in 3.4). 2013-09-23 23:24:38 +03:00
Serhiy Storchaka
369606df2f Issue #19028: Fixed tkinter.Tkapp.merge() for non-string arguments. 2013-09-23 23:20:07 +03:00
Serhiy Storchaka
77622f55c2 Issue #18996: TestCase.assertEqual() now more cleverly shorten differing
strings in error report.
2013-09-23 23:07:00 +03:00
Serhiy Storchaka
463bd4b5c6 Issue #19034: repr() for tkinter.Tcl_Obj now exposes string reperesentation. 2013-09-23 22:49:02 +03:00
Ethan Furman
64a9972b40 Close #19025: Better error message when trying to delete an Enum member.
Also slight code reorg for PEP 8 guidelines.
2013-09-22 16:18:19 -07:00
Jason R. Coombs
0c47f34385 Issue #18978: Update docs to reflect explicitly the ability to set the attribute at the class level. 2013-09-22 09:33:45 -04:00
Jason R. Coombs
838521eed0 Close #18978: Merge changes. 2013-09-22 10:06:24 -04:00
Jason R. Coombs
ea9e097464 Update NEWS 2013-09-22 09:40:06 -04:00
Nick Coghlan
f94a16b494 Close #18626: add a basic CLI for the inspect module 2013-09-22 22:46:49 +10:00
Nick Coghlan
4c7fe6a5ad Avoid inconsistent use of 'finalizer' 2013-09-22 21:32:12 +10:00
Nick Coghlan
be57ab8a34 Close #19047: weakref doc cleanups
- be clear finalizers survive automatically
- update for PEP 442 __del__ changes
- mention module cleanup changes and weakref.finalize in What's New
2013-09-22 21:26:30 +10:00
Georg Brandl
a2838878fa merge with 3.3 2013-09-22 11:46:51 +02:00
Georg Brandl
587b30571d Closes #19043: remove detailed listing of versions from license files
Since all versions since 2.2 are under the same licensing terms,
this saves the release manager from touching the two files for
very new minor release.
2013-09-22 11:45:52 +02:00
Nick Coghlan
df4cb129e4 Merge from 3.3 2013-09-22 19:38:44 +10:00
Nick Coghlan
ce34687d23 Fix comment in test_gdb 2013-09-22 19:38:16 +10:00
Raymond Hettinger
710a67edfc Note that LINEAR_PROBES can be set to zero. 2013-09-21 20:17:31 -07:00
Raymond Hettinger
4ef0528b97 Minor beautification. Put updates and declarations in a more logical order. 2013-09-21 15:39:49 -07:00
Antoine Pitrou
a78cccb134 test_gdb: skip pretty-printing of sets with gdb < 7.3
(should fix the failures on OpenIndiana)
2013-09-22 00:14:27 +02:00
Antoine Pitrou
d0f3e07a60 test_gdb: dump gdb version in verbose mode 2013-09-21 23:56:17 +02:00
Raymond Hettinger
0ce1953bf7 When LINEAR_PROBES=0, let the compiler remove the dead code on its own. 2013-09-21 14:07:18 -07:00
Raymond Hettinger
c70a2b7bb9 Make the linear probe sequence clearer. 2013-09-21 14:02:55 -07:00
Serhiy Storchaka
1eb87629cd Merge heads 2013-09-20 23:28:27 +03:00