Antoine Pitrou
8ad5b07ccb
Issue #17173 : Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
...
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
2013-02-09 23:16:51 +01:00
Antoine Pitrou
c73c561181
Issue #17173 : Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
...
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
2013-02-09 23:14:42 +01:00
Antoine Pitrou
4de7457009
Issue #17173 : Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
...
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag).
2013-02-09 23:11:27 +01:00
Serhiy Storchaka
7611d9a8cf
Issue #16686 : Fixed a lot of bugs in audioop module.
...
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:13:46 +02:00
Serhiy Storchaka
8135de80f7
Issue #16686 : Fixed a lot of bugs in audioop module.
...
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:12:36 +02:00
Serhiy Storchaka
01ad622a2c
Issue #16686 : Fixed a lot of bugs in audioop module.
...
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:10:53 +02:00
Serhiy Storchaka
eae3b33316
Issue #17073 : Fix some integer overflows in sqlite3 module.
2013-02-07 17:05:32 +02:00
Serhiy Storchaka
2efdc90b0f
Issue #17073 : Fix some integer overflows in sqlite3 module.
2013-02-07 17:03:46 +02:00
Serhiy Storchaka
3cf96ac248
Issue #17073 : Fix some integer overflows in sqlite3 module.
2013-02-07 17:01:47 +02:00
Raymond Hettinger
59cf23ab07
Minor tweaks to varnames, declarations, and comments.
2013-02-07 00:57:19 -05:00
Charles-François Natali
773e42dff8
Issue #15359 : Add CAN_BCM protocol support to the socket module. Patch by Brian
...
Thorne.
2013-02-05 19:42:01 +01:00
Raymond Hettinger
1f0044c473
Minor variable access clean-ups for deque.rotate().
2013-02-05 01:30:46 -05:00
Serhiy Storchaka
88eea543d6
Issue #17089 : Expat parser now correctly works with string input not only when
...
an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and
strings larger than 2 GiB.
2013-02-04 18:29:47 +02:00
Serhiy Storchaka
36b365ccff
Issue #17089 : Expat parser now correctly works with string input not only when
...
an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and
strings larger than 2 GiB.
2013-02-04 18:28:01 +02:00
Serhiy Storchaka
43536e9e37
Issue #17089 : Expat parser now correctly works with string input not only when
...
an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and
strings larger than 2 GiB.
2013-02-04 18:26:15 +02:00
R David Murray
811724ce7f
merge #17091 : update docstring for _thread.Lock.acquire.
2013-02-04 10:25:51 -05:00
R David Murray
b7be42b1f9
merge #17091 : update docstring for _thread.Lock.acquire.
2013-02-04 10:22:39 -05:00
R David Murray
95b7110a11
#17091 : update docstring for _thread.Lock.acquire.
...
The main docs were fixed to remove mention of None long ago,
but the docstring was not. Reported by Armin Rigo, patch
by Ian Cordasco.
2013-02-04 10:15:58 -05:00
Serhiy Storchaka
b6a53404b7
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:57:16 +02:00
Serhiy Storchaka
1d0bb9c8f9
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:54:04 +02:00
Serhiy Storchaka
19c4e0df29
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:47:24 +02:00
Raymond Hettinger
a4409c18eb
Minor edits: Tighten-up the halflen logic and touch-up the assertions and comments.
2013-02-04 00:08:12 -05:00
Serhiy Storchaka
cce1b8eda8
Issue #17106 : Fix a segmentation fault in io.TextIOWrapper when an underlying
...
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:09:17 +02:00
Serhiy Storchaka
d03ce4ae3d
Issue #17106 : Fix a segmentation fault in io.TextIOWrapper when an underlying
...
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:07:32 +02:00
Serhiy Storchaka
94dc6736bd
Issue #17106 : Fix a segmentation fault in io.TextIOWrapper when an underlying
...
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:03:31 +02:00
Raymond Hettinger
3a9ae7fd98
Issue 16398: One more assertion for good measure.
2013-02-02 12:26:37 -08:00
Nadeem Vawda
56265564ff
Back out fix for issue #13886 ; it introduced a new bug in interactive readline use.
2013-02-02 20:29:39 +01:00
Nadeem Vawda
c27bcbf863
Back out fix for issue #13886 ; it introduced a new bug in interactive readline use.
2013-02-02 20:25:19 +01:00
Raymond Hettinger
231ee4dc9d
Issue 16398: Add assertions to show why memcmp is safe.
2013-02-02 11:24:43 -08:00
Nadeem Vawda
6375257188
Back out fix for issue #13886 ; it introduced a new bug in interactive readline use.
2013-02-02 20:05:11 +01:00
Raymond Hettinger
21777acd68
Issue 16398: Use memcpy() in deque.rotate().
2013-02-02 09:56:08 -08:00
Gregory P. Smith
a5042671c3
In the _hashlib module, only initialize the static data for OpenSSL's
...
constructors once, to avoid memory leaks when finalizing and re-initializing
the Python interpreter.
2013-02-01 17:07:56 -08:00
Gregory P. Smith
90fa9508a6
In the _hashlib module, only initialize the static data for OpenSSL's
...
constructors once, to avoid memory leaks when finalizing and re-initializing
the Python interpreter.
2013-02-01 17:07:39 -08:00
Gregory P. Smith
aded2e5e59
In the _hashlib module, only initialize the static data for OpenSSL's
...
constructors once, to avoid memory leaks when finalizing and re-initializing
the Python interpreter.
2013-02-01 17:05:29 -08:00
Gregory P. Smith
84d0bf94b0
Additional fix for issue #12268 : The io module file object write methods no
...
longer abort early when a write system call is interrupted (EINTR).
2013-02-01 13:10:33 -08:00
Gregory P. Smith
99ec7f6f3e
Additional fix for issue #12268 : The io module file object write methods no
...
longer abort early when a write system call is interrupted (EINTR).
2013-02-01 13:08:23 -08:00
Gregory P. Smith
b9817b01ed
Additional fix for Issue #12268 : The io module file object writelines() methods no longer abort early when one of its write system calls is interrupted (EINTR).
2013-02-01 13:03:39 -08:00
Brett Cannon
611afc1b3f
Issue #17098 : all modules should have __loader__
2013-02-01 14:07:28 -05:00
Brett Cannon
0ecd30b4af
Issue #17098 : Make sure every module has __loader__ defined.
...
Thanks to Thomas Heller for the bug report.
2013-02-01 14:04:12 -05:00
Nadeem Vawda
ef0a44c629
Issue #13886 : Fix input() to not strip out supposedly-invalid input bytes.
...
Also fix sporadic failures in test_builtin due to dependence on whether the
readline module has previously been imported.
2013-01-27 14:17:21 +01:00
Nadeem Vawda
60cc32382f
Issue #13886 : Fix input() to not strip out supposedly-invalid input bytes.
...
Also fix sporadic failures in test_builtin due to dependence on whether the
readline module has previously been imported.
2013-01-27 14:13:25 +01:00
Nadeem Vawda
6f02ea02c8
Issue #13886 : Fix input() to not strip out supposedly-invalid input bytes.
...
Also fix sporadic failures in test_builtin due to dependence on whether the
readline module has previously been imported.
2013-01-27 14:01:42 +01:00
Ezio Melotti
3a62e45b97
Merge typo fixes from 3.3.
2013-01-27 06:20:51 +02:00
Ezio Melotti
3f5db3940f
Fix a few typos and a double semicolon. Patch by Eitan Adler.
2013-01-27 06:20:14 +02:00
Ronald Oussoren
20190e2d54
Issue #1602133 : 'environ' is not really available with shared libraries on OSX (merge from 3.3)
...
There already was a workaround for this for framework builds on OSX,
this changeset enables the same workaround for shared libraries.
Closes #1602133
2013-01-25 18:02:35 +01:00
Ronald Oussoren
1c90eed8a9
Issue #1602133 : 'environ' is not really available with shared libraries on OSX (merge from 3.2)
...
There already was a workaround for this for framework builds on OSX,
this changeset enables the same workaround for shared libraries.
Closes #1602133
2013-01-25 18:01:05 +01:00
Ronald Oussoren
697e56d0f5
Issue #1602133 : 'environ' is not really available with shared libraries on OSX
...
There already was a workaround for this for framework builds on OSX,
this changeset enables the same workaround for shared libraries.
Closes #1602133
2013-01-25 17:57:13 +01:00
Martin v. Löwis
c8c6563097
Replace WaitForMultipleObjects with WaitForMultipleObjectEx,
...
for better WinRT compatibility.
2013-01-25 14:29:13 +01:00
Martin v. Löwis
b26a9b10ea
Replace WaitForSingleObject with WaitForSingleObjectEx,
...
for better WinRT compatibility.
2013-01-25 14:25:48 +01:00
Serhiy Storchaka
35f284b75e
Clean trailing whitespace in itertoolsmodule.c.
2013-01-25 13:40:01 +02:00
Serhiy Storchaka
d269b5e73d
Clean trailing whitespace in itertoolsmodule.c.
2013-01-25 13:38:56 +02:00
Serhiy Storchaka
e7e9c32195
Clean trailing whitespace in itertoolsmodule.c.
2013-01-25 13:37:39 +02:00
Serhiy Storchaka
c5dadcf2fd
Issue #13454 : Fix a crash when deleting an iterator created by itertools.tee()
...
if all other iterators were very advanced before.
2013-01-25 13:26:55 +02:00
Serhiy Storchaka
339e91d4cb
Issue #13454 : Fix a crash when deleting an iterator created by itertools.tee()
...
if all other iterators were very advanced before.
2013-01-25 13:24:47 +02:00
Serhiy Storchaka
a3e9128aba
Issue #13454 : Fix a crash when deleting an iterator created by itertools.tee()
...
if all other iterators were very advanced before.
2013-01-25 13:19:31 +02:00
Eli Bendersky
fa88b5d656
merge heads
2013-01-24 07:17:17 -08:00
Stefan Krah
eb8c451bd2
Since the return type of format() is not a Decimal, raise ValueError instead of
...
InvalidOperation if the format specification (width, prec) exceeds the internal
limits of libmpdec.
2013-01-24 15:22:33 +01:00
Charles-François Natali
c07fcbb698
Issue #16953 : Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
...
Patch by Jeffrey Armstrong.
2013-01-19 12:39:29 +01:00
Charles-François Natali
95195b35b8
Issue #16953 : Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
...
Patch by Jeffrey Armstrong.
2013-01-19 12:21:26 +01:00
Charles-François Natali
986a56cefe
Issue #16953 : Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
...
Patch by Jeffrey Armstrong.
2013-01-19 12:19:10 +01:00
Serhiy Storchaka
9101e23ff6
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:41:45 +02:00
Serhiy Storchaka
441d30fac7
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:26:26 +02:00
Raymond Hettinger
8a7d74446c
merge
2013-01-18 17:53:18 -08:00
Raymond Hettinger
bd8f29028e
Show the function signature in the docstring
2013-01-18 17:35:25 -08:00
Benjamin Peterson
9f30abd393
merge 3.3
2013-01-18 00:10:37 -05:00
Benjamin Peterson
c68a4a048c
check windows fd validity ( closes #16992 )
2013-01-18 00:10:24 -05:00
Stefan Krah
20d60803d5
Issue #16982 : Fix --without-threads build failure.
2013-01-17 17:07:17 +01:00
Stefan Krah
31efb380b3
Merge 3.3.
2013-01-16 23:25:41 +01:00
Stefan Krah
897c3e994f
Issue #11729 : Backport commit bff052d9 from libffi upstream in order to fix
...
a ctypes build failure with clang.
2013-01-16 23:18:34 +01:00
Stefan Krah
e2515e4997
Merge 3.3.
2013-01-16 15:19:16 +01:00
Stefan Krah
752bfb71d8
Remove trailing whitespace.
2013-01-16 15:16:10 +01:00
Stefan Krah
6d554b0428
Merge 3.3.
2013-01-16 13:00:11 +01:00
Stefan Krah
59a4a93f43
Issue #16422 : Use strings for rounding mode constants for better readability
...
and pickling compatibility.
2013-01-16 12:58:59 +01:00
Richard Oudkerk
ad1d5f908a
Issue #10527 : Use poll() instead of select() for multiprocessing pipes
2013-01-15 01:01:01 +00:00
Serhiy Storchaka
7898043868
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyLong_AsLong() narrowed to int without checks.
2013-01-15 01:12:17 +02:00
Eli Bendersky
a50ff1887d
Issue #16922 : fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text.
...
Patch by Serhiy Storchaka.
2013-01-13 05:26:31 -08:00
Eli Bendersky
25771b3749
Issue #16922 : fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text.
...
Patch by Serhiy Storchaka.
2013-01-13 05:26:07 -08:00
Eli Bendersky
b09b167419
Issue #16922 : fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text.
...
Patch by Serhiy Storchaka.
2013-01-13 05:22:05 -08:00
Eli Bendersky
3ed84421ef
Clean trailing whitespace in _elementtree.c
2013-01-13 05:15:52 -08:00
Eli Bendersky
4583990143
Clean trailing whitespace in _elementtree.c
2013-01-13 05:14:47 -08:00
Benjamin Peterson
fa3965ab76
merge 3.3
2013-01-12 21:22:33 -05:00
Benjamin Peterson
0e5c48a917
make deque_clear void, since it's infallible
2013-01-12 21:22:18 -05:00
Antoine Pitrou
1e37e9efa9
SSLContext.load_dh_params() now properly closes the input file.
2013-01-12 21:44:33 +01:00
Antoine Pitrou
457a2292ca
SSLContext.load_dh_params() now properly closes the input file.
2013-01-12 21:43:45 +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
799e3edaf7
Issue #16076 : check for return value of PyTuple_New for args (following
...
Coverity report) and cleanup code.
2013-01-12 05:42:38 -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
Eli Bendersky
b8f6dc855c
Issue #16076 : fix refleak in pickling of Element.
...
Thanks to Ezio Melotti and Daniel Shahaf for the patch.
2013-01-12 05:20:16 -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
e6174ca85e
Issue #16913 : Fix Element.itertext()'s handling of text with XML entities.
...
Patch by Serhiy Storchaka
2013-01-10 06:27:53 -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
Eli Bendersky
698bdb2a6c
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:01:06 -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
Serhiy Storchaka
a2ad5c3ad1
Issue #15972 : Fix error messages when os functions expecting a file name or
...
file descriptor receive the incorrect type.
2013-01-07 23:13:46 +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
Eli Bendersky
a873690d2c
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:26:39 -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
Christian Heimes
f402e922f3
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:21:55 +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
Victor Stinner
6f84659e5e
(Merge 3.2) Issue #16367 : Fix FileIO.readall() on Windows for files larger than 2 GB.
2013-01-03 03:37:47 +01:00
Victor Stinner
c44057dfbd
Issue #16367 : Fix FileIO.readall() on Windows for files larger than 2 GB
2013-01-03 03:33:21 +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
Nadeem Vawda
57cb81d161
Issue #16828 : Fix error incorrectly raised by bz2.compress('').
...
Initial patch by Martin Packman.
2013-01-02 23:05:56 +01:00
Nadeem Vawda
638fb9bbed
Issue #16828 : Fix error incorrectly raised by bz2.compress('').
...
Patch by Martin Packman.
2013-01-02 23:02:00 +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
Victor Stinner
e4110dc11f
Issue #9644 : Fix the encoding used by os.statvfs(): use the filesystem encoding
...
with the surrogateescape error handler, instead of UTF-8 in strict mode.
2013-01-01 23:05:55 +01: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
Richard Oudkerk
9b4599322d
Issue #9586 : Merge
2013-01-01 17:36:53 +00:00
Richard Oudkerk
9866231eab
Issue #9586 : Redefine SEM_FAILED on MacOSX to keep compiler happy.
2013-01-01 17:29:44 +00:00
Eli Bendersky
a9bc1bf93b
Make indentation consistent
2013-01-01 07:42:06 -08:00
Eli Bendersky
b829dea0cd
Make indentation consistent
2013-01-01 07:41:51 -08:00
Eli Bendersky
0485314305
Make indentation consistent and remove dead commented-out code.
2012-12-31 15:34:43 -08:00
Eli Bendersky
03ab4d3581
Make indentation consistent and remove dead commented-out code.
2012-12-31 15:34:20 -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
Serhiy Storchaka
c1b59d4552
Issue #16688 : Fix backreferences did make case-insensitive regex fail on non-ASCII strings.
...
Patch by Matthew Barnett.
2012-12-29 23:38:48 +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
41dc9f3cd1
rename MathcObject to match object in doctrings for re module ( #16760 )
2012-12-25 18:49:08 +02:00
Andrew Svetlov
0b64c1415e
rename MathcObject to match object in doctrings for re module ( #16760 )
2012-12-25 18:48:54 +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
Andrew Svetlov
70dcef4789
Issue #16443 : Add docstrings to regular expression match objects.
...
Patch by Anton Kasyanov.
2012-12-23 19:59:27 +02:00
Andrew Svetlov
56ad5ed5ad
Issue #16443 : Add docstrings to regular expression match objects.
...
Patch by Anton Kasyanov.
2012-12-23 19:23:07 +02:00
Stefan Krah
823359610f
Merge 3.3.
2012-12-23 15:46:03 +01:00
Stefan Krah
e3dff55a5e
Issue #16753 : Define __GNUC_STDC_INLINE__ to an integer (same as gcc).
2012-12-23 15:42:21 +01:00
Stefan Krah
a81ef640f1
Merge 3.3.
2012-12-22 23:08:42 +01:00
Stefan Krah
f03eee12b4
Issue #16745 : The gcc visibility pragma is buggy on OpenIndiana and NetBSD.
2012-12-22 23:05:51 +01:00
Stefan Krah
5383d2d2e4
Merge 3.3.
2012-12-22 14:57:16 +01:00
Stefan Krah
66a6f3fa81
Fix Visual Studio build.
2012-12-22 14:46:44 +01:00
Stefan Krah
1ea891f8eb
Merge 3.3.
2012-12-22 14:24:55 +01:00
Stefan Krah
fdf1a34ba1
Issue #16745 : Hide symbols in _decimal.so.
2012-12-22 14:18:35 +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
Stefan Krah
fb7f580e81
Issue #16745 : Hide a couple of symbols by making them local.
2012-12-21 23:11:05 +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
Kristjan Valur Jonsson
c51bafbbda
Merge with 3.2 : Don't DECREF the ctypes error_object without the GIL held.
2012-12-21 11:22:29 +00:00
Kristjan Valur Jonsson
3cbdaa3fee
Merge with 3.1 : Don't DECREF the ctypes error_object without the GIL held.
2012-12-21 11:20:53 +00:00
Kristjan Valur Jonsson
9946bd69fa
Don't DECREF the ctypes error_object without the GIL held.
2012-12-21 09:41:25 +00:00