- 06 Jan, 2019 4 commits
-
-
cclauss authored
-
Cheryl Sabella authored
* bpo-35660: IDLE: Remove * import from window.py * sys was being imported through the *, so also added an import sys. * Update 2019-01-04-19-14-29.bpo-35660.hMxI7N.rst Anyone who wants details can check the issue, where I added the point about the sys import bug.
-
Anthony Shaw authored
-
Tal Einat authored
-
- 05 Jan, 2019 1 commit
-
-
Vladimir Matveev authored
-
- 04 Jan, 2019 1 commit
-
-
- 03 Jan, 2019 3 commits
-
-
Harmandeep Singh authored
bpo-31450: Remove documentation mentioning that subprocess's child_traceback is available with the parent process (GH-11422)
-
Emmanuel Arias authored
-
Terry Jan Reedy authored
-
- 02 Jan, 2019 8 commits
-
-
Harmandeep Singh authored
-
Mickaël Schoentgen authored
closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11411)
-
Benjamin Peterson authored
-
Serhiy Storchaka authored
Revert "bpo-35603: Escape table header of make_table output that can cause potential XSS. (GH-11341)" (GH-11356) This reverts commit 78de0119.
-
Stefan Behnel authored
* bpo-35588: Implement mod and divmod operations for Fraction type by spelling out the numerator/denominator calculation, instead of instantiating and normalising Fractions along the way. This speeds up '%' and divmod() by 2-3x. * bpo-35588: Also reimplement Fraction.__floordiv__() using integer operations to make it ~4x faster. * Improve code formatting. Co-Authored-By: scoder <stefan_ml@behnel.de> * bpo-35588: Fix return type of divmod(): the result of the integer division should be an integer. * bpo-35588: Further specialise __mod__() and inline the original helper function _flat_divmod() since it's no longer reused. * bpo-35588: Add some tests with large numerators and/or denominators. * bpo-35588: Use builtin "divmod()" function for implementing __divmod__() in order to simplify the implementation, even though performance results are mixed. * Rremove accidentally added empty line. * bpo-35588: Try to provide more informative output on test failures. * bpo-35588: Improve wording in News entry. Co-Authored-By: scoder <stefan_ml@behnel.de> * Remove stray space.
-
animalize authored
_Py_HashBytes() does the check for empty string.
-
sth authored
There is already a `Py_ssize_t i` defined at function scope that is used for similar loops. By removing the local `int i` declaration that `i` is used, which has the appropriate type.
-
Suriyaa ✌️️ authored
-
- 31 Dec, 2018 13 commits
-
-
Cheryl Sabella authored
Move translate_key() and constant tuples to module level. Inline the remnant one-line function.
-
Tal Einat authored
-
Serhiy Storchaka authored
* Replace the docstrings cache with sys.intern(). * Improve tests. * Unify names of tp_descr_get and tp_descr_set functions.
-
Serhiy Storchaka authored
-
sth authored
A minor typo in the output of `python -m test -h`. A space was missing in between two words. howmuch -> how much
-
Sanyam Khurana authored
-
Gregory P. Smith authored
It doesn't know the details of a few less common libc functions.
-
Gregory P. Smith authored
* skip test_constructor under msan. * fix the others as well. * reuse existing related news entry. * typo fix
-
Gregory P. Smith authored
-
Jakub Kulík authored
Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used. Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#Solaris https://bugs.python.org/issue35550
-
Gregory P. Smith authored
Also skip the same tests when using the undefined behavior sanitizer as they much with the output. Updates a regex in another test to use multi-line mode so that the ubsan buildbot should pass again rather than also adding a skip to that one.
-
Gregory P. Smith authored
HASH_OBJ_CONSTRUCTOR has always been defined as 0 since I created hashlib in Python 2.5. Delete all code associated with it.
-
Gregory P. Smith authored
Add Clang Memory Sanitizer build instrumentation to work around false positives from the socket and time modules as well as skipping a couple test_faulthandler tests.
-
- 30 Dec, 2018 5 commits
-
-
Gregory P. Smith authored
Use crypt_r() when available instead of crypt() in the crypt module. As a nice side effect: This also avoids a memory sanitizer flake as clang msan doesn't know about crypt's internal libc allocated buffer.
-
sth authored
`set_child_watcher()` *sets* the watcher.
-
Cheryl Sabella authored
-
Pablo Galindo authored
* bpo-32492: 2.5x speed up in namedtuple attribute access using C fast path * Add News entry * fixup! bpo-32492: 2.5x speed up in namedtuple attribute access using C fast path * Check for tuple in the __get__ of the new descriptor and don't cache the descriptor itself * Don't inherit from property. Implement GC methods to handle __doc__ * Add a test for the docstring substitution in descriptors * Update NEWS entry to reflect time against 3.7 branch * Simplify implementation with argument clinic, better error messages, only __new__ * Use positional-only parameters for the __new__ * Use PyTuple_GET_SIZE and PyTuple_GET_ITEM to tighter the implementation of tuplegetterdescr_get * Implement __set__ to make tuplegetter a data descriptor * Use Py_INCREF now that we inline PyTuple_GetItem * Apply the valid_index() function, saving one test * Move Py_None test out of the critical path.
-
Cheryl Sabella authored
-
- 29 Dec, 2018 5 commits
-
-
Sergey Fedoseev authored
-
Pablo Galindo authored
bpo-35602: Make sure the transport is always closed in SelectorEventLoopUnixSockSendfileTests (GH-11338) There is a race condition in SelectorEventLoopUnixSockSendfileTests that causes the prepare() method return a non connected server protocol, making the cleanup() method skips the correct handling of the transport. This commit makes prepare() always return a connected server protocol that can always be cleaned up correctly.
-
Xtreak authored
-
Pablo Galindo authored
The problem affects _testWithTimeoutTriggeredSend in test_socket.py.
-
Pablo Galindo authored
There is a race condition regarding signal delivery in test_signal_handling_args for test_asyncio.test_events.KqueueEventLoopTests. The signal can be received at any moment outside the time window provided in the test. The fix is to wait for the signal to be received instead with a bigger timeout.
-