summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34160: Preserve user specified order of Element attributes (GH-10163)Raymond Hettinger2018-10-284-1/+30
|
* Fix checking for bugfix Tcl version. (GH-10185)Serhiy Storchaka2018-10-281-1/+1
|
* bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174)Alexey Izbyshev2018-10-283-5/+5
| | | | | | | * Fix potential division by zero in BZ2_Malloc() * Avoid division by zero in PyLzma_Malloc() * Avoid division by zero and integer overflow in PyZlib_Malloc() Reported by Svace static analyzer.
* bpo-1529353: Explain Shell text squeezing in the IDLE doc. (#10169)Terry Jan Reedy2018-10-282-3/+39
|
* bpo-35089: Don't mention typing.io and typing.re (GH-10173)Sebastian Rittau2018-10-282-16/+11
| | | | https://bugs.python.org/issue35089
* bpo-34672: fix a compiler warning in timemodule.c (GH-10176)Xiang Zhang2018-10-281-1/+1
|
* bpo-35064 prefix smelly symbols that appear with COUNT_ALLOCS with _Py_ ↵Pablo Galindo2018-10-287-31/+31
| | | | | | | (GH-10152) Configuring python with ./configure --with-pydebug CFLAGS="-D COUNT_ALLOCS -O0" makes "make smelly" fail as some symbols were being exported without the "Py_" or "_Py" prefixes.
* bpo-32892: Support subclasses of base types in isinstance checks for AST ↵Serhiy Storchaka2018-10-282-1/+5
| | | | | | | constants. (GH-9934) Some projects (e.g. Chameleon) create ast.Str containing an instance of the str subclass.
* bpo-35054: Add yet more index entries for symbols. (GH-10121)Serhiy Storchaka2018-10-2830-190/+223
|
* Fix mistakes on function coroutines related definitions (GH-9871)Andrés Delfino2018-10-281-8/+8
| | | | | | | Fix a bug I introduced in #9864 by which coroutines are treated as synonymous of function coroutines. Also, fix the same mistake (coroutines == function coroutines) already present in other parts of the reference. I'm very sorry for the hassle.
* bpo-35088: Update idlelib.help.copy_string docstring (#10164)Terry Jan Reedy2018-10-282-17/+19
| | | We now use git and backporting instead of hg and forward merging.
* bpo-35087: Update idlelib help files for the current doc build. (GH-10162)Terry Jan Reedy2018-10-283-78/+100
| | | There is only one trivial change to idle.rst. Nearly all the changes to help.html are the elimination of chapter and section numbers on headers due to changes in the build system. help.py no longer requires header numbering.
* bpo-34751: improved hash function for tuples (GH-9471)jdemeyer2018-10-283-43/+143
|
* bpo-35067: Remove _distutils_findvs and use vswhere.exe instead. (GH-10095)Steve Dower2018-10-2714-1240/+35
|
* unittest documentation: Spell pytest without the dot (GH-9820)Andreas Pelme2018-10-271-1/+1
| | | Referring to ``pytest`` as ``py.test`` is deprecated.
* Fix typo in zipfile documentation. (GH-10151)nsrip2018-10-271-1/+1
|
* bpo-33710: Deprecate l*gettext() and related functions in the gettext ↵Serhiy Storchaka2018-10-275-67/+233
| | | | | | module. (GH-10139) They return encoded bytes and are Python 2 artifacts.
* bpo-35079: Revise difflib.SequenceManager.get_matching_blocks doc (GH-10144)Terry Jan Reedy2018-10-272-3/+6
| | | Specify that blocks are non-overlapping. Change '!=' to '<'.
* bpo-35042: Use the :pep: role where a PEP is specified (#10036)Stéphane Wirtel2018-10-2640-94/+95
|
* bpo-35024: Remove redundant and possibly incorrect verbose message after ↵Quentin Agren2018-10-263-1346/+1346
| | | | | | | | | writing '.pyc' (GH-9998) Since `SourceFileLoader.set_data()` catches exceptions raised by `_write_atomic()` and logs an informative message consequently, always logging successful outcome in 'SourceLoader.get_code()' seems redundant. https://bugs.python.org/issue35024
* Fix a typo in asyncio-dev.rst. (GH-10133)Benjamin Peterson2018-10-261-1/+1
| | | "threadsafe"
* bpo-9263: _PyXXX_CheckConsistency() use _PyObject_ASSERT() (GH-10108)Victor Stinner2018-10-263-52/+64
| | | | | | | | | | Use _PyObject_ASSERT() in: * _PyDict_CheckConsistency() * _PyType_CheckConsistency() * _PyUnicode_CheckConsistency() _PyObject_ASSERT() dumps the faulty object if the assertion fails to help debugging.
* bpo-9263: Use _PyObject_ASSERT() in typeobject.c (GH-10111)Victor Stinner2018-10-261-10/+13
| | | | Replace assert() with _PyObject_ASSERT() in Objects/typeobject.c to dump the faulty object on assertion failure to ease debugging.
* bpo-9263: Use _PyObject_ASSERT() in gcmodule.c (GH-10112)Victor Stinner2018-10-261-46/+56
| | | | | | | | | | Replace assert() with _PyObject_ASSERT() in Modules/gcmodule.c to dump the faulty object on assertion failure to ease debugging. Fix also indentation of a large comment. Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
* bpo-9263: Use _PyObject_ASSERT() in object.c (GH-10110)Victor Stinner2018-10-261-18/+22
| | | | Replace assert() with _PyObject_ASSERT() in Objects/object.c to dump the faulty object on assertion failure to ease debugging.
* bpo-35059, libmpdec: Add missing EXTINLINE in mpdecimal.h (GH-10128)Victor Stinner2018-10-261-5/+5
| | | | | | | | | | | | | Declare functions with EXTINLINE: * mpd_del() * mpd_uint_zero() * mpd_qresize() * mpd_qresize_zero() * mpd_minalloc() These functions are implemented with "inline" or "ALWAYS_INLINE", but declared without inline which cause linker error on Visual Studio in Debug mode when using /Ob1.
* bpo-34789: make xml.sax.make_parser accept iterables of all types (GH-9576)Andrés Delfino2018-10-264-5/+38
|
* bpo-35017, socketserver: don't accept request after shutdown (GH-9952)Denis Ledoux2018-10-262-0/+6
| | | | | | | | | | | | | | Prior to this revision, after the shutdown of a `BaseServer`, the server accepted a last single request if it was sent between the server socket polling and the polling timeout. This can be problematic for instance for a server restart for which you do not want to interrupt the service, by not closing the listening socket during the restart. One request failed because of this behavior. Note that only one request failed, following requests were not accepted, as expected.
* Simplify the warning for http.server. (#10116)Senthil Kumaran2018-10-261-4/+2
|
* bpo-35059, PCbuild: Expand inline funcs in Debug (GH-10094)Victor Stinner2018-10-262-0/+6
| | | | | | | | | | Visual Studio solution: Set InlineFunctionExpansion to OnlyExplicitInline ("/Ob1" option) on all projects (in pyproject.props) in Debug mode on Win32 and x64 platforms to expand functions marked as inline. This change should make Python compiled in Debug mode a little bit faster on Windows. On Unix, GCC uses -Og optimization level for ./configure --with-pydebug.
* bpo-35059: Convert PyObject_INIT() to function (GH-10077)Victor Stinner2018-10-268-16/+33
| | | | | * Convert PyObject_INIT() and PyObject_INIT_VAR() macros to static inline functions. * Fix usage of these functions: cast to PyObject* or PyVarObject*.
* bpo-34890: Make iscoroutinefunction, isgeneratorfunction and ↵Pablo Galindo2018-10-266-12/+61
| | | | | | | | | | | isasyncgenfunction work with functools.partial (GH-9903) inspect.isfunction() processes both inspect.isfunction(func) and inspect.isfunction(partial(func, arg)) correctly but some other functions in the inspect module (iscoroutinefunction, isgeneratorfunction and isasyncgenfunction) lack this functionality. This commits adds a new check in the mentioned functions in the inspect module so they can work correctly with arbitrarily nested partial functions.
* bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)Stéphane Wirtel2018-10-2617-17/+19
|
* bpo-35054: Add more index entries for symbols. (GH-10064)Serhiy Storchaka2018-10-2626-64/+466
|
* bpo-9263: _Py_NegativeRefcount() use _PyObject_AssertFailed() (GH-10109)Victor Stinner2018-10-262-10/+8
| | | | _Py_NegativeRefcount() now uses _PyObject_AssertFailed() to dump the object to help debugging.
* bpo-35053: Define _PyTraceMalloc_NewReference in object.h (GH-10107)Victor Stinner2018-10-253-4/+7
| | | | | | _PyTraceMalloc_NewReference() is now called by _Py_NewReference(), so move its definition to object.h. Moreover, define it even if Py_LIMITED_API is defined, since _Py_NewReference() is also exposed even if Py_LIMITED_API is defined.
* bpo-35022: unittest.mock.MagicMock now also supports __fspath__ (GH-9960)Max Bélanger2018-10-254-0/+18
| | | | The MagicMock class supports many magic methods, but not __fspath__. To ease testing with modules such as os.path, this function is now supported by default.
* bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. ↵Stéphane Wirtel2018-10-252-3/+2
| | | | | (GH-10098) https://bugs.python.org/issue35038
* Fix grammar in using/unix build instruction docs (GH-10009)Stéphane Wirtel2018-10-251-4/+4
|
* bpo-9263: Dump Python object on GC assertion failure (GH-10062)Victor Stinner2018-10-256-13/+179
| | | | | | | | | | | | | | | | | | | | | | | Changes: * Add _PyObject_AssertFailed() function. * Add _PyObject_ASSERT() and _PyObject_ASSERT_WITH_MSG() macros. * gc_decref(): replace assert() with _PyObject_ASSERT_WITH_MSG() to dump the faulty object if the assertion fails. _PyObject_AssertFailed() calls: * _PyMem_DumpTraceback(): try to log the traceback where the object memory has been allocated if tracemalloc is enabled. * _PyObject_Dump(): log repr(obj). * Py_FatalError(): log the current Python traceback. _PyObject_AssertFailed() uses _PyObject_IsFreed() heuristic to check if the object memory has been freed by a debug hook on Python memory allocators. Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
* bpo-35059: Add Py_STATIC_INLINE() macro (GH-10093)Victor Stinner2018-10-256-38/+94
| | | | | | | | | * Add Py_STATIC_INLINE() macro to declare a "static inline" function. If the compiler supports it, try to always inline the function even if no optimization level was specified. * Modify pydtrace.h to use Py_STATIC_INLINE() when WITH_DTRACE is not defined. * Add an unit test on Py_DECREF() to make sure that _Py_NegativeRefcount() reports the correct filename.
* bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082)Tim Graham2018-10-253-1/+5
| | | Regression in b0bf51b32240369ccb736dc32ff82bb96f375402.
* bpo-32321: Add pure Python fallback for functools.reduce (GH-8548)madman-bob2018-10-253-36/+80
|
* bpo-35053: Add Include/tracemalloc.h (GH-10091)Victor Stinner2018-10-257-37/+54
| | | | | | | * Modify object.h to ensure that pymem.h is included, to get _Py_tracemalloc_config variable. * Move _PyTraceMalloc_XXX() functions to tracemalloc.h, they need PyObject type. Break circular dependency between pymem.h and object.h.
* bpo-35053: Enhance tracemalloc to trace free lists (GH-10063)Victor Stinner2018-10-257-51/+157
| | | | | | | | | | | | tracemalloc now tries to update the traceback when an object is reused from a "free list" (optimization for faster object creation, used by the builtin list type for example). Changes: * Add _PyTraceMalloc_NewReference() function which tries to update the Python traceback of a Python object. * _Py_NewReference() now calls _PyTraceMalloc_NewReference(). * Add an unit test.
* importlib: Fix typo in SourceLoader.path_stats docstring (GH-10052)Quentin2018-10-252-1500/+1500
|
* bpo-28015: Support LTO build with clang (GH-9908)serge-sans-paille2018-10-244-83/+235
| | | | | | | | | | .o generated by clang in LTO mode actually are LLVM bitcode files, which leads to a few errors during configure/build step: - add lto flags to the BASECFLAGS instead of CFLAGS, as CFLAGS are used to build autoconf test case, and some are not compatible with clang LTO (they assume binary in the .o, not bitcode) - force llvm-ar instead of ar, as ar is not aware of .o files generated by clang -flto
* configparser doc: Properly label ConfigParser attributes (GH-9930)Ned Batchelder2018-10-241-3/+3
|
* importlib doc: Fix approximated import_module() code (GH-9945)orlnub1232018-10-241-1/+1
| | | The spec gets stored on modules with the __spec__ attribute, not spec.
* bpo-35027, distutils doc: Correct note on setup.py change in Python 3.7 ↵TilmanK2018-10-241-3/+2
| | | | (GH-10032)