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.
13 years ago
Stefan Krah
6e467049c6
Accept Unicode legacy strings in the Decimal constructor.
13 years ago
Stefan Krah
0f82b76b57
Issue #16431 : Finally, consider all permutations.
13 years ago
Stefan Krah
ed16eff57e
Issue #16431 : Also fix the opposite direction.
13 years ago
Stefan Krah
f4abc7b8a0
Issue #16431 : Use the type information when constructing a Decimal subtype
from a Decimal argument.
13 years ago
Nadeem Vawda
39079946a2
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
Patch by Serhiy Storchaka.
13 years ago
Stefan Krah
e6996ed5d9
Issue #16145 : Support legacy strings in the _csv module.
13 years ago
Antoine Pitrou
e4ad37e50e
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
13 years ago
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.
13 years ago
Andrew Svetlov
6a5c7c341a
Fix docstring for deque ctor to mark iterable parameter optional
13 years ago
Benjamin Peterson
c43112823b
initialize more global type objects ( closes #16369 )
13 years ago
Petri Lehtinen
92c28cace4
#14897 : Enhance error messages of struct.pack and struct.pack_into
Patch by Matti Mäki.
13 years ago
Mark Dickinson
76464494bc
Fix math.factorial KeyboardInterrupt segfault. Thanks Amaury for report and diagnosis.
13 years ago
Petri Lehtinen
5445a8cb41
Replace tabs with spaces in posixmodule.c
13 years ago
Nadeem Vawda
5f8f0d6777
Issue #14398 : Fix size truncation and overflow bugs in bz2 module.
13 years ago
Gregory P. Smith
5591b02a4c
Fixes Issue #16114 : The subprocess module no longer provides a
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
It now keeps track of if the child got as far as preexec and reports it if
not back to the parent via a special "noexec" error message value in
the error pipe so that the cwd can be blamed for a failed chdir
instead of the exec of the executable being blamed instead.
The executable is also always reported accurately when exec fails.
Unittests enhanced to cover these cases.
13 years ago
Mark Dickinson
c04ddff290
Issue #16096 : Fix several occurrences of potential signed integer overflow. Thanks Serhiy Storchaka.
13 years ago
Antoine Pitrou
ee329318db
Issue #16089 : Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
13 years ago
Jesus Cea
6e1d2b6e78
Closes #16126 : PyErr_Format format mismatch in _testcapimodule.c
13 years ago
Jesus Cea
cf45325b61
Closes #15897 : zipimport.c doesn't check return value of fseek(). Typo
13 years ago
Jesus Cea
09bf7a799d
Closes #15897 : zipimport.c doesn't check return value of fseek()
13 years ago
Antoine Pitrou
c194884983
Sanitize and modernize some of the _elementtree code (see issue #16089 ).
13 years ago
Stefan Krah
a0346e56ac
Support gcc's -ansi flag: use "__asm__" instead of "asm".
13 years ago
Stefan Krah
e59aa8c94d
Revert 29506c7db353 (build output should be accurate).
13 years ago
Christian Heimes
72c9946718
Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported in ANSI C
13 years ago
Stefan Krah
9a3f05e60f
Make it clear that the pi function is modified for benchmarking purposes.
13 years ago
Stefan Krah
6b6a1df996
Restore the benchmark order to avoid waiting for decimal.py if just the
prec=9 test is used.
13 years ago
Brett Cannon
6cf50c5b1d
Fix whitespace.
13 years ago
Brett Cannon
63092fe0ea
Fix whitespace.
13 years ago
Brett Cannon
d266c4451f
Make the decimal bench file run under Python 2.7.
13 years ago
Senthil Kumaran
67b7b98a47
Issue #16013 : Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka.
13 years ago
Georg Brandl
d37b9d7e1b
Port #16012 fix: parameter parsing regression in pyexpat parser UseForeignDTD() method.
13 years ago
Christian Heimes
e26d3af7ee
Issue #16012 : Fix a regression in pyexpat. The parser's UseForeignDTD()
method doesn't require an argument again.
13 years ago
Christian Heimes
3b9493b53c
Use C-style comments for C89 / ANSI C compatibility
13 years ago
Christian Heimes
b8cd700155
Use C-style comments for C89 / ANSI C compatibility
13 years ago
Stefan Krah
91ceeceea7
Use C-style comments (required for the AIX build slave).
13 years ago
Stefan Krah
a4b4dea415
Use C-style comments (required for the AIX build slave).
13 years ago
Stefan Krah
7e6523fbd7
Use C-style comments.
13 years ago
Stefan Krah
f817a7b178
Use C-style comments.
13 years ago
Victor Stinner
a3ff101e6a
Issue #5969 : faulthandler module: rename dump_tracebacks_later() to
dump_traceback_later() and cancel_dump_tracebacks_later() to
cancel_dump_traceback_later().
13 years ago
Alexander Belopolsky
57caede470
Issue #15973 : fixed 3.2 backport.
13 years ago
Alexander Belopolsky
3ec153681e
Issue #15973 : Fixed segmentation fault on timezone comparison to other types.
13 years ago
Antoine Pitrou
ca8aa4acf6
Issue #15144 : Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t.
Patch by Serhiy Storchaka.
13 years ago
Christian Heimes
5cb31c9277
Issue #15977 : Fix memory leak in Modules/_ssl.c when the function _set_npn_protocols() is called multiple times
13 years ago
Trent Nelson
9a46105a89
#15965 : Explicitly cast AT_FDCWD as (int).
Required on Solaris 10 (which defines AT_FDCWD as 0xffd19553),
harmless on other platforms.
13 years ago
Ezio Melotti
16d2b47837
#15796 : Fix \n in readline docstring. Patch by Serhiy Storchaka.
13 years ago
Antoine Pitrou
9d20e0edd9
Issue #15926 : Fix crash after multiple reinitializations of the interpreter.
13 years ago
Benjamin Peterson
6f3e5e48d3
remove useless and defined initialization ( closes #15921 )
13 years ago
Jesus Cea
c8754a13e6
Closes #15793 : Stack corruption in ssl.RAND_egd()
13 years ago
Jesus Cea
e8db356cf1
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
13 years ago