Charles-Francois Natali
7c4f8dacf4
Issue #17914 : We can now inline _bsd_cpu_count().
2013-05-20 17:40:32 +02:00
Charles-Francois Natali
d59087de5b
Issue #17914 : Remove OS-X special-case, and use the correct int type.
2013-05-20 17:31:06 +02:00
Benjamin Peterson
cc00e01fad
test that the compiler support -Werror=statement-after-declaration before using it
2013-05-20 08:22:04 -07:00
R David Murray
63f72908a1
Merge #17973 : Add FAQ entry for ([],)[0] += [1] both extending and raising.
2013-05-20 10:33:27 -04:00
Andrew Kuchling
2a9c8e8cd3
#17955 : minor updates to Functional howto
...
* Describe compress() and accumulate()
* Add a subsection on combinatoric functions.
* Add a forward link to skip the theoretical discussion in the first section.
* Clarify what filterfalse() is the opposite of.
* Remove the old outline and some notes at the end.
* Various small edits.
2013-05-20 10:14:53 -04:00
Charles-Francois Natali
44feda3cd0
Issue #17914 : Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an
...
initial patch by Trent Nelson.
2013-05-20 14:40:46 +02:00
Ezio Melotti
93c6770c72
#14097 : merge with 3.3.
2013-05-20 08:14:14 +03:00
Benjamin Peterson
d2cef8a204
merge 3.3
2013-05-19 19:39:46 -07:00
Eli Bendersky
a369923cab
Get rid of ugly code duplication for ElementTree.parse when the accelerator
...
is imported. Instead, ElementTree.parse can look for a special internal method
defined by the accelerator.
2013-05-19 18:47:23 -07:00
Eli Bendersky
e26fa1bdcb
Add some testing to verify which module was imported in ET tests.
...
This is useful when mucking with import_fresh_module to either force or block
importing of the _elementtree accelerator. These tests in place provide an
immediate indication whether the accelerator was actually imported and overrode
the classes it should have.
2013-05-19 17:49:54 -07:00
Eli Bendersky
3a36756ba1
Issue #17989 : fix typo in error message
2013-05-19 17:00:28 -07:00
Eli Bendersky
8687245e27
normalize whitespace
2013-05-19 09:27:13 -07:00
Eli Bendersky
e6a951b83e
Cleanup even more dead code
2013-05-19 09:25:52 -07:00
Eli Bendersky
c4e98a6a9b
Cleanup more old ET library leftovers
2013-05-19 09:24:43 -07:00
Eli Bendersky
46955b2d30
Issue #17988 : remove unused alias for Element and rename the used one
...
Renaming to _Element_Py for clarity and moving it to a more logical location.
_ElementInterface OTOH is unused and is therefore removed.
Close #17988
2013-05-19 09:20:50 -07:00
Eli Bendersky
fb625448f8
Clarify docs too: events can be any sequence (not that the C code supports it)
2013-05-19 09:09:24 -07:00
Eli Bendersky
3a4fbd8241
_elementtree.XMLParser._setevents should support any sequence, not just tuples
...
Also clean up some code around this
2013-05-19 09:01:49 -07:00
Antoine Pitrou
5b6616dee3
Try to make test more reliable (saw some sporadic failures on buildbots)
2013-05-19 15:55:59 +02:00
Antoine Pitrou
c52d113e28
Issue #11995 : test_pydoc doesn't import all sys.path modules anymore.
2013-05-19 15:46:37 +02:00
Serhiy Storchaka
87aa7dc211
Issue #17812 : Fixed quadratic complexity of base64.b32encode().
...
Optimize base64.b32encode() and base64.b32decode() (speed up to 3x).
2013-05-19 11:49:32 +03:00
Antoine Pitrou
fef34e3186
Issue #17937 : Try harder to collect cyclic garbage at shutdown.
2013-05-19 01:11:58 +02:00
Eli Bendersky
20c1cdd64a
Issue #17901 : fix TreeBuilder construction for an explicit element_factory=None
...
Based on report and patch by Aaron Oakley.
2013-05-18 15:47:58 -07:00
Vinay Sajip
10e8c49a11
Re-enabled skipped test.
2013-05-18 10:19:54 -07:00
Richard Oudkerk
850800f15e
Merge.
2013-05-18 18:13:16 +01:00
Richard Oudkerk
25296ce5de
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
2013-05-18 17:35:19 +01:00
Antoine Pitrou
31fb419908
Issue #17980 : Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).
2013-05-18 17:59:12 +02:00
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
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
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
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
5c71079d06
merge
2013-05-17 02:29:27 -07:00
Raymond Hettinger
419722168b
merge
2013-05-17 02:24:18 -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
Benjamin Peterson
a07565da20
merge 3.3
2013-05-16 19:38:48 -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