Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-39877: _PyRuntimeState.finalizing becomes atomic (GH-18816) | Victor Stinner | 2020-03-06 | 5 | -15/+29 |
| | | | | | | | | | | | | Convert _PyRuntimeState.finalizing field to an atomic variable: * Rename it to _finalizing * Change its type to _Py_atomic_address * Add _PyRuntimeState_GetFinalizing() and _PyRuntimeState_SetFinalizing() functions * Remove _Py_CURRENTLY_FINALIZING() function: replace it with testing directly _PyRuntimeState_GetFinalizing() value Convert _PyRuntimeState_GetThreadState() to static inline function. | ||||
* | bpo-39573: Use Py_IS_TYPE() macro to check for types (GH-18809) | Andy Lester | 2020-03-06 | 10 | -17/+15 |
| | | | Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | bpo-17422: slightly more precise language (GH-18682) | Caleb Donovick | 2020-03-06 | 2 | -1/+3 |
| | |||||
* | bpo-39873: Cleanup _PyObject_CheckConsistency() (GH-18807) | Victor Stinner | 2020-03-06 | 1 | -1/+0 |
| | | | | Remove redundant check on Py_TYPE() value: it's already checked inside _PyType_CheckConsistency(). | ||||
* | bpo-36144: Implement defaultdict union (GH-18729) | Brandt Bucher | 2020-03-06 | 4 | -6/+88 |
| | | | For PEP 585 (this isn't in the PEP but is an obvious follow-up). | ||||
* | closes bpo-39872: Remove unused args from symtable_exit_block and ↵ | Andy Lester | 2020-03-06 | 1 | -16/+15 |
| | | | | symtable_visit_annotations. (GH-18800) | ||||
* | bpo-39873: PyObject_Init() uses PyObject_INIT() (GH-18804) | Victor Stinner | 2020-03-06 | 1 | -9/+2 |
| | | | | | | Avoid duplicated code: * PyObject_Init() uses PyObject_INIT() * PyObject_InitVar() uses PyObject_INIT_VAR() | ||||
* | PyPy already supports Python 3 (GH-18774) | Slam | 2020-03-06 | 1 | -2/+1 |
| | |||||
* | bpo-39573: Make Py_IS_TYPE() take constant parameters (GH-18799) | Andy Lester | 2020-03-06 | 1 | -2/+3 |
| | | | Add _PyObject_CAST_CONST() macro: cast a pointer to (const PyObject *). | ||||
* | bpo-39868: Update Language Reference for PEP 572. (#18793) | Brandt Bucher | 2020-03-06 | 3 | -6/+19 |
| | |||||
* | closes bpo-39859: Do not downcast result of hstrerror (GH-18790) | Andy Lester | 2020-03-06 | 1 | -1/+1 |
| | | | | | set_herror builds a string by calling hstrerror but downcasts its return value to char *. It should be const char *. Automerge-Triggered-By: @benjaminp | ||||
* | closes bpo-39870: Remove unused arg from sys_displayhook_unencodable. (GH-18796) | Andy Lester | 2020-03-06 | 1 | -3/+3 |
| | | | Also move int err to its innermost scope. | ||||
* | IDLE doc: improve Startup failure subsection. (#18771) | Jules Lasne (jlasne) | 2020-03-06 | 1 | -7/+10 |
| | | | | | | Eliminate repeat of 'Options', reported by Jules Lasne, and improve wording elsewhere. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | ||||
* | Add a comment to _Py_RestoreSignals() (GH-18792) | Victor Stinner | 2020-03-05 | 1 | -0/+2 |
| | | | subprocess _posix_spawn() should stay in sync with _Py_RestoreSignals(). | ||||
* | bpo-39855: Fix test_subprocess if nobody user doesn't exist (GH-18781) | Victor Stinner | 2020-03-05 | 2 | -2/+10 |
| | | | | | test_subprocess.test_user() now skips the test on an user name if the user name doesn't exist. For example, skip the test if the user "nobody" doesn't exist on Linux. | ||||
* | bpo-13487: Use sys.modules.copy() in inspect.getmodule() for thread safety. ↵ | Gregory P. Smith | 2020-03-05 | 2 | -1/+4 |
| | | | | | | | | (GH-18786) `list(sys.modules.items())` was apparently not immune to "dictionary changed size during iteration" errors. Tested internally using an integration test that has run into this a couple of times in the past two years. With this patch applied, the test is no longer flaky. | ||||
* | Add a missing space after a period in 'typing.TypedDict' documentation ↵ | Miss Islington (bot) | 2020-03-05 | 1 | -1/+1 |
| | | | | (GH-18784) | ||||
* | bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) | Brett Cannon | 2020-03-04 | 1 | -1/+1 |
| | |||||
* | bpo-39674: Revert "bpo-37330: open() no longer accept 'U' in file mode ↵ | Victor Stinner | 2020-03-04 | 13 | -54/+99 |
| | | | | | | | (GH-16959)" (GH-18767) This reverts commit e471e72977c83664f13d041c78549140c86c92de. The mode will be removed from Python 3.10. | ||||
* | bpo-39763: Refactor setup.py (GH-18778) | Victor Stinner | 2020-03-04 | 1 | -13/+32 |
| | | | | | Split long build_extensions() method into sub-methods. Fix also a typo in Popen.wait(): replace sts with status. | ||||
* | bpo-39639: Remove the AST "Suite" node and associated code (GH-18513) | Batuhan Taşkaya | 2020-03-04 | 10 | -106/+7 |
| | | | | | | | | The AST "Suite" node is no longer used and it can be removed from the ASDL definition and related structures (compiler, visitors, ...). Co-Authored-By: Victor Stinner <vstinner@python.org> Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> | ||||
* | bpo-39770, array module: Remove unnecessary descriptor counting (GH-18675) | Andy Lester | 2020-03-04 | 1 | -5/+0 |
| | |||||
* | bpo-39674: Fix typo in What's New In Python 3.9 (GH-18776) | Victor Stinner | 2020-03-04 | 1 | -1/+1 |
| | |||||
* | bpo-39763: distutils.spawn now uses subprocess (GH-18743) | Victor Stinner | 2020-03-04 | 5 | -117/+87 |
| | | | | | | | | Reimplement distutils.spawn.spawn() function with the subprocess module. setup.py now uses a basic implementation of the subprocess module if the subprocess module is not available: before required C extension modules are built. | ||||
* | bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601) | Andy Lester | 2020-03-04 | 23 | -57/+56 |
| | |||||
* | bpo-39826: add getConnection() hook to logging HTTPHandler (GH-18745) | l0rb | 2020-03-04 | 2 | -5/+17 |
| | |||||
* | bpo-39702: Relax grammar restrictions on decorators (PEP 614) (GH-18570) | Brandt Bucher | 2020-03-03 | 8 | -537/+534 |
| | |||||
* | bpo-39674: Suggest to test with DeprecationWarning (GH-18552) | Victor Stinner | 2020-03-03 | 1 | -0/+28 |
| | | | | | | Add a section in What's New In Python 3.9 to strongly advice to check for DeprecationWarning in your Python projects. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> | ||||
* | bpo-35712: Make using NotImplemented in a boolean context issue a ↵ | MojoVampire | 2020-03-03 | 10 | -12/+64 |
| | | | | deprecation warning (GH-13195) | ||||
* | bpo-39831: Remove outdated comment. (GH-18764) | Serhiy Storchaka | 2020-03-03 | 1 | -3/+1 |
| | |||||
* | bpo-39674: Update collections ABC deprecation doc (GH-18747) | Victor Stinner | 2020-03-03 | 1 | -1/+1 |
| | |||||
* | bpo-12915: Skip test_pkgutil.test_name_resolution() non-encodable filenames ↵ | Michael Felt | 2020-03-03 | 1 | -1/+5 |
| | | | | | | (GH-18720) When filesystem encoding cannot encode the Unicode string used for a filename continue testing with the next example. | ||||
* | bpo-39778: Add clarification about tp_traverse and ownership (GH-18754) | Pablo Galindo | 2020-03-03 | 1 | -1/+13 |
| | | | Automerge-Triggered-By: @pablogsal | ||||
* | bpo-39802: Only expose set_escdelay and set_tabsize when curses extensions ↵ | Batuhan Taşkaya | 2020-03-03 | 2 | -1/+39 |
| | | | | are activated (GH-18705) | ||||
* | bpo-38091: Import deadlock detection causes deadlock (GH-17518) | Armin Rigo | 2020-03-03 | 4 | -1667/+1688 |
| | | | Automerge-Triggered-By: @brettcannon | ||||
* | bpo-38597: Never statically link extension initialization code on Windows ↵ | Steve Dower | 2020-03-03 | 4 | -104/+13 |
| | | | | (GH-18724) | ||||
* | bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and ↵ | Pablo Galindo | 2020-03-02 | 3 | -2/+22 |
| | | | | | | tp_clear (GH-18749) Objects do not own weak references to them directly through the __weakref__ list so these do not need to be traversed by the GC. | ||||
* | bpo-39776: Lock ++interp->tstate_next_unique_id. (GH-18746) (#18746) | Stefan Krah | 2020-03-02 | 2 | -2/+7 |
| | | | | - Threads created by PyGILState_Ensure() could have a duplicate tstate->id. | ||||
* | bpo-39831: Fix a reference leak in PyErr_WarnEx(). (GH-18750) | Serhiy Storchaka | 2020-03-02 | 1 | -2/+3 |
| | |||||
* | bpo-38870: Add docstring support to ast.unparse (GH-17760) | Batuhan Taşkaya | 2020-03-02 | 2 | -80/+171 |
| | | | | | | Allow ast.unparse to detect docstrings in functions, modules and classes and produce nicely formatted unparsed output for said docstrings. Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com> | ||||
* | bpo-39796: Fix _warnings module initialization (GH-18739) | Victor Stinner | 2020-03-02 | 3 | -15/+29 |
| | | | | | | | | | * Add _PyWarnings_InitState() which only initializes the _warnings module state (tstate->interp->warnings) without creating a module object * Py_InitializeFromConfig() now calls _PyWarnings_InitState() instead of _PyWarnings_Init() * Rename also private functions of _warnings.c to avoid confusion between the public C API and the private C API. | ||||
* | bpo-39764: Make Task.get_stack accept ag_frame (#18669) | Lidi Zheng | 2020-03-02 | 3 | -3/+26 |
| | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | bpo-38380: Update macOS & Windows builds to SQLite v3.31.1 (GH-18678) | Erlend Egeberg Aasland | 2020-03-02 | 6 | -6/+8 |
| | | | Automerge-Triggered-By: @zooba | ||||
* | bpo-39775: inspect: Change Signature.parameters back to OrderedDict. (GH-18684) | Inada Naoki | 2020-03-02 | 4 | -17/+24 |
| | |||||
* | Fix misleading statement about mixed-type numeric comparisons (GH-18615) | Mark Dickinson | 2020-03-02 | 2 | -2/+5 |
| | |||||
* | bpo-38913: Fix segfault in Py_BuildValue("(s#O)", ...) if entered with ↵ | Serhiy Storchaka | 2020-03-02 | 3 | -3/+48 |
| | | | | exception raised. (GH-18656) | ||||
* | bpo-38971: Open file in codecs.open() closes if exception raised. (GH-17666) | Chris A | 2020-03-02 | 3 | -5/+22 |
| | | | | | | Open issue in the BPO indicated a desire to make the implementation of codecs.open() at parity with io.open(), which implements a try/except to assure file stream gets closed before an exception is raised. | ||||
* | bpo-39495: Remove default value from C impl of TreeBuilder.start (GH-18275) | Shantanu | 2020-03-02 | 4 | -9/+14 |
| | |||||
* | bpo-39378: partial of PickleState struct should be traversed. (GH-18046) | Hai Shi | 2020-03-02 | 1 | -0/+1 |
| | |||||
* | bpo-39199: Add descriptions of non-deprecated nodes to the AST module ↵ | Pablo Galindo | 2020-03-02 | 1 | -6/+1497 |
| | | | | | | | | | documentation (GH-17812) Adapted from https://greentreesnakes.readthedocs.io Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com> |