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.
13 years ago
Richard Oudkerk
9866231eab
Issue #9586 : Redefine SEM_FAILED on MacOSX to keep compiler happy.
13 years ago
Andrew Svetlov
c08ded9e4a
rename MathcObject to match object in doctrings for re module ( #16760 )
13 years ago
Andrew Svetlov
0b64c1415e
rename MathcObject to match object in doctrings for re module ( #16760 )
13 years ago
Andrew Svetlov
1c6c90fc73
Issue #16443 : Add docstrings to regular expression match objects.
Patch by Anton Kasyanov.
13 years ago
Andrew Svetlov
56ad5ed5ad
Issue #16443 : Add docstrings to regular expression match objects.
Patch by Anton Kasyanov.
13 years ago
Kristjan Valur Jonsson
ed512a4d09
ctypes: DECREF error_object _after_ re-acquiring GIL
13 years ago
Kristjan Valur Jonsson
9946bd69fa
Don't DECREF the ctypes error_object without the GIL held.
13 years ago
Petri Lehtinen
ab7dd183f3
#8853 : Allow port to be of type long for socket.getaddrinfo()
13 years ago
Benjamin Peterson
a2d6d7121e
call close on the underlying stream even if flush raises ( #16597 )
13 years ago
Andrew Svetlov
4bb142b1b7
Issue #16714 : use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
13 years ago
Andrew Svetlov
737fb89dd1
Issue #16714 : use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
13 years ago
Benjamin Peterson
7eb8a1a0cb
remove dead code
13 years ago
Benjamin Peterson
b41524dde3
remove dead code
13 years ago
Ezio Melotti
e3d7e54b11
#16681 : use "bidirectional class" instead of "bidirectional category" in the docstring too.
13 years ago
Ezio Melotti
67c563e2f1
#16681 : use "bidirectional class" instead of "bidirectional category" in the docstring too.
13 years ago
Gregory P. Smith
9504b13145
Code style fixup: No need for double ((parenthesis)) and use {} on an if else.
13 years ago
Gregory P. Smith
64ab35e11d
1 << 31 is invalid for signed integers, fix it by making 1 unsigned.
Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
13 years ago
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]
13 years ago
Antoine Pitrou
8eeda72742
Issue #16628 : Fix a memory leak in ctypes.resize().
13 years ago
Antoine Pitrou
305e1a749f
Issue #16628 : Fix a memory leak in ctypes.resize().
13 years ago
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.
13 years ago
Antoine Pitrou
43fb54cd4f
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
Patch by Serhiy Storchaka.
13 years ago
Antoine Pitrou
b83575b0a5
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
Patch by Serhiy Storchaka.
13 years ago
Gregory P. Smith
0d68ab3f48
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.
13 years ago
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.
13 years ago
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.
13 years ago
Ezio Melotti
a0dd22e5e8
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
13 years ago
Ezio Melotti
ec6486d52d
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
13 years ago
Antoine Pitrou
b83ea144cc
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
13 years ago
Antoine Pitrou
39bdad813a
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
13 years ago
Nadeem Vawda
19e568d254
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
13 years ago
Nadeem Vawda
99f9b8df98
Issue #15677 : Also fix docstrings in zlib module.
13 years ago
Gregory P. Smith
c1ce93a4ab
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.
13 years ago
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.
13 years ago
Nadeem Vawda
acfdfdafa2
Fix typo in backporting fix of issue #16411 to 2.7.
13 years ago
Nadeem Vawda
7ee955550b
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
Patch by Serhiy Storchaka.
13 years ago
Nadeem Vawda
3c30970d29
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
Patch by Serhiy Storchaka.
13 years ago
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
Nadeem Vawda
252f4dc6c9
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
Nadeem Vawda
6cad3712b3
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
Patch by Serhiy Storchaka.
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
Antoine Pitrou
0552fc2b8a
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
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
e9e35c3f6b
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
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
Andrew Svetlov
227f59b29c
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
Benjamin Peterson
6da3ed63d8
initialize more global type objects ( closes #16369 )
13 years ago