- 13 Nov, 2018 3 commits
-
-
Windson yang authored
reproduciblity -> reproducibility PyPA are the group -> PyPA is the group
-
Gregory P. Smith authored
clang's MemorySanitizer understand getc() but does not understand getc_unlocked(). Workaround: Don't use it on msan builds.
-
Victor Stinner authored
The warnings module now suggests to enable tracemalloc if the source is specified, tracemalloc module is available, but tracemalloc is not tracing memory allocations.
-
- 12 Nov, 2018 9 commits
-
-
Gregory P. Smith authored
Adds configure flags for msan and ubsan builds to make it easier to enable. These also encode the detail that address sanitizer and memory sanitizer should disable pymalloc. Define MEMORY_SANITIZER when appropriate at build time and adds workarounds to existing code to mark things as initialized where the sanitizer is otherwise unable to determine that. This lets our build succeed under the memory sanitizer. not all tests pass without sanitizer failures yet but we're in pretty good shape after this.
-
Windson yang authored
a asynchronous generator -> an asynchronous generator
-
Andrés Delfino authored
-
Andrew Svetlov authored
-
Andrés Delfino authored
-
Victor Stinner authored
Rename Include/internal/ headers: * pycore_hash.h -> pycore_pyhash.h * pycore_lifecycle.h -> pycore_pylifecycle.h * pycore_mem.h -> pycore_pymem.h * pycore_state.h -> pycore_pystate.h Add missing headers to Makefile.pre.in and PCbuild: * pycore_condvar.h. * pycore_hamt.h * pycore_pyhash.h
-
Giampaolo Rodola authored
-
Independently of -> Independent of
-
Jakub Stasiak authored
* universal_newlines defaulting to False would suggest, that not specifying universal_newlines explicitly and setting text to True should cause an error, which is not the case. * The run function didn't have the universal_newlines parameter documented * The check_output function didn't have its text parameter documented
-
- 11 Nov, 2018 7 commits
-
-
Julien Palard authored
The documentation was not covering multiple targets enclosed by parenthesis nor multiple targets enclosed by brackets, adding them all would be heavy, an else cover them all and is lighter to read.
-
Victor Stinner authored
* ast.h now includes Python-ast.h and node.h * parsetok.h now includes node.h and grammar.h * symtable.h now includes Python-ast.h * Modify asdl_c.py to enhance Python-ast.h: * Add #ifndef/#define Py_PYTHON_AST_H to be able to include the header twice * Add "extern { ... }" for C++ * Undefine "Yield" macro conflicting with winbase.h * Remove "#undef Yield" from C files, it's now done in Python-ast.h * Remove now useless includes in C files
-
Alexey Izbyshev authored
This function may access memory which is mapped but is considered free by libc allocator. It behaves so by design, therefore we need to suppress sanitizer reports. GCC doesn't support MSan, so disable only TSan for it.
-
Raymond Hettinger authored
Remove unneeded assertion (we already know so is a PySetObject *).
-
-
Andrés Delfino authored
-
Terry Jan Reedy authored
The System Preferences Dock "prefer tabs always" setting disables some IDLE features. Menus are a bit different than as described for Windows and Linux.
-
- 10 Nov, 2018 4 commits
-
-
-
-
-
David Kleuker authored
This also makes it consistent with other places like: - https://docs.python.org/dev/copyright.html - https://www.python.org/ footer - https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Python/getcopyright.c#L7
-
- 09 Nov, 2018 10 commits
-
-
Géry Ogam authored
Co-Authored-By: maggyero <gery.ogam@gmail.com>
-
Victor Stinner authored
* _PyTuple_ITEMS() gives access to the tuple->ob_item field and cast the first argument to PyTupleObject*. This internal macro is only usable if Py_BUILD_CORE is defined. * Replace &PyTuple_GET_ITEM(ob, 0) with _PyTuple_ITEMS(ob). * Replace PyTuple_GET_ITEM(op, 1) with &_PyTuple_ITEMS(ob)[1].
-
Victor Stinner authored
* All internal header files now require Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN to be defined. * _json.c is now compiled with Py_BUILD_CORE_BUILTIN to access pycore_accu.h header. * Add an example to Modules/Setup to show how to build _json as a built-in module; it requires non trivial compiler options.
-
Raymond Hettinger authored
Currently, the *n* and *total* variables get converted to floats each time they are multiplied by random(). This minor tweak does the conversion just once and gets a small speedup (approx 3%).
-
Raymond Hettinger authored
Gives approx 20% speed-up using clang depending on the number of elements in the set (the less dense the set, the more the speed-up). Uses the same entry++ logic used elsewhere in the setobject.c code.
-
Raymond Hettinger authored
1) Convert weird field name "typ" to the more standard "type". 2) For the NUMBER type, convert the value to an int() or float(). 3) Simplify ``group(kind)`` to the shorter and faster ``group()`` call. 4) Simplify logic go a single if-elif chain to make this easier to extend. 5) Reorder the tests to match the order the tokens are specified. This isn't necessary for correctness but does make the example easier to follow. 6) Move the "column" calculation before the if-elif chain so that users have the option of using this value in error messages.
-
Raymond Hettinger authored
Since the n==1 case just returns *max*, it cannot be larger than the magnitude of the vector entry.
-
Alexey Izbyshev authored
This typo doesn't affect the result because wrong bits are discarded on implicit conversion to unsigned char, but it trips UBSan with -fsanitize=implicit-integer-truncation. https://bugs.python.org/issue35194
-
Lisa Roach authored
-
Gregory P. Smith authored
Fix an off by one error in the peephole optimizer when checking for unreachable code beyond a return. Do a bounds check within find_op so it can return before going past the end as a safety measure. https://github.com/python/cpython/commit/7db3c488335168993689ddae5914a28e16188447#diff-a33329ae6ae0bb295d742f0caf93c137 introduced this off by one error while fixing another one nearby. This bug was shipped in all Python 3.6 and 3.7 releases. The included unittest won't fail unless you do a clang msan build.
-
- 08 Nov, 2018 3 commits
-
-
Vincent Michel authored
The call to `_untrack_reader` is performed too soon, causing the protocol to forget about the reader before `connection_lost` can run and feed the EOF to the reader. See bpo-35065.
-
Zackery Spytz authored
-
Serhiy Storchaka authored
Pydoc now does not duplicate docstrings for aliases of inherited methods.
-
- 07 Nov, 2018 4 commits
-
-
Pablo Galindo authored
This reverts commit c64583b6 due to multiple buildbot failures when building it.
-
Julien Palard authored
-
Pablo Galindo authored
The constructor of subprocess.CalledProcessError in the check_output function had an extra None in it.
-
Julien Palard authored
-