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
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
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
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
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
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
Raymond Hettinger
bd8f29028e
Show the function signature in the docstring
2013-01-18 17:35:25 -08:00
Benjamin Peterson
c68a4a048c
check windows fd validity ( closes #16992 )
2013-01-18 00:10:24 -05: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
752bfb71d8
Remove trailing whitespace.
2013-01-16 15:16:10 +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
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
4583990143
Clean trailing whitespace in _elementtree.c
2013-01-13 05:14:47 -08:00
Benjamin Peterson
0e5c48a917
make deque_clear void, since it's infallible
2013-01-12 21:22:18 -05:00
Antoine Pitrou
457a2292ca
SSLContext.load_dh_params() now properly closes the input file.
2013-01-12 21:43:45 +01: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
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
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
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
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
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
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
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
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
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
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
b829dea0cd
Make indentation consistent
2013-01-01 07:41:51 -08:00
Eli Bendersky
03ab4d3581
Make indentation consistent and remove dead commented-out code.
2012-12-31 15:34:20 -08: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
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
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
e3dff55a5e
Issue #16753 : Define __GNUC_STDC_INLINE__ to an integer (same as gcc).
2012-12-23 15:42:21 +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
66a6f3fa81
Fix Visual Studio build.
2012-12-22 14:46:44 +01:00
Stefan Krah
fdf1a34ba1
Issue #16745 : Hide symbols in _decimal.so.
2012-12-22 14:18:35 +01:00
Stefan Krah
fb7f580e81
Issue #16745 : Hide a couple of symbols by making them local.
2012-12-21 23:11:05 +01: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
Benjamin Peterson
68623614f0
call close on the underlying stream even if flush raises ( closes #16597 )
...
Patch by Serhiy Storchaka.
2012-12-20 11:53:11 -06:00
Andrew Svetlov
5b89840d9c
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:26:36 +02:00
Andrew Svetlov
737fb89dd1
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:14:22 +02:00
Stefan Krah
9a4ff437d1
Issue #15783 : Support None default values in the Context() constructor.
2012-12-16 21:10:35 +01:00
Stefan Krah
040e311826
Issue #15783 : Except for the number methods, the C version of decimal now
...
supports all None default values present in decimal.py. These values were
largely undocumented.
2012-12-15 22:33:33 +01:00
Benjamin Peterson
18d105b824
merge 3.2
2012-12-15 15:44:08 -05:00
Benjamin Peterson
7eb8a1a0cb
remove dead code
2012-12-15 15:43:58 -05:00
Ezio Melotti
11def426c0
#16681 : merge with 3.2.
2012-12-14 20:13:39 +02:00
Ezio Melotti
e3d7e54b11
#16681 : use "bidirectional class" instead of "bidirectional category" in the docstring too.
2012-12-14 20:12:25 +02:00
Gregory P. Smith
08d5ca6cd4
Code style fixup: No need for double ((parenthesis)) and use {} on an if else.
2012-12-10 20:22:31 -08:00
Gregory P. Smith
9504b13145
Code style fixup: No need for double ((parenthesis)) and use {} on an if else.
2012-12-10 20:20:20 -08:00
Gregory P. Smith
c0dd80e439
1 << 31 is invalid for signed integers, fix it by making 1 unsigned.
...
Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
2012-12-10 17:45:03 -08:00
Gregory P. Smith
90555d0f0d
1 << 31 is invalid for signed integers, fix it by making 1 unsigned.
...
Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
2012-12-10 17:44:44 -08:00
Antoine Pitrou
12f33df4a2
Issue #16628 : Fix a memory leak in ctypes.resize().
2012-12-08 11:07:16 +01:00
Antoine Pitrou
305e1a749f
Issue #16628 : Fix a memory leak in ctypes.resize().
2012-12-08 11:05:50 +01:00
Victor Stinner
2660e427d1
(Merge 3.2) Issue #16416 : On Mac OS X, operating system data are now always
...
encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding
(which may be ASCII if no locale environment variable is set), to avoid
inconsistencies with os.fsencode() and os.fsdecode() functions which are
already using UTF-8/surrogateescape.
2012-12-03 12:48:53 +01:00
Victor Stinner
27b1ca29cc
Issue #16416 : On Mac OS X, operating system data are now always
...
encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding
(which may be ASCII if no locale environment variable is set), to avoid
inconsistencies with os.fsencode() and os.fsdecode() functions which are
already using UTF-8/surrogateescape.
2012-12-03 12:47:59 +01:00
Benjamin Peterson
47a00f3d1a
support encoding error handlers that return bytes ( closes #16585 )
2012-12-02 11:20:28 -05:00
Benjamin Peterson
aff472394c
unicode -> str
2012-12-02 10:53:41 -05:00
Antoine Pitrou
9a2b26748b
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:54:28 +01:00
Antoine Pitrou
43fb54cd4f
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00
Gregory P. Smith
14b04cd350
Plug a leak in timemodule. The module dictionary is saved during
...
initialization. If the interpreter is shut down and reinitialized (embedded
CPython), the old module dictionary was not dec-refed during the next import of
the time extension module.
Contributed by Torsten Marek of Google.
2012-11-27 10:16:55 -08:00
Antoine Pitrou
9982c53c2f
Issue #12848 : The pure Python pickle implementation now treats object lengths as unsigned 32-bit integers, like the C implementation does.
...
Patch by Serhiy Storchaka.
2012-11-24 20:41:34 +01:00
Antoine Pitrou
bf6ecf92fa
Issue #12848 : The pure Python pickle implementation now treats object lengths as unsigned 32-bit integers, like the C implementation does.
...
Patch by Serhiy Storchaka.
2012-11-24 20:40:21 +01:00
Ezio Melotti
8a6d1fed41
#16306 : merge with 3.2.
2012-11-23 18:52:39 +02:00
Ezio Melotti
a0dd22e5e8
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
2012-11-23 18:48:32 +02:00
Antoine Pitrou
39bdad813a
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
...
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01:00
Nadeem Vawda
6ff262e18f
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
...
Patch by Brian Brazil.
2012-11-11 14:14:47 +01:00
Nadeem Vawda
19e568d254
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
...
Patch by Brian Brazil.
2012-11-11 14:04:14 +01:00
Gregory P. Smith
34b14951ee
Fixes issue #9535 : Fix pending signals that have been received but not
...
yet handled by Python to not persist after os.fork() in the child process.
2012-11-10 20:33:39 -08:00
Gregory P. Smith
9463e3ac8b
Fixes issue #9535 : Fix pending signals that have been received but not
...
yet handled by Python to not persist after os.fork() in the child process.
2012-11-10 20:33:07 -08:00
Nadeem Vawda
ec6dfcffa0
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:16:44 +01:00
Nadeem Vawda
7ee955550b
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:15:32 +01:00
Nadeem Vawda
dd1253abdd
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:21:22 +01:00
Nadeem Vawda
ee7889dec3
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:14:36 +01:00
Stefan Krah
6e467049c6
Accept Unicode legacy strings in the Decimal constructor.
2012-11-10 23:09:04 +01:00
Stefan Krah
0f82b76b57
Issue #16431 : Finally, consider all permutations.
2012-11-08 11:17:29 +01:00
Stefan Krah
ed16eff57e
Issue #16431 : Also fix the opposite direction.
2012-11-07 23:47:19 +01:00
Stefan Krah
f4abc7b8a0
Issue #16431 : Use the type information when constructing a Decimal subtype
...
from a Decimal argument.
2012-11-07 23:12:25 +01:00
Nadeem Vawda
519f43844b
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:38:48 +01:00
Nadeem Vawda
39079946a2
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:37:42 +01:00
Stefan Krah
e6996ed5d9
Issue #16145 : Support legacy strings in the _csv module.
2012-11-02 14:44:20 +01:00
Antoine Pitrou
0168d3d9b1
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
...
Patch by Serhiy Storchaka.
2012-11-01 20:15:23 +01:00
Antoine Pitrou
e4ad37e50e
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
...
Patch by Serhiy Storchaka.
2012-11-01 20:13:54 +01:00
Antoine Pitrou
5ebe65f8cb
Issue #16228 : Fix a crash in the json module where a list changes size while it is being encoded.
...
Patch by Serhiy Storchaka.
2012-11-01 19:59:21 +01:00
Antoine Pitrou
9f69e79c45
Issue #16228 : Fix a crash in the json module where a list changes size while it is being encoded.
...
Patch by Serhiy Storchaka.
2012-11-01 19:52:06 +01:00
Andrew Svetlov
796c443f3d
Merge: fix docstring for deque ctor to mark iterable parameter optional
2012-10-31 11:51:13 +02:00
Andrew Svetlov
6a5c7c341a
Fix docstring for deque ctor to mark iterable parameter optional
2012-10-31 11:50:40 +02:00
Benjamin Peterson
e8ea97fffb
merge 3.2 ( #16369 )
2012-10-30 23:27:52 -04:00
Benjamin Peterson
c43112823b
initialize more global type objects ( closes #16369 )
2012-10-30 23:21:10 -04:00
Petri Lehtinen
4648b4779a
#14897 : Enhance error messages of struct.pack and struct.pack_into
...
Patch by Matti Mäki.
2012-10-29 21:25:01 +02:00
Petri Lehtinen
92c28cace4
#14897 : Enhance error messages of struct.pack and struct.pack_into
...
Patch by Matti Mäki.
2012-10-29 21:24:07 +02:00
Mark Dickinson
039e0cdc28
Issue #16305 : Merge fix from 3.2.
2012-10-25 10:47:46 +01:00