summaryrefslogtreecommitdiff
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-39824: module_traverse() don't call m_traverse if md_state=NULL (GH-18738)Victor Stinner2020-03-172-10/+45
| | | | | | | | | | | | | Extension modules: m_traverse, m_clear and m_free functions of PyModuleDef are no longer called if the module state was requested but is not allocated yet. This is the case immediately after the module is created and before the module is executed (Py_mod_exec function). More precisely, these functions are not called if m_size is greater than 0 and the module state (as returned by PyModule_GetState()) is NULL. Extension modules without module state (m_size <= 0) are not affected. Co-Authored-By: Petr Viktorin <encukou@gmail.com>
* bpo-39973: Fix the docs for PyObject_GenericSetDict() (GH-19026)Zackery Spytz2020-03-172-2/+3
| | | | PyObject_GenericSetDict() takes three arguments, not two.
* bpo-39638: Keep ASDL signatures in the AST nodes (GH-18515)Batuhan Taşkaya2020-03-161-0/+3
|
* bpo-39969: Remove ast.Param node class as is no longer used (GH-19020)Batuhan Taşkaya2020-03-151-2/+3
|
* bpo-39507: Add HTTP status 418 "I'm a Teapot" (GH-18291)Ross2020-03-152-3/+4
|
* Link to list of keywords in the laguage reference (GH-18024)Борис Верховский2020-03-141-5/+6
|
* bpo-39677: dis: rename the operand of MAKE_FUNCTION from `argc` to `flags` ↵Taine Zhao2020-03-141-1/+1
| | | | for 3.6+ (GC-18550)
* bpo-39509: Update HTTP status code to follow IANA (GH-18294)Dong-hee Na2020-03-142-0/+11
| | | Add status codes 103 EARLY_HINTS and 425 TOO_EARLY.
* bpo-39937: Improve suggestions for removal of getchildren and getiterator in ↵Rahul Kumaresan2020-03-141-4/+7
| | | | | | | changelog (GH-18937) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-39947: Add PyThreadState_GetInterpreter() (GH-18981)Victor Stinner2020-03-132-6/+16
| | | | Add PyThreadState_GetInterpreter(tstate): get the interpreter of a Python thread state.
* bpo-39947: Add PyInterpreterState_Get() function (GH-18979)Victor Stinner2020-03-132-0/+14
| | | | | | * Rename _PyInterpreterState_Get() to PyInterpreterState_Get() and move it the limited C API. * Add _PyInterpreterState_Get() alias to PyInterpreterState_Get() for backward compatibility with Python 3.8.
* bpo-36144: OrderedDict Union (PEP 584) (#18967)Brandt Bucher2020-03-131-0/+4
|
* bpo-36144: Update os.environ and os.environb for PEP 584 (#18911)Charles Burkland2020-03-131-0/+6
|
* bpo-35370: Add _PyEval_SetTrace() function (GH-18975)Victor Stinner2020-03-131-0/+5
| | | | | | | | | * sys.settrace(), sys.setprofile() and _lsprof.Profiler.enable() now properly report PySys_Audit() error if "sys.setprofile" or "sys.settrace" audit event is denied. * Add _PyEval_SetProfile() and _PyEval_SetTrace() function: similar to PyEval_SetProfile() and PyEval_SetTrace() but take a tstate parameter and return -1 on error. * Add _PyObject_FastCallTstate() function.
* bpo-38500: Add _PyInterpreterState_SetEvalFrameFunc() (GH-17340)Victor Stinner2020-03-122-0/+30
| | | | | | | | | | | | PyInterpreterState.eval_frame function now requires a tstate (Python thread state) parameter. Add private functions to the C API to get and set the frame evaluation function: * Add tstate parameter to _PyFrameEvalFunction function type. * Add _PyInterpreterState_GetEvalFrameFunc() and _PyInterpreterState_SetEvalFrameFunc() functions. * Add tstate parameter to _PyEval_EvalFrameDefault().
* Doc: Fix grammar in PyErr_ResourceWarning (GH-18879)Daniel Hahler2020-03-121-1/+1
|
* bpo-1294959: Fix typo for new attribute platlibdir. (GH-18960)Raúl Cumplido2020-03-121-2/+2
| | | | | Received email on the docs mailing list to fix a typo from `sys.platlitdir` which doesn't exist to the correct new attribute `sys.platlibdir` Automerge-Triggered-By: @vstinner
* Fix syntax error in an example in the ast documentation and sync docstrings ↵Pablo Galindo2020-03-121-1/+1
| | | | (GH-18946)
* Fix download.html (GH-18902)Inada Naoki2020-03-111-1/+1
| | | | | `<tt>` is not allowed. Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* Update some www.unicode.org URLs to use HTTPS. (GH-18912)Benjamin Peterson2020-03-104-9/+9
|
* closes bpo-39926: Update Unicode to 13.0.0. (GH-18910)Benjamin Peterson2020-03-104-6/+11
|
* tracemalloc: 'pretty top' example no longer changes the filename (GH-18903)Adam Johnson2020-03-101-3/+1
| | | | | I've used this recipe a couple times and the filename editing has always been less than useful and something I've removed. This is because many modules end up losing which package they are located in, e.g. `util/date.py`.
* bpo-34822: Simplify AST for subscription. (GH-9605)Serhiy Storchaka2020-03-103-37/+46
| | | | | | | | | * Remove the slice type. * Make Slice a kind of the expr type instead of the slice type. * Replace ExtSlice(slices) with Tuple(slices, Load()). * Replace Index(value) with a value itself. All non-terminal nodes in AST for expressions are now of the expr type.
* bpo-39869: Fix typo in 'Instance objects' section. (GH-18889)Antoine2020-03-101-1/+1
|
* bpo-1294959: Add sys.platlibdir attribute (GH-18381)Victor Stinner2020-03-102-0/+37
| | | | | | | | | | | | | Add --with-platlibdir option to the configure script: name of the platform-specific library directory, stored in the new sys.platlitdir attribute. It is used to build the path of platform-specific dynamic libraries and the path of the standard library. It is equal to "lib" on most platforms. On Fedora and SuSE, it is equal to "lib64" on 64-bit systems. Co-Authored-By: Jan Matějek <jmatejek@suse.com> Co-Authored-By: Matěj Cepl <mcepl@cepl.eu> Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
* bpo-39877: Deprecate PyEval_InitThreads() (GH-18892)Victor Stinner2020-03-102-5/+15
| | | | Deprecated PyEval_InitThreads() and PyEval_ThreadsInitialized(). Calling PyEval_InitThreads() now does nothing.
* bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 ↵Pete Wicken2020-03-091-1/+6
| | | | | | networks (GH-18757) The `.hosts()` method now returns the single address present in a /32 or /128 network.
* bpo-36287: Make ast.dump() not output optional fields and attributes with ↵Serhiy Storchaka2020-03-101-99/+75
| | | | | | | default values. (GH-18843) The default values for optional fields and attributes of AST nodes are now set as class attributes (e.g. Constant.kind is set to None).
* bpo-38249: Expand Py_UNREACHABLE() to __builtin_unreachable() in the release ↵Serhiy Storchaka2020-03-091-1/+14
| | | | | mode. (GH-16329) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-38691: importlib ignores PYTHONCASEOK if -E is used (GH-18627)idomic2020-03-092-0/+6
| | | | | The importlib module now ignores the PYTHONCASEOK environment variable when the -E or -I command line options are being used.
* bpo-39852: IDLE 'Go to line' deletes selection, updates status (GH-18801)Terry Jan Reedy2020-03-081-1/+3
| | | | | | It appears standard that moving the text insert cursor away from a selection clears the selection. Clearing prevents accidental deletion of a possibly off-screen bit of text. The update is for Ln and Col on the status bar.
* fix typo: add space (GH-18853)Julin S2020-03-081-2/+2
| | | | Fix typo in cmdline.rst Add space between the `-m` option and the module name (`timeit`).
* bpo-39567: Document audit for os.walk, os.fwalk, Path.glob and Path.rglob. ↵Serhiy Storchaka2020-03-082-0/+8
| | | | (GH-18499)
* bpo-36144: Update MappingProxyType with PEP 584's operators (#18814)Brandt Bucher2020-03-071-0/+5
| | | We make `|=` raise TypeError, since it would be surprising if `C.__dict__ |= {'x': 0}` silently did nothing, while `C.__dict__.update({'x': 0})` is an error.
* bpo-39702: Update the Language Reference (PEP 614) (GH-18802)Brandt Bucher2020-03-072-1/+15
|
* bpo-39199: Use 'eval' mode for the examples with expression nodes (GH-18828)Pablo Galindo2020-03-071-292/+211
| | | Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
* bpo-39882: Py_FatalError() logs the function name (GH-18819)Victor Stinner2020-03-071-0/+7
| | | | | | | | | | | | The Py_FatalError() function is replaced with a macro which logs automatically the name of the current function, unless the Py_LIMITED_API macro is defined. Changes: * Add _Py_FatalErrorFunc() function. * Remove the function name from the message of Py_FatalError() calls which included the function name. * Update tests.
* bpo-17422: slightly more precise language (GH-18682)Caleb Donovick2020-03-061-1/+1
|
* bpo-36144: Implement defaultdict union (GH-18729)Brandt Bucher2020-03-061-0/+4
| | | For PEP 585 (this isn't in the PEP but is an obvious follow-up).
* PyPy already supports Python 3 (GH-18774)Slam2020-03-061-2/+1
|
* bpo-39868: Update Language Reference for PEP 572. (#18793)Brandt Bucher2020-03-052-6/+18
|
* IDLE doc: improve Startup failure subsection. (#18771)Jules Lasne (jlasne)2020-03-051-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 missing space after a period in 'typing.TypedDict' documentation ↵Miss Islington (bot)2020-03-041-1/+1
| | | | (GH-18784)
* bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719)Brett Cannon2020-03-041-1/+1
|
* bpo-39674: Revert "bpo-37330: open() no longer accept 'U' in file mode ↵Victor Stinner2020-03-044-19/+15
| | | | | | | (GH-16959)" (GH-18767) This reverts commit e471e72977c83664f13d041c78549140c86c92de. The mode will be removed from Python 3.10.
* bpo-39639: Remove the AST "Suite" node and associated code (GH-18513)Batuhan Taşkaya2020-03-041-0/+3
| | | | | | | | 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-39674: Fix typo in What's New In Python 3.9 (GH-18776)Victor Stinner2020-03-041-1/+1
|
* bpo-39674: Suggest to test with DeprecationWarning (GH-18552)Victor Stinner2020-03-031-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 ↵MojoVampire2020-03-033-3/+19
| | | | deprecation warning (GH-13195)
* bpo-39674: Update collections ABC deprecation doc (GH-18747)Victor Stinner2020-03-031-1/+1
|