summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* Fix the "make suspicious" check on the pprint docs (GH-25193)Pablo Galindo2021-04-051-2/+2
|
* bpo-43084: Return bool instead of int from curses.window.enclose() (GH-24398)Serhiy Storchaka2021-04-051-0/+3
|
* bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (#25183)Ken Jin2021-04-041-2/+7
|
* bpo-43325: Add FAQ entry for identity tests (GH-25168)Raymond Hettinger2021-04-042-3/+89
|
* Replace broken example code with correct simpler code. (GH-25162)Raymond Hettinger2021-04-031-2/+2
| | | | | | The open() was missing 'w' to indicate it was in a write-mode. Even then, the open().close() operation was distracting because it is an unusual way to "touch" as file. Using os.remove() instead is simpler and less distracting.
* Add more tests for the descriptor tutorial (GH-25164)Raymond Hettinger2021-04-031-7/+57
|
* bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)Ammar Askar2021-04-021-3/+19
| | | | | Changed the inline mentions of the attributes into a proper attribute list like `SystemExit` has. Automerge-Triggered-By: GH:gvanrossum
* bpo-43672: raise ImportWarning when calling find_loader() (GH-25119)Brett Cannon2021-04-022-2/+9
|
* bpo-31956: Add start and stop parameters to array.index() (GH-25059)Zackery Spytz2021-04-022-2/+13
| | | Co-Authored-By: Anders Lorentsen <Phaqui@gmail.com>
* bpo-43688: Support the limited C API in debug mode (GH-25131)Victor Stinner2021-04-021-0/+12
| | | | | | | | | | | | | The limited C API is now supported if Python is built in debug mode (if the Py_DEBUG macro is defined). In the limited C API, the Py_INCREF() and Py_DECREF() functions are now implemented as opaque function calls, rather than accessing directly the PyObject.ob_refcnt member, if Python is built in debug mode and the Py_LIMITED_API macro targets Python 3.10 or newer. It became possible to support the limited C API in debug mode because the PyObject structure is the same in release and debug mode since Python 3.8 (see bpo-36465). The limited C API is still not supported in the --with-trace-refs special build (Py_TRACE_REFS macro).
* Document PyCode_Addr2Line function. (GH-25111)Mark Shannon2021-04-021-0/+8
| | | | | * Document PyCode_Addr2Line function. * Clarify when to use PEP 626 line iterators.
* bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (#25123)Zackery Spytz2021-04-011-1/+1
| | | It should be PyMethod_Type, not Py_MethodType.
* bpo-43690: stable_abi.py no longer parses macros (GH-25136)Victor Stinner2021-04-011-1/+0
| | | | | | | | The stable_abi.py script no longer parse macros. Macro targets can be static inline functions which are not part of the stable ABI, only part of the limited C API. Run "make regen-limited-abi" to exclude PyType_HasFeature from Doc/data/stable_abi.dat.
* bpo-43688: Run make regen-limited-abi (GH-25134)Victor Stinner2021-04-011-0/+2
|
* Fix typos in 3.10 "What's new" (GH-25104)Don Kirkby2021-04-011-4/+4
|
* Enum: add (re)import of Flag for doctests (GH-25118)Ethan Furman2021-03-311-4/+4
| | | Fix issue with CI doctest forgetting that ``Flag`` had already been imported.
* bpo-42225: IDLE - document two unix-related problems. (#25078)Terry Jan Reedy2021-03-311-2/+17
| | | | 1. Bad IP masquerade rules can prevent startup. 2. X cannot handle some complex colored chars.
* bpo-40066: Enum: modify `repr()` and `str()` (GH-22392)Ethan Furman2021-03-317-1203/+1872
| | | | | | | | | * Enum: streamline repr() and str(); improve docs - repr() is now ``enum_class.member_name`` - stdlib global enums are ``module_name.member_name`` - str() is now ``member_name`` - add HOW-TO section for ``Enum`` - change main documentation to be an API reference
* bpo-42134: Raise ImportWarning when calling find_module() in the import ↵Brett Cannon2021-03-302-0/+20
| | | | system (GH-25044)
* bpo-43648: Remove redundant datefmt option in logging file config (GH-25051)Harry2021-03-291-1/+0
| | | | | [bpo-43648](): Remove redundant datefmt option in logging file config Automerge-Triggered-By: GH:vsajip
* bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481)Inada Naoki2021-03-295-0/+138
| | | | | | | | | | | See [PEP 597](https://www.python.org/dev/peps/pep-0597/). * Add `-X warn_default_encoding` and `PYTHONWARNDEFAULTENCODING`. * Add EncodingWarning * Add io.text_encoding() * open(), TextIOWrapper() emits EncodingWarning when encoding is omitted and warn_default_encoding is enabled. * _pyio.TextIOWrapper() uses UTF-8 as fallback default encoding used when failed to import locale module. (used during building Python) * bz2, configparser, gzip, lzma, pathlib, tempfile modules use io.text_encoding(). * What's new entry
* bpo-31907: [doc] clarify that str.format() does not support arbitrary ↵Irit Katriel2021-03-281-2/+2
| | | | expressions (#25053)
* bpo-43644: Add docs for importlib.resources.as_file. (#25048)Jason R. Coombs2021-03-281-0/+16
|
* bpo-39231: correct tutorial annotations section (GH-25029)Irit Katriel2021-03-271-1/+1
|
* bpo-39616: clarify SSLContext.check_hostname effect (GH-18484)Ville Skyttä2021-03-271-1/+1
| | | | | It doesn't actually affect whether match_hostname() is called (it never is in this context any longer), but whether hostname verification occurs in the first place.
* bpo-43354: xmlrpc: Fix type documentation for Fault.faultCode (GH-24707)Jürgen Gmach2021-03-261-1/+1
| | | | | | | The type of `faultCode` has to be an `int` instead of a `str`. cf http://xmlrpc.com/spec.md Pinging @pganssle
* bpo-42136: Deprecate module_repr() as found in importlib (GH-25022)Brett Cannon2021-03-262-0/+13
|
* bpo-43620: Remove reference to os.sep from os.path.join() doc (#25025)Jared Sutton2021-03-261-5/+4
| | | - removed ambiguous reference to os.sep from os.path.join() doc
* "exists" -> "exist" in What's New 3.10 (GH-25019)blopblopy2021-03-251-1/+1
|
* Doc: io: Remove "In-memory streams" section (GH-24927)Inada Naoki2021-03-251-10/+0
|
* bpo-42137: have ModuleType.__repr__ prefer __spec__ over module_repr() ↵Brett Cannon2021-03-242-7/+13
| | | | | (GH-24953) This is to work towards the removal of the use of module_repr() in Python 3.12 (documented as deprecated since 3.4).
* bpo-42914: add a pprint underscore_numbers option (GH-24864)sblondon2021-03-241-6/+17
| | | | | pprint() gains a new boolean underscore_numbers kwarg to emit integers with thousands separated by an underscore character for improved readability (for example 1_000_000 instead of 1000000).
* bpo-43244: Remove the pyarena.h header (GH-25007)Victor Stinner2021-03-241-0/+11
| | | | | | | | | | | | | | | | | | Remove the pyarena.h header file with functions: * PyArena_New() * PyArena_Free() * PyArena_Malloc() * PyArena_AddPyObject() These functions were undocumented, excluded from the limited C API, and were only used internally by the compiler. Add pycore_pyarena.h header. Rename functions: * PyArena_New() => _PyArena_New() * PyArena_Free() => _PyArena_Free() * PyArena_Malloc() => _PyArena_Malloc() * PyArena_AddPyObject() => _PyArena_AddPyObject()
* bpo-43244: Remove parser_interface.h header file (GH-25001)Victor Stinner2021-03-241-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Remove parser functions using the "struct _mod" type, because the AST C API was removed: * PyParser_ASTFromFile() * PyParser_ASTFromFileObject() * PyParser_ASTFromFilename() * PyParser_ASTFromString() * PyParser_ASTFromStringObject() These functions were undocumented and excluded from the limited C API. Add pycore_parser.h internal header file. Rename functions: * PyParser_ASTFromFileObject() => _PyParser_ASTFromFile() * PyParser_ASTFromStringObject() => _PyParser_ASTFromString() These functions are no longer exported (replace PyAPI_FUNC() with extern). Remove also _PyPegen_run_parser_from_file() function. Update test_peg_generator to use _PyPegen_run_parser_from_file_pointer() instead.
* bpo-43452: Document the PyType_Lookup optimizations in the What's New for ↵Pablo Galindo2021-03-241-1/+4
| | | | 3.10 (GH-24949)
* bpo-31861: Complete the C-API docs for PyObject_GetAiter and PyAiter_Check ↵Pablo Galindo2021-03-235-0/+27
| | | | (GH-25004)
* bpo-43244: Add pycore_compile.h header file (GH-25000)Victor Stinner2021-03-231-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the compiler functions using "struct _mod" type, because the public AST C API was removed: * PyAST_Compile() * PyAST_CompileEx() * PyAST_CompileObject() * PyFuture_FromAST() * PyFuture_FromASTObject() These functions were undocumented and excluded from the limited C API. Rename functions: * PyAST_CompileObject() => _PyAST_Compile() * PyFuture_FromASTObject() => _PyFuture_FromAST() Moreover, _PyFuture_FromAST() is no longer exported (replace PyAPI_FUNC() with extern). _PyAST_Compile() remains exported for test_peg_generator. Remove also compatibility functions: * PyAST_Compile() * PyAST_CompileEx() * PyFuture_FromAST()
* bpo-31861: Add aiter and anext to builtins (#23847)Joshua Bronson2021-03-232-25/+55
| | | | | | Co-authored-by: jab <jab@users.noreply.github.com> Co-authored-by: Daniel Pope <mauve@mauveweb.co.uk> Co-authored-by: Justin Wang <justin39@gmail.com>
* bpo-43244: Remove ast.h, asdl.h, Python-ast.h headers (GH-24933)Victor Stinner2021-03-231-1/+9
| | | | | | | | | | | | | | | | These functions were undocumented and excluded from the limited C API. Most names defined by these header files were not prefixed by "Py" and so could create names conflicts. For example, Python-ast.h defined a "Yield" macro which was conflict with the "Yield" name used by the Windows <winbase.h> header. Use the Python ast module instead. * Move Include/asdl.h to Include/internal/pycore_asdl.h. * Move Include/Python-ast.h to Include/internal/pycore_ast.h. * Remove ast.h header file. * pycore_symtable.h no longer includes Python-ast.h.
* bpo-41718: Update runpy startup time What's New (GH-24998)Victor Stinner2021-03-231-3/+4
|
* Clarify attribute docs on types.ModuleType (GH-24974)Brett Cannon2021-03-231-2/+30
|
* bpo-43422: Revert _decimal C API addition (GH-24960)Antoine Pitrou2021-03-212-232/+0
| | | | | | | | | Stefan Krah requested the reversal of these (unreleased) changes, quoting him: > The capsule API does not meet my testing standards, since I've focused on the upstream mpdecimal in the last couple of months. > Additionally, I'd like to refine the API, perhaps together with the Arrow community. Automerge-Triggered-By: GH:pitrou
* bpo-43571: Add IPPROTO_MPTCP macro (GH-24946)Rui Cunha2021-03-202-0/+6
| | | Add IPPROTO_MPTCP constant when defined in the system headers.
* Mention that code.co_lnotab is deprecated in what's new for 3.10. (#24902)Mark Shannon2021-03-191-0/+2
|
* bpo-43244: Remove symtable.h header file (GH-24910)Victor Stinner2021-03-192-1/+16
| | | | | | | | | | | | | | | | | | Rename Include/symtable.h to to Include/internal/pycore_symtable.h, don't export symbols anymore (replace PyAPI_FUNC and PyAPI_DATA with extern) and rename functions: * PyST_GetScope() to _PyST_GetScope() * PySymtable_BuildObject() to _PySymtable_Build() * PySymtable_Free() to _PySymtable_Free() Remove PySymtable_Build(), Py_SymtableString() and Py_SymtableStringObject() functions. The Py_SymtableString() function was part the stable ABI by mistake but it could not be used, since the symtable.h header file was excluded from the limited C API. The Python symtable module remains available and is unchanged.
* bpo-43466: Add --with-openssl-rpath configure option (GH-24820)Christian Heimes2021-03-192-0/+56
|
* bpo-43244: Remove the PyAST_Validate() function (GH-24911)Victor Stinner2021-03-181-0/+5
| | | | | | | | | | | | Remove the PyAST_Validate() function. It is no longer possible to build a AST object (mod_ty type) with the public C API. The function was already excluded from the limited C API (PEP 384). Rename PyAST_Validate() function to _PyAST_Validate(), move it to the internal C API, and don't export it anymore (replace PyAPI_FUNC with extern). The function was added in bpo-12575 by the commit 832bfe2ebd5ecfa92031cd40c8b41835ba90487f.
* bpo-39342: Expose X509_V_FLAG_ALLOW_PROXY_CERTS in ssl module (GH-18011)Chris Burr2021-03-181-0/+7
| | | Exposes the `X509_V_FLAG_ALLOW_PROXY_CERTS` constant as `ssl.VERIFY_ALLOW_PROXY_CERTS` to allow for proxy certificate validation as described in: https://www.openssl.org/docs/man1.1.1/man7/proxy-certificates.html
* Add PEP 626 to what's new in 3.10. (#24892)Mark Shannon2021-03-161-0/+8
|
* bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885)Inada Naoki2021-03-161-11/+15
| | | See PEP 624.