summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917)Brandt Bucher2021-02-262-0/+57
| | | | | Co-authored-by: Guido van Rossum <guido@python.org> Co-authored-by: Talin <viridia@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* bpo-38302: __pow__/__rpow__ now called when __ipow__ returns NotImplemented ↵Alex2021-02-261-0/+3
| | | | (#16459)
* Update logging.config.rst (GH-24630)takahashi2021-02-261-1/+1
| | | | | # a typo fix Automerge-Triggered-By: GH:vsajip
* bpo-43293: Doc: move note about GIL to top of threading module (GH-24622)Guanzhong Chen2021-02-241-13/+13
| | | | | | | | The note about the GIL was buried pretty deep in the threading documentation, and this made it hard for first time users to discover why their attempts at using threading to parallelizing their application did not work. In this commit, the note is moved to the top of the module documention for visibility.
* bpo-43283: Add IDLE doc paragraph about print speed (GH-24615)Terry Jan Reedy2021-02-241-0/+9
| | | | | | Printing to IDLE's Shell is often slower than printing to a system terminal, but it can be made faster by pre-formatting a single string before printing.
* bpo-36346: Document removal schedule of deprecate APIs (GH-20879)Inada Naoki2021-02-222-8/+7
| | | We will remove wstr cache in Python 3.12. See PEP 623.
* bpo-23882: Doc: Clarify unittest discovery document (GH-21560)Inada Naoki2021-02-221-6/+12
| | | | | | | | Unittest discovery support namespace package as start directory. But it doesn't find namespace package in the start directory automatically. Otherwise, unittest discovery search into unexpected directories like `vendor/` or `node_modules/`.
* bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)Terry Jan Reedy2021-02-211-14/+15
| | | | | In the Running User Code section, gather together paragraphs about two processes and the sys.stdstream replacements, preparing to add another.
* bpo-27646: Say that 'yield from' expression can be any iterable (GH-24595)Terry Jan Reedy2021-02-211-2/+2
| | | Previously, the doc at least strongly implied that it had to be an iterator.
* bpo-43277: Add PySet_CheckExact to the C-API (GH-24598)Pablo Galindo2021-02-202-0/+9
| | | For some mysterious reason we have PySet_Check, PyFrozenSet_Check, PyAnySet_Check, PyAnySet_CheckExact and PyFrozenSet_CheckExact but no PySet_CheckExact.
* bpo-42990: Functions inherit current builtins (GH-24564)Victor Stinner2021-02-201-1/+10
| | | | | | | | | | | | | | | | | | | | The types.FunctionType constructor now inherits the current builtins if the globals dictionary has no "__builtins__" key, rather than using {"None": None} as builtins: same behavior as eval() and exec() functions. Defining a function with "def function(...): ..." in Python is not affected, globals cannot be overriden with this syntax: it also inherits the current builtins. PyFrame_New(), PyEval_EvalCode(), PyEval_EvalCodeEx(), PyFunction_New() and PyFunction_NewWithQualName() now inherits the current builtins namespace if the globals dictionary has no "__builtins__" key. * Add _PyEval_GetBuiltins() function. * _PyEval_BuiltinsFromGlobals() now uses _PyEval_GetBuiltins() if builtins cannot be found in globals. * Add tstate parameter to _PyEval_BuiltinsFromGlobals().
* Fix typo in dis module doc (GH-24509)Irit Katriel2021-02-201-1/+1
|
* bpo-43042: Augment tutorial sentence (GH-24514)Terry Jan Reedy2021-02-201-1/+2
| | | Calling same function also gets new local namespace.
* closes bpo-43266: Improve array formatting. (GH-24573)Erlend Egeberg Aasland2021-02-191-4/+4
|
* bpo-35134: Move non-limited C API files to Include/cpython/ (GH-24561)Nicholas Sim2021-02-191-0/+8
| | | | | | Include/{odictobject.h,parser_interface.h,picklebufobject.h,pydebug.h,pyfpe.h} into Include/cpython/. Parser: peg_api: include Python.h instead of parser_interface.h.
* closes bpo-43254: Fix *snprintf() man page refs. (GH-24563)Erlend Egeberg Aasland2021-02-191-2/+2
|
* Remove all links to mingw.org (GH-24552)Jeremy Paige2021-02-182-4/+1
| | | | | | | | This lease on this domain has lapsed. This not only makes these dead links, but a potential attack vector for readers of python.org as the domain can be obtained by an untrustworthy party. I considered redirecting these links to http://mingw-w64.org/ which is a maintained fork of mingw, but beyond my unfamiliarity with the exact level of compatibility, at the time of this PR that site had an expired cert and so is not much of a vulnerability fix. Automerge-Triggered-By: GH:Mariatta
* bpo-42990: Refactor _PyFrame_New_NoTrack() (GH-24566)Victor Stinner2021-02-181-3/+5
| | | | | | | | | | | | * Refactor _PyFrame_New_NoTrack() and PyFunction_NewWithQualName() code. * PyFrame_New() checks for _PyEval_BuiltinsFromGlobals() failure. * Fix a ref leak in _PyEval_BuiltinsFromGlobals() error path. * Complete PyFunction_GetModule() documentation: it returns a borrowed reference and it can return NULL. * Move _PyEval_BuiltinsFromGlobals() definition to the internal C API. * PyFunction_NewWithQualName() uses _Py_IDENTIFIER() API for the "__name__" string to make it compatible with subinterpreters.
* bpo-42960: Add resource.RLIMIT_KQUEUES constant from FreeBSD (GH-24251)David CARLIER2021-02-181-0/+8
|
* bpo-42990: Add __builtins__ attribute to functions (GH-24559)Victor Stinner2021-02-182-0/+11
| | | | | | Expose the new PyFunctionObject.func_builtins member in Python as a new __builtins__ attribute on functions. Document also the behavior change in What's New in Python 3.10.
* bpo-43103: Add configure --without-static-libpython (GH-24418)Victor Stinner2021-02-171-0/+6
| | | | | | | | Add a new configure --without-static-libpython option to not build the libpythonMAJOR.MINOR.a static library and not install the python.o object file. Fix smelly.py and stable_abi.py tools when libpython3.10.a is missing.
* bpo-40170: Always define PyIter_Check() as a function (GH-24548)Erlend Egeberg Aasland2021-02-161-2/+2
|
* bpo-40170: Convert PyDescr_IsData() to static inline function (GH-24535)Erlend Egeberg Aasland2021-02-161-2/+2
|
* Add a warning block around the get_referrers() documentation (GH-24511)Pablo Galindo2021-02-151-4/+5
|
* bpo-42967: Fix urllib.parse docs and make logic clearer (GH-24536)Ken Jin2021-02-154-12/+18
|
* bpo-43181: Convert PyObject_TypeCheck to static inline function (GH-24533)Erlend Egeberg Aasland2021-02-151-2/+2
|
* bpo-42967: only use '&' as a query string separator (#24297)Adam Goldschmidt2021-02-147-6/+86
| | | | | | | | | | | bpo-42967: [security] Address a web cache-poisoning issue reported in urllib.parse.parse_qsl(). urllib.parse will only us "&" as query string separator by default instead of both ";" and "&" as allowed in earlier versions. An optional argument seperator with default value "&" is added to specify the separator. Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Éric Araujo <merwok@netwok.org>
* bpo-43200: Fix link to shutil.copy() in the shutil doc (GH-24505)Zackery Spytz2021-02-131-2/+3
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43172: readline now passes its tests when built against libedit (GH-24499)Gregory P. Smith2021-02-121-1/+3
| | | | | | | bpo-43172: readline now passes its tests when built against libedit. Existing irreconcilable API differences remain in readline.get_begidx and readline.get_endidx behavior based on libreadline vs libedit use. A note about that has been documented.
* Fix link to sqlite3 enable_shared_cache documentation (GH-24496)Tom Forbes2021-02-101-1/+1
|
* bpo-41824: Add versionadded for typing.ForwardRef docs (#24224)Ken Jin2021-02-091-0/+2
|
* Improve docs of PEP 604 Union (#24301)Ken Jin2021-02-093-19/+20
|
* bpo-43147: Remove archaic terminology. (GH-24462)Raymond Hettinger2021-02-081-6/+5
|
* bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)Terry Jan Reedy2021-02-071-1/+2
| | | These 3 statements cannot be used at module scope -- nor in exec with one namespace.
* Simple typo fix (GH-24448)Andrew Tennikoff2021-02-051-1/+1
|
* Minor readability improvements. Also note performance impact of __slots__. ↵Raymond Hettinger2021-02-051-8/+11
| | | | (GH-24456)
* bpo-43106: Add os.O_EVTONLY/O_FSYNC/O_SYMLINK/O_NOFOLLOW_ANY (GH-24428)Dong-hee Na2021-02-032-0/+14
|
* Merge tag 'v3.10.0a5'Pablo Galindo2021-02-031-1/+1
|\ | | | | | | Python 3.10.0a5
| * Fix Sphynx syntax in the memory.rst documentv3.10.0a5Pablo Galindo2021-02-021-1/+1
| |
* | bpo-43082: Remove redundant 'the' in Descriptor howto (GH-24394)diegoe2021-02-031-1/+1
| |
* | Add link to Microsoft docs for limitations in Windows Store package (GH-24422)Steve Dower2021-02-031-0/+5
| |
* | bpo-8264: Document hasattr and getattr behavior for private attributes ↵Ken Jin2021-02-022-0/+16
|/ | | | | | | | (GH-23513) Clarify ``getattr`` and ``setattr`` requirements for accessing name-mangled attributes Co-Authored-By: Catalin Iacob <iacobcatalin@gmail.com>
* bpo-42997: Improve error message for missing : before suites (GH-24292)Pablo Galindo2021-02-021-0/+6
| | | | | | | | * Add to the peg generator a new directive ('&&') that allows to expect a token and hard fail the parsing if the token is not found. This allows to quickly emmit syntax errors for missing tokens. * Use the new grammar element to hard-fail if the ':' is missing before suites.
* bpo-38307: Add end_lineno attribute to pyclbr Objects (GH-24348)Aviral Srivastava2021-02-011-0/+8
| | | | | | | | For back-compatibility, make the new constructor parameter for public classes Function and Class keyword-only with a default of None. Co-authored-by: Aviral Srivastava <aviralsrivastava@Avirals-MacBook-Air.local Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-42927: Update the What's new entry for LOAD_ATTR optimizations (GH-24383)Pablo Galindo2021-01-311-4/+4
|
* Doc: errors tutorial improvements (GH-16269)Adorilson Bezerra2021-01-311-21/+21
| | | | | | | | | | | Improvements: - Improvements in how try clause works section This suggestion is because the execution continues after *except*, not after *try* but before *except*. I guess this form more clear. - Surrounding some keywords with \*...\* For uniformity the highlighted terms - Adjust the number of chars per line to 80
* bpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364)L2021-01-311-4/+0
|
* bpo-43047: logging.config formatters documentation update (GH-24358)Ian Wienand2021-01-301-19/+23
| | | | | | | | | | | | | | | | | | | | | | | | The documentation for some parts of the logging.config formatters has fallen behind the code. For example, the dictionary-schema section does not list the "class" attribute, however it is discussed in the file/ini discussion; and neither references the style argument which has been added. This modifies the dictionary-schema formatters documentation to list the keys available and overall makes it clearer these are passed to create a logging.Formatter object. The logging.Formatter documentation describes the default values of format/datefmt and the various formatting options. Since we have now more clearly described how the configuration is created via this type of object, we remove the discussion in this document to avoid duplication and rely on users reading the referenced logging.Formatter documenation directly for such details. Instead of duplicating the discussion for the two config types, the file/ini section is modified to link back to the dictionary-schema discussion, making it clear the same arguments are accepted. Automerge-Triggered-By: GH:vsajip
* bpo-41282: Add deprecation warning and docs for distutils (PEP 632) (GH-24355)Steve Dower2021-01-294-0/+35
|
* Fixing typos in turtle.rst (GH-24376)Jules Lasne2021-01-291-6/+6
| | | Automerge-Triggered-By: GH:JulienPalard