summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-34100: compile: Re-enable frozenset merging (GH-10760)INADA Naoki2018-11-282-2/+65
| | | This reverts commit 1005c84535191a72ebb7587d8c5636a065b7ed79.
* bpo-35337: Fix gettmarg(): use PyStructSequence_GET_ITEM() (GH-10765)Victor Stinner2018-11-281-2/+2
| | | | PyStructSequence_GET_ITEM() must be used instead of PyTuple_GET_ITEM() on a StructTimeType.
* bpo-35134: Create Include/cpython/tupleobject.h (GH-10764)Victor Stinner2018-11-285-33/+81
| | | | | | | Move tupleobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/tupleobject.h header file. Add cpython/ header files to Makefile.pre.in and pythoncore project of PCbuild.
* bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759)Victor Stinner2018-11-283-9/+19
| | | | | | | | | Fix memory leak in PyUnicode_EncodeLocale() and PyUnicode_EncodeFSDefault() on error handling. Changes: * Fix unicode_encode_locale() error handling * Fix test_codecs.LocaleCodecTest
* bpo-35240: Add "doctest" job to Travis CI (GH-10753)Victor Stinner2018-11-281-4/+16
| | | Create a new "doctest" job in Travis CI to run "make doctest".
* bpo-33676: Fix dangling thread in _test_multiprocessing (GH-10755)Victor Stinner2018-11-281-0/+2
| | | | | | | Fix WithThreadsTestPool.test_wrapped_exception() of test_multiprocessing_fork: join the pool. WithThreadsTestPool.test_del_pool() is now also decorated with @support.reap_threads.
* bpo-35134: Don't define types twice in header files (GH-10754)Victor Stinner2018-11-272-29/+36
| | | | | | Fix the following clang warning: Include/cpython/pystate.h:217:3: warning: redefinition of typedef 'PyThreadState' is a C11 feature [-Wtypedef-redefinition]
* bpo-33012: Fix more invalid function cast warnings with gcc 8. (GH-10751)Serhiy Storchaka2018-11-272-3/+3
| | | Fix warnings with gcc 8 for wrapperfunc <-> wrapperfunc_kwds casts.
* bpo-35312: Make lib2to3.pgen2.parse.ParseError round-trip pickle-able. ↵Anthony Sottile2018-11-273-0/+16
| | | | (GH-10710)
* bpo-33029: Fix signatures of getter and setter functions. (GH-10746)Serhiy Storchaka2018-11-2725-122/+128
| | | Fix also return type for few other functions (clear, releasebuffer).
* bpo-34100: Partially revert merge_consts_recursive() (GH-10743)Victor Stinner2018-11-272-60/+0
| | | | | Partically revert commit c2e1607a51d7a17f143b5a34e8cff7c6fc58a091 to fix a reference leak.
* bpo-35134: Update "make tags": add Include/cpython/ (GH-10739)Victor Stinner2018-11-271-2/+2
| | | | "make tags" and "make TAGS" now also parse Include/cpython/ header files.
* bpo-33954: Fix compiler warning in _PyUnicode_FastFill() (GH-10737)Victor Stinner2018-11-271-1/+4
| | | | | | | 'data' argument of unicode_fill() is modified, so it must not be constant. Add more assertions to unicode_fill(): check the maximum character value.
* bpo-35317: Fix mktime() error in test_email (GH-10721)Victor Stinner2018-11-272-0/+5
| | | | | Fix mktime() overflow error in test_email: run test_localtime_daylight_true_dst_true() and test_localtime_daylight_false_dst_true() with a specific timezone.
* bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749)Serhiy Storchaka2018-11-2738-174/+174
| | | | | | Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code.
* bpo-33012: Fix signatures of METH_NOARGS funstions. (GH-10736)Serhiy Storchaka2018-11-275-15/+15
|
* bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. ↵Serhiy Storchaka2018-11-2777-643/+974
| | | | | | | | (GH-6748) Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS in Argument Clinic generated code.
* bpo-31241: Fix AST node position for list and generator comprehensions. ↵Serhiy Storchaka2018-11-275-230/+278
| | | | | | | | (GH-10633) The lineno and col_offset attributes of AST nodes for list comprehensions, generator expressions and tuples are now point to the opening parenthesis or square brace. For tuples without parenthesis they point to the position of the first item.
* Include the highest pickle protocol in a couple of tests. (GH-10735)Zackery Spytz2018-11-272-2/+2
| | | | | test_reduce_ex() in test_array.py and test_reversevaluesiterator_pickling() in test_dict.py weren't using the highest pickle protocol.
* closes bpo-34212: Build core extension modules with Py_BUILD_CORE_BUILTIN. ↵E. M. Bray2018-11-272-1/+2
| | | | (GH-8712)
* bpo-35134: Create Include/cpython/pystate.h (GH-10733)Victor Stinner2018-11-262-281/+275
| | | | Move pystate.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/pystate.h header file.
* bpo-35134: Create Include/cpython/dictobject.h (GH-10732)Victor Stinner2018-11-262-119/+124
| | | | | | * Move dictobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/dictobject.h header file. * Add PyAPI_FUNC() to _PyDictView_New(). * Reorganize dictobject.h: move views and iterators at the end.
* bpo-35134: Create Include/cpython/pylifecycle.h (GH-10731)Victor Stinner2018-11-262-97/+102
| | | | Move pylifecycle.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/pylifecycle.h header file.
* bpo-35134: Create Include/cpython/abstract.h (GH-10728)Victor Stinner2018-11-262-281/+285
| | | | Move abstract.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/abstract.h header file.
* bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693)Zhiming Wang2018-11-263-2/+22
| | | | | Regression introduced in e3ce695 and 25b804a, where the old parameter update_tryorder to _synthesize was first ignored, then given the opposite value in the attempt to fix bpo-31014.
* bpo-35134: Add Include/cpython/pyerrors.h (GH-10727)Victor Stinner2018-11-262-168/+182
| | | | Move pyerrors.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/pyerrors.h header file.
* bpo-33723: Fix test_time.test_thread_time() (GH-10724)Victor Stinner2018-11-261-3/+7
| | | Tolerate up to 30 ms, instead of 15 min, in other threads.
* Adds IPv6 support when invoking http.server directly. (GH-10595)Lisa Roach2018-11-264-2/+30
|
* bpo-35134: Create Include/cpython/unicodeobject.h (GH-10680)Victor Stinner2018-11-262-1286/+1251
| | | | Move unicodeobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/unicodeobject.h header file.
* Doc: Delete now useless Windows FAQ section (GH-10557)Mathieu Dupuy2018-11-261-11/+0
|
* bpo-35134: Create Include/cpython/object.h (GH-10679)Victor Stinner2018-11-262-485/+460
| | | | | | | | * Move object.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/object.h header file. * "typedef struct _typeobject PyTypeObject;" is now always defined in object.h, but if Py_LIMITED_API is not defined, Include/cpython/object.h also defines the structure. * Complete the printfunc comment to mention Py_LIMITED_API define.
* pythoninfo: log more environment variable (GH-10719)Victor Stinner2018-11-261-4/+45
| | | Log TZ to debug a timezone issue... and a few more :-)
* bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623)Victor Stinner2018-11-265-252/+228
| | | | | | | | | | | | Fix str.format(), float.__format__() and complex.__format__() methods for non-ASCII decimal point when using the "n" formatter. Changes: * Rewrite _PyUnicode_InsertThousandsGrouping(): it now requires a _PyUnicodeWriter object for the buffer and a Python str object for digits. * Rename FILL() macro to unicode_fill(), convert it to static inline function, add "assert(0 <= start);" and rework its code.
* Add assertion to _PyTuple_CAST(op) (GH-10712)Victor Stinner2018-11-261-2/+2
| | | | | | Add "assert(PyTuple_Check(op));" to _PyTuple_CAST() to check that the argument is a tuple object in debug mode. PyTuple_GET_SIZE() now uses _PyTuple_CAST() to get its assertion.
* bpo-34100: Merge constants recursively (GH-8341)INADA Naoki2018-11-266-4594/+4692
| | | | | | | There are some same consts in a module. This commit merges them into single instance. It reduces number of objects in memory after loading modules. https://bugs.python.org/issue34100
* bpo-35313: Cleanup test_embed.py (GH-10716)Victor Stinner2018-11-261-4/+3
| | | | | * Remove an unused import. * Move get_expected_config() call to check_config() to ease backport to Python 3.7.
* bpo-35313: Fix test_embed when run from venv (GH-10713)Victor Stinner2018-11-261-63/+68
| | | | test_embed.InitConfigTests now gets the expected configuration from a child process run with -S to not run the site module.
* bpo-35300: Add usage note to the lru_cache() docs (GH-10707)Raymond Hettinger2018-11-261-0/+5
| | | https://bugs.python.org/issue35300
* bpo-35081: Add Include/internal/pycore_tupleobject.h (GH-10705)Victor Stinner2018-11-2512-5/+30
| | | | Move _PyTuple_ITEMS() to a new header file: Include/internal/pycore_tupleobject.h
* bpo-35081: Add _PyTuple_CAST() (GH-10704)Victor Stinner2018-11-251-4/+7
|
* closes bpo-35309: cpath should be capath (GH-10699)Boštjan Mejak2018-11-251-1/+1
|
* bpo-32035: Fix words about strings and bytes in zipfile documentation. ↵Serhiy Storchaka2018-11-252-16/+12
| | | | (GH-10592)
* Doc: Bump sphinx. (GH-10676)Julien Palard2018-11-242-2/+2
|
* bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689)Zackery Spytz2018-11-231-0/+1
|
* bpo-29877: compileall: import ProcessPoolExecutor only when needed (GH-4856)Dustin Spicuzza2018-11-233-11/+17
| | | | | | | Importing ProcessPoolExecutor may hang or cause an error when the import accesses urandom on a low resource platform https://bugs.python.org/issue29877
* bpo-34812: subprocess._args_from_interpreter_flags(): add isolated (GH-10675)Victor Stinner2018-11-233-4/+20
| | | | | | | | The "-I" command line option (run Python in isolated mode) is now also copied by the multiprocessing and distutils modules when spawning child processes. Previously, only -E and -s options (enabled by -I) were copied. subprocess._args_from_interpreter_flags() now copies the -I flag.
* Linkify SMTP.quit() in smtplib documentation. (GH-9785)takey2018-11-231-1/+1
|
* bpo-35134: Create Include/cpython/ subdirectory (GH-10624)Victor Stinner2018-11-237-108/+138
| | | | | | | | | | | | | | | | Include/*.h should be the "portable Python API", whereas Include/cpython/*.h should be the "CPython API": CPython implementation details. Changes: * Create Include/cpython/ subdirectory * "make install" now creates $prefix/include/cpython and copy Include/cpython/* to $prefix/include/cpython * Create Include/cpython/objimpl.h: move objimpl.h code surrounded by "#ifndef Py_LIMITED_API" to cpython/objimpl.h. * objimpl.h now includes cpython/objimpl.h * Windows installer (MSI) now also install Include/ subdirectories: Include/cpython/ and Include/internal/.
* bpo-35189: Retry fnctl calls on EINTR (GH-10413)nierob2018-11-233-23/+73
| | | | Modify the following fnctl function to retry if interrupted by a signal (EINTR): flock, lockf, fnctl.
* bpo-35296: make install now installs the internal API (GH-10665)Victor Stinner2018-11-232-0/+12
| | | | make install now also installs the internal API: Include/internal/*.h header files.