- 15 Jan, 2019 2 commits
-
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
- 14 Jan, 2019 2 commits
-
-
Serhiy Storchaka authored
-
MichaelSaah authored
Previously, calling the strftime() method on a datetime object with a trailing '%' in the format string would result in an exception. However, this only occured when the datetime C module was being used; the python implementation did not match this behavior. Datetime is now PEP-399 compliant, and will not throw an exception on a trailing '%'.
-
- 13 Jan, 2019 3 commits
-
-
Terry Jan Reedy authored
IDLE's test_squeezer.SqueezerTest.test_reload, added for issue 35196, failed on both Gentoo buildbots.
-
Tal Einat authored
The new functionality of Squeezer.reload() is also tested, along with some general re-working of the tests in test_squeezer.py.
-
Anthony Sottile authored
-
- 12 Jan, 2019 8 commits
-
-
Alexey Izbyshev authored
-
Serhiy Storchaka authored
Format characters "%s" and "%V" in PyUnicode_FromFormat() and "%s" in PyBytes_FromFormat() no longer read memory past the limit if precision is specified.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Add also tests for PyUnicode_FromFormat() and PyBytes_FromFormat() with empty result.
-
Serhiy Storchaka authored
Use the fast call convention for math functions atan2(), copysign(), hypot() and remainder() and inline unpacking arguments. This sped up them by 1.3--2.5 times.
-
Serhiy Storchaka authored
Inline PyArg_UnpackTuple() and _PyArg_UnpackStack() in performance sensitive code in the builtins and operator modules.
-
Ammar Askar authored
Argument clinic now generates fast inline code for positional parsing, so the manually implemented type check in math.dist can be removed.
-
- 11 Jan, 2019 6 commits
-
-
Eric Snow authored
This change separates the signal handling trigger in the eval loop from the "pending calls" machinery. There is no semantic change and the difference in performance is insignificant. The change makes both components less confusing. It also eliminates the risk of changes to the pending calls affecting signal handling. This is particularly relevant for some upcoming pending calls changes I have in the works.
-
Michael Felt authored
This fixes ShareableTypeTests.test_int() in Lib/test/test__xxsubinterpreters.py.
-
Serhiy Storchaka authored
Use _PyArg_CheckPositional() and inlined code instead of PyArg_UnpackTuple() and _PyArg_UnpackStack() if all parameters are positional and use the "object" converter.
-
Serhiy Storchaka authored
-
Victor Stinner authored
Fix memory leaks in asyncio ProactorEventLoop on overlapped operation failures. Changes: * Implement the tp_traverse slot in the _overlapped.Overlapped type to help to break reference cycles and identify referrers in the garbage collector. * Always clear overlapped on failure: not only set type to TYPE_NOT_STARTED, but release also resources.
-
Joannah Nanjekye authored
Document that the time.CLOCK_MONOTONIC_RAW constant is now also available on macOS 10.12. Co-authored-by:
Ricardo Fraile <rfraile@rfraile.eu>
-
- 10 Jan, 2019 7 commits
-
-
Bo Bayles authored
-
Joannah Nanjekye authored
-
Zackery Spytz authored
-
Pablo Galindo authored
-
Victor Stinner authored
* asyncio: __del__() keep reference to warnings.warn The __del__() methods of asyncio classes now keep a strong reference to the warnings.warn() to be able to display the ResourceWarning warning in more cases. Ensure that the function remains available if instances are destroyed late during Python shutdown (while module symbols are cleared). * Rename warn parameter to _warn "_warn" name is a hint that it's not the regular warnings.warn() function.
-
Victor Stinner authored
* _wait_for_handle(), _register() and _unregister() methods of IocpProactor now raise an exception if closed * Add "closed" to IocpProactor.__repr__() * Simplify IocpProactor.close()
-
antektek authored
-
- 09 Jan, 2019 6 commits
-
-
Miro Hrončok authored
-
Andre Delfino authored
-
Charles-Axel Dein authored
-
Pablo Galindo authored
-
Terry Jan Reedy authored
-
Sanyam Khurana authored
-
- 08 Jan, 2019 6 commits
-
-
Victor Stinner authored
Fix a memory leak in asyncio in the ProactorEventLoop when ReadFile() or WSASend() overlapped operation fail immediately: release the internal buffer.
-
Steve Dower authored
Also adds extra steps to the CI build for Windows on Azure Pipelines to validate that the various layouts at least execute.
-
Vladimir Matveev authored
As in title, expose C `raise` function as `raise_function` in `signal` module. Also drop existing `raise_signal` in `_testcapi` module and replace all usages with new function. https://bugs.python.org/issue35568
-
chrullrich authored
-
Pierre Glaser authored
-
Victor Stinner authored
bpo-32622, bpo-35682: Fix asyncio.ProactorEventLoop.sendfile(): don't attempt to set the result of an internal future if it's already done. Fix asyncio _ProactorBasePipeTransport._force_close(): don't set the result of _empty_waiter if it's already done.
-