Antoine Pitrou
1e37e9efa9
SSLContext.load_dh_params() now properly closes the input file.
2013-01-12 21:44:33 +01:00
Eli Bendersky
60a0c71031
Issue #16076 : check for return value of PyTuple_New for args (following
...
Coverity report) and cleanup code.
2013-01-12 05:43:08 -08:00
Eli Bendersky
0f3735b8f0
Close #16076 : fix refleak in pickling of Element.
...
Thanks to Ezio Melotti and Daniel Shahaf for the patch.
2013-01-12 05:21:06 -08:00
Charles-François Natali
a6ebb2d7fb
Issue #16876 : Revert be8e6b81284e, which wasn't thread-safe: wait until a
...
solution is found for poll().
2013-01-12 12:31:00 +01:00
Raymond Hettinger
464d89b3ce
Issue #16398 : Optimize deque.rotate()
2013-01-11 22:29:50 -08:00
Eli Bendersky
bb48151c8c
Issue #16913 : Fix Element.itertext()'s handling of text with XML entities.
...
Patch by Serhiy Storchaka
2013-01-10 06:31:05 -08:00
Eli Bendersky
065eeb1085
Issue #16076 : make _elementtree.Element pickle-able in a way that is compatible
...
with the Python version of the class.
Patch by Daniel Shahaf.
2013-01-10 06:06:01 -08:00
Charles-François Natali
f424f3856d
Issue #16876 : Optimize epoll.poll() by keeping a per-instance epoll events
...
buffer instead of allocating a new one at each poll().
2013-01-09 19:00:26 +01:00
Victor Stinner
2716d531a1
fcntl: add F_DUPFD_CLOEXEC constant, available on Linux 2.6.24+.
2013-01-08 00:52:40 +01:00
Serhiy Storchaka
c99b5120a7
Issue #15972 : Fix error messages when os functions expecting a file name or
...
file descriptor receive the incorrect type.
2013-01-07 23:16:49 +02:00
Antoine Pitrou
5dd12a5978
Fix returning uninitialized variable (issue #8109 ).
...
Found by Christian with Coverity.
2013-01-06 15:25:36 +01:00
Antoine Pitrou
58ddc9d743
Issue #8109 : The ssl module now has support for server-side SNI, thanks to a :meth:SSLContext.set_servername_callback method.
...
Patch by Daniel Black.
2013-01-05 21:20:29 +01:00
Eli Bendersky
3c9850aad7
The get() and iter() are now able to accept keyword arguments.
...
In conformance with the documentation and the Python version.
Patch by Franck Michea.
2013-01-05 06:31:36 -08:00
Serhiy Storchaka
d8a0bac8f7
Issue #16674 : random.getrandbits() is now 20-40% faster for small integers.
2013-01-04 12:18:35 +02:00
Christian Heimes
75e923fcf2
Issue #16847 : Fixed improper use of _PyUnicode_CheckConsistency() in
...
non-pydebug builds. Several extension modules now compile cleanly when
assert()s are enabled in standard builds (-DDEBUG flag).
2013-01-03 09:22:41 +01:00
Ezio Melotti
37623ab5f1
#16009 : JSON error messages now provide more information. Patch by Serhiy Storchaka.
2013-01-03 08:44:15 +02:00
Victor Stinner
fd53a5a011
(Merge 3.3) Issue #16367 : Fix FileIO.readall() on Windows for files larger than 2 GB.
2013-01-03 03:38:38 +01:00
Nadeem Vawda
ef408aea3d
Issue #16828 : Fix error incorrectly raised by bz2.compress(b'') and bz2.BZ2Compressor.compress(b'').
...
Initial patch by Martin Packman.
2013-01-02 23:13:53 +01:00
Serhiy Storchaka
404fa924c3
Issue #16841 : Set st_dev on Windows as unsigned long to match its DWORD type.
2013-01-02 18:22:23 +02:00
Brian Curtin
9cc4321bf5
Backed out changeset 61bada808b34
2013-01-01 12:31:06 -06:00
Brian Curtin
e3d0b65118
Set st_dev on Windows as unsigned long to match its DWORD type, related to the change to fix #11939 .
2013-01-01 12:21:35 -06:00
Richard Oudkerk
950fab07aa
Issue #9586 : Merge.
2013-01-01 17:40:58 +00:00
Eli Bendersky
a9bc1bf93b
Make indentation consistent
2013-01-01 07:42:06 -08:00
Eli Bendersky
0485314305
Make indentation consistent and remove dead commented-out code.
2012-12-31 15:34:43 -08:00
Brian Curtin
87e63a273c
st_dev/st_rdev should be unsigned long as dwVolumeSerialNumber, which it is set to, is a DWORD. This was fixed in #11939 and the overflow was mentioned in #10657 and seen by me on some machines.
2012-12-31 11:59:48 -06:00
Serhiy Storchaka
ac1069387e
Issue #16688 : Fix backreferences did make case-insensitive regex fail on non-ASCII strings.
...
Patch by Matthew Barnett.
2012-12-29 23:41:08 +02:00
Brian Curtin
490b32a397
Fix #11939 . Set st_dev attribute on Windows to simplify os.path.samefile.
...
By setting the st_dev attribute, we can then remove some Windows-specific
code and move os.path.samefile/sameopenfile/samestat to Lib/genericpath.py
so all platforms share the same implementation.
2012-12-26 07:03:03 -06:00
Andrew Svetlov
6d469ebbc8
rename MathcObject to match object in doctrings for re module ( #16760 )
2012-12-25 18:49:24 +02:00
Andrew Svetlov
3ba3a3ee56
Issue #15422 : get rid of PyCFunction_New macro
2012-12-25 13:32:35 +02:00
Andrew Svetlov
77377574dc
Issue #16443 : Add docstrings to regular expression match objects.
...
Patch by Anton Kasyanov.
2012-12-23 20:00:58 +02:00
Stefan Krah
823359610f
Merge 3.3.
2012-12-23 15:46:03 +01:00
Stefan Krah
a81ef640f1
Merge 3.3.
2012-12-22 23:08:42 +01:00
Stefan Krah
5383d2d2e4
Merge 3.3.
2012-12-22 14:57:16 +01:00
Stefan Krah
1ea891f8eb
Merge 3.3.
2012-12-22 14:24:55 +01:00
Stefan Krah
8fba5365d5
Merge.
2012-12-21 23:27:13 +01:00
Stefan Krah
f31b603558
Merge 3.3.
2012-12-21 23:23:25 +01:00
Mark Dickinson
4cd60175f1
Simplify random_seed to use _PyLong_AsByteArray. Closes issue #16496 .
2012-12-21 21:52:49 +00:00
Kristjan Valur Jonsson
1724bb196a
Merge with 3.3 : Don't DECREF the ctypes error_object without the GIL held.
2012-12-21 11:23:23 +00:00
Benjamin Peterson
4c05969fc4
merge 3.3 ( #16597 )
2012-12-20 11:55:16 -06:00
Andrew Svetlov
2606a6f197
Issue #16719 : Get rid of WindowsError. Use OSError instead
...
Patch by Serhiy Storchaka.
2012-12-19 14:33:35 +02:00
Andrew Svetlov
0832af6628
Issue #16717 : get rid of socket.error, replace with OSError
2012-12-18 23:10:48 +02:00
Andrew Svetlov
a191959849
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:27:16 +02:00
Stefan Krah
8e47b8767b
Merge 3.3.
2012-12-16 21:11:35 +01:00
Stefan Krah
8031d0dfd4
Merge 3.3.
2012-12-15 22:36:49 +01:00
Benjamin Peterson
6a020e8065
merge 3.3
2012-12-15 15:44:18 -05:00
Antoine Pitrou
09bb89b8cf
Issue #16488 : epoll() objects now support the with statement.
...
Patch by Serhiy Storchaka.
2012-12-15 21:14:21 +01:00
Andrew Svetlov
1a714750cf
Remove compile warnings for _testimportmodule
2012-12-15 18:16:47 +02:00
Andrew Svetlov
ef9a43b2c9
Rename test module names for #16421 to don't clash with other tests.
2012-12-15 17:22:59 +02:00
Ezio Melotti
752f5dd0f7
#16681 : merge with 3.3.
2012-12-14 20:14:17 +02:00
Andrew Svetlov
6b2cbeba58
Issue #16421 : allow to load multiple modules from the same shared object.
...
Patch by Václav Šmilauer.
2012-12-14 17:04:59 +02:00