Serhiy Storchaka
e060619d4b
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
10 years ago
Alexander Belopolsky
365ba8f6c1
Closes issue #23600 : Wrong results from tzinfo.fromutc().
10 years ago
Alexander Belopolsky
edc6885b3f
Closes issue #23600 : Wrong results from tzinfo.fromutc().
10 years ago
Alexander Belopolsky
c79447b267
Closes issue #23600 : Wrong results from tzinfo.fromutc().
10 years ago
Serhiy Storchaka
1138439376
Issue #25203 : Failed readline.set_completer_delims() no longer left the
module in inconsistent state.
10 years ago
Benjamin Peterson
3c0769d478
fix spacing
10 years ago
Benjamin Peterson
6aa1564e9c
initialize return value to NULL to avoid compiler compliants ( closes #25245 )
10 years ago
Benjamin Peterson
d330822c12
detect alpn by feature flag not openssl version ( closes #23329 )
10 years ago
Raymond Hettinger
bf49fee125
Issue #25135 : Avoid possible reentrancy issues in deque_clear.
10 years ago
Benjamin Peterson
e48cf7e729
prevent overflow in _Unpickler_Read
10 years ago
Steve Dower
57ab1cdb15
Issue #25092 : Fix datetime.strftime() failure when errno was already set to EINVAL.
10 years ago
Victor Stinner
511491ade0
Issue #23517 : Fix rounding in fromtimestamp() and utcfromtimestamp() methods
of datetime.datetime: microseconds are now rounded to nearest with ties going
to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards
zero (ROUND_DOWN). It's important that these methods use the same rounding
mode than datetime.timedelta to keep the property:
(datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t)
It also the rounding mode used by round(float) for example.
Add more unit tests on the rounding mode in test_datetime.
10 years ago
Victor Stinner
9a8b177e60
Issue #25155 : Add _PyTime_AsTimevalTime_t() function
On Windows, the tv_sec field of the timeval structure has the type C long,
whereas it has the type C time_t on all other platforms. A C long has a size of
32 bits (signed inter, 1 bit for the sign, 31 bits for the value) which is not
enough to store an Epoch timestamp after the year 2038.
Add the _PyTime_AsTimevalTime_t() function written for datetime.datetime.now():
convert a _PyTime_t timestamp to a (secs, us) tuple where secs type is time_t.
It allows to support dates after the year 2038 on Windows.
Enhance also _PyTime_AsTimeval_impl() to detect overflow on the number of
seconds when rounding the number of microseconds.
10 years ago
Victor Stinner
d3ffd32767
Issue #25118 : Fix a regression of Python 3.5.0 in os.waitpid() on Windows.
Add an unit test on os.waitpid()
10 years ago
Kristján Valur Jónsson
102764a1f6
Issue #25021 : Correctly make sure that product.__setstate__ does not access
invalid memory.
10 years ago
Victor Stinner
ec1a498a01
Issue #24684 : socket.socket.getaddrinfo() now calls
PyUnicode_AsEncodedString() instead of calling the encode() method of the
host, to handle correctly custom string with an encode() method which doesn't
return a byte string. The encoder of the IDNA codec is now called directly
instead of calling the encode() method of the string.
10 years ago
Martin Panter
db4220ea09
Issue #25030 : Do not document seek() as if it accepts keyword arguments
Patch from Shiyao Ma.
10 years ago
Martin Panter
9499413508
os.sendfile(headers=None, trailers=None) arguments are not actually accepted
Needs to be tested on a BSD.
10 years ago
Steve Dower
97cded934f
Issue #25029 : MemoryError in test_strptime
10 years ago
Martin Panter
bf19d16950
Issue #23738 : Document and test actual keyword parameter names
Also fix signature because os.utime(..., ns=None) is not allowed.
10 years ago
Serhiy Storchaka
de5f9f4f70
Raise more correct exception on overflow in setting buffer_size attribute of
expat parser.
10 years ago
Serhiy Storchaka
931331a328
Issue #25019 : Fixed a crash caused by setting non-string key of expat parser.
Added additional tests for expat parser attributes.
Based on patch by John Leitch.
10 years ago
Steve Dower
aa2fcc6b35
Issue #24917 : time_strftime() buffer over-read.
10 years ago
Steve Dower
e5b5895b5b
Issue #24917 : time_strftime() buffer over-read.
10 years ago
Larry Hastings
62b24624dd
Backing out 09b62202d9b7; the tests fail on Linux, and it needs a re-think.
10 years ago
Steve Dower
ef920d6d5e
Backed out changeset: a29b49d57769
10 years ago
Steve Dower
0fba9b324f
Issue #24917 : time_strftime() Buffer Over-read. Patch by John Leitch.
10 years ago
Raymond Hettinger
2b2b75374e
Prevent reentrant badness by deferring the decrefs as long as possible.
10 years ago
Steve Dower
373602fa3f
Issue #24917 : time_strftime() Buffer Over-read. Patch by John Leitch.
10 years ago
Nick Coghlan
9d3c61c86a
Close #24748 : Restore imp.load_dynamic compatibility
To resolve a compatibility problem found with py2exe and
pywin32, imp.load_dynamic() once again ignores previously loaded modules
to support Python modules replacing themselves with extension modules.
Patch by Petr Viktorin.
10 years ago
Serhiy Storchaka
4e63f7a2b4
Issue #24989 : Fixed buffer overread in BytesIO.readline() if a position is
set beyond size. Based on patch by John Leitch.
10 years ago
Serhiy Storchaka
594e54c765
Issue #24989 : Fixed buffer overread in BytesIO.readline() if a position is
set beyond size. Based on patch by John Leitch.
10 years ago
Victor Stinner
528a9ab1f0
Don't use defined() in C preprocessor macros
The ICC compiler doesn't seem to support defined() in macro expansion. Example
of warning:
warning #3199 : "defined" is always false in a macro expansion in Microsoft mode
10 years ago
Brett Cannon
df6b544ff6
Issue #24913 : Fix overrun error in deque.index().
Reported by John Leitch and Bryce Darling, patch by Raymond Hettinger.
10 years ago
Zachary Ware
fda673d59f
Issue #24974 : Force fp-model precice in mpdecimal.c on Windows
As suggested by Steve Dower and approved by Stefan Krah.
10 years ago
Raymond Hettinger
87674ec7d5
Issue #24913 : Fix overrun error in deque.index().
11 years ago
Serhiy Storchaka
c97a962e08
Issue #24824 : Signatures of codecs.encode() and codecs.decode() now are
compatible with pydoc.
11 years ago
Benjamin Peterson
f6b5cad3c3
include fcntl.h on all *nix platforms ( closes #24217 )
Patch by Jeffrey Armstrong.
11 years ago
Zachary Ware
3e77677692
Issue #23652 : Make the select module compile against LSB headers.
Patch by Matt Frank.
11 years ago
Victor Stinner
9c631a0f71
Issue #23319 : Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
written by Matthieu Gautier.
11 years ago
Raymond Hettinger
acd61b6e40
Issue #24735 : Fix invalid memory access in combinations_with_replacement()
11 years ago
Serhiy Storchaka
83236f7a8b
Issue #24683 : Fixed crashes in _json functions called with arguments of
inappropriate type.
11 years ago
Serhiy Storchaka
178f0b6ddc
Issue #24620 : Random.setstate() now validates the value of state last element.
11 years ago
Raymond Hettinger
239aba7874
Issue #19663 : Improve error message for defaultdict.
11 years ago
Benjamin Peterson
d113c967b4
improve style of the convert macro ( #24655 )
Patch by Brian Cain.
11 years ago
Victor Stinner
579db160b3
Closes #23247 : Fix a crash in the StreamWriter.reset() of CJK codecs
11 years ago
Yury Selivanov
14acf5f41d
Issue #24791 : Fix grammar regression for call syntax: 'g(*a or b)'.
11 years ago
Victor Stinner
bea232a15f
Issue #24732 , #23834 : Fix sock_accept_impl() on Windows
accept() returns INVALID_SOCKET on error, it's not necessary a negative number.
11 years ago
Serhiy Storchaka
374164c2f5
Issue #14373 : Fixed segmentation fault when gc.collect() is called during
constructing lru_cache (C implementation).
11 years ago
Serhiy Storchaka
03d6ee3823
Issue #18684 : Fixed reading out of the buffer in the re module.
11 years ago