- 26 Oct, 2017 8 commits
-
-
Vitor Pereira authored
-
Serhiy Storchaka authored
-
xdegaye authored
-
Ammar Askar authored
-
Serhiy Storchaka authored
BytesWarning no longer emitted when the fromlist argument of __import__() or the __all__ attribute of the module contain bytes instances.
-
Benjamin Peterson authored
We stop support this OS in 2007 with commit 19fab761. Let's finish.
-
pdox authored
-
Mario Corchero authored
Add support to strptime to parse time offsets with a colon between the hour and the minutes.
-
- 25 Oct, 2017 4 commits
-
-
Serhiy Storchaka authored
-
Victor Stinner authored
_PyFunction_FastCallDict() and _PyFunction_FastCallKeywords() now also takes the fast path if the code object uses __future__ (CO_FUTURE_xxx flags).
-
Benjamin Peterson authored
This kludge is from 1992. Any C99 compiler is going to be able to handle the ceval dispatch switch. Anyway, we have much bigger switches than the ceval dispatch one around. (See, e.g., Objects/unicodetype_db.h.)
-
Nick Coghlan authored
The startup refactoring means command line settings are now applied after settings are read from the environment. This updates the way command line settings are applied to account for that, ensures more settings are first read from the environment in _PyInitializeCore, and adds a simple test case covering the flags that are easy to check.
-
- 24 Oct, 2017 11 commits
-
-
Victor Stinner authored
Fix the pthread+semaphore implementation of PyThread_acquire_lock_timed() when called with timeout > 0 and intr_flag=0: recompute the timeout if sem_timedwait() is interrupted by a signal (EINTR). See also the PEP 475. The pthread implementation of PyThread_acquire_lock() now fails with a fatal error if the timeout is larger than PY_TIMEOUT_MAX, as done in the Windows implementation. The check prevents any risk of overflow in PyThread_acquire_lock(). Add also PY_DWORD_MAX constant.
-
Serhiy Storchaka authored
-
Alexander Belopolsky authored
Calendar.itermonthdates() will now consistently raise an exception when a date falls outside of the 0001-01-01 through 9999-12-31 range. To support applications that cannot tolerate such exceptions, the new methods itermonthdays3() and itermonthdays4() are added. The new methods return tuples and are not restricted by the range supported by datetime.date. Thanks @serhiy-storchaka for suggesting the itermonthdays4() method and for the review.
-
Serhiy Storchaka authored
-
Masayuki Yamamoto authored
Make more sense to replace the word "default value" with "initializer" for Py_tss_NEEDS_INIT.
-
Thomas Kluyver authored
-
Victor Stinner authored
test_unparse.DirectoryTestCase now stores the names sample to always test the same files. It prevents false alarms when hunting reference leaks.
-
Julien Palard authored
-
Victor Stinner authored
-
Victor Stinner authored
* Add Tools/scripts/smelly.py: script checking if all symbols exported by libpython start with "Py" or "_Py". * Modify "make smelly" to run smelly.py: the command now fails with a non-zero exit code if libpython leaks a "smelly" symbol. * Travis CI now runs "make smelly"
-
Michał Górny authored
Rework the code choosing BLAKE2 code paths from using the optimized variant on all x86_64 machines to using it when SSSE3 or better supported instructions sets are available. Firstly, this solves the problem of using pure SSE2 code path on x86_64 machines. As reported in the bug, this code is slower than the reference code on all tested x86_64 machines. Furthermore, on Athlon64 that lacks SSSE3, it is even 2.5 times slower than the reference code! Checking for SSSE3 therefore ensures that the optimized implementation will only be used when it has a chance of performing better. Secondly, this makes it possible to use SSSE3+ optimizations on 32-bit x86 systems. This allows for even 2 times speed gain on modern 32-bit x86 systems (tested in a 32-bit chroot).
-
- 23 Oct, 2017 6 commits
-
-
Serhiy Storchaka authored
SyntaxError now is raised instead of SyntaxWarning.
-
Victor Stinner authored
Fix the following Coverity warning: >>> CID 1420038: Control flow issues (DEADCODE) >>> Execution cannot reach this statement: "res = sem_trywait(self->han...". 321 res = sem_trywait(self->handle); The deadcode was introduced by the commit c872d39d.
-
Christoph Sarnowski authored
-
xdegaye authored
-
Serhiy Storchaka authored
Bad remainder in divmod() in intermediate calculations caused an assertion failure.
-
andyclegg authored
Improve human friendliness of the Popen API: Add text=False as a keyword-only argument to subprocess.Popen along with a Popen attribute .text_mode and set this based on the encoding/errors/universal_newlines/text arguments. The universal_newlines parameter and attribute are maintained for backwards compatibility.
-
- 22 Oct, 2017 6 commits
-
-
Mark Shannon authored
Move exception state information from frame objects to coroutine (generator/thread) object where it belongs.
-
Cheryl Sabella authored
-
Serhiy Storchaka authored
-
Antoine Pitrou authored
-
Serhiy Storchaka authored
-
Antoine Pitrou authored
-
- 21 Oct, 2017 1 commit
-
-
Serhiy Storchaka authored
-
- 20 Oct, 2017 2 commits
-
-
Oren Milman authored
bpo-31781: Prevent crashes when calling methods of an uninitialized zipimport.zipimporter object (GH-3986)
-
Serhiy Storchaka authored
and in codecs.escape_decode() when decode an escaped non-ascii byte.
-
- 19 Oct, 2017 2 commits
-
-
Antoine Pitrou authored
* bpo-31819: Add AbstractEventLoop.sock_recv_into() * Add NEWS * Add doc
-
jlacoline authored
-