summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* GH-98363: Use better accessor macro (#98535)Raymond Hettinger2022-10-211-1/+1
|
* gh-51511: Note that codecs.open()'s encoding parameter affects automatic ↵Stanley2022-10-213-3/+6
| | | | conversion to binary mode (#94370)
* bpo-2716: add license for audioop module (#19972)Furkan Onder2022-10-212-14/+55
|
* gh-98298: [Enum] document ReprEnum, global_enum, and show_flag_values (GH-98455)Ethan Furman2022-10-211-1/+47
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* GH-98363: Fix exception handling in batched() (GH-98523)Raymond Hettinger2022-10-212-8/+36
|
* gh-95027: Fix regrtest stdout encoding on Windows (#98492)Victor Stinner2022-10-212-3/+15
| | | | | | On Windows, when the Python test suite is run with the -jN option, the ANSI code page is now used as the encoding for the stdout temporary file, rather than using UTF-8 which can lead to decoding errors.
* gh-91051: allow setting a callback hook on PyType_Modified (GH-97875)Carl Meyer2022-10-219-5/+462
|
* gh-98172: [doc] mention that except* handles naked exceptions (GH-98496)Irit Katriel2022-10-211-1/+13
|
* gh-97514: Don't use Linux abstract sockets for multiprocessing (#98501)Gregory P. Smith2022-10-202-5/+15
| | | | | | | | | | | | | | | Linux abstract sockets are insecure as they lack any form of filesystem permissions so their use allows anyone on the system to inject code into the process. This removes the default preference for abstract sockets in multiprocessing introduced in Python 3.9+ via https://github.com/python/cpython/pull/18866 while fixing https://github.com/python/cpython/issues/84031. Explicit use of an abstract socket by a user now generates a RuntimeWarning. If we choose to keep this warning, it should be backported to the 3.7 and 3.8 branches.
* gh-97912: Avoid quadratic behavior when adding LOAD_FAST_CHECK (GH-97952)Dennis Sweeney2022-10-203-64/+175
| | | | | * The compiler analyzes the usage of the first 64 local variables all at once using bit masks. * Local variables beyond the first 64 are only partially analyzed, achieving linear time.
* gh-96035: Make urllib.parse.urlparse reject non-numeric ports (#98273)Ben Kallus2022-10-203-12/+18
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-98461: Fix source location in comprehensions bytecode (GH-98464)Irit Katriel2022-10-203-60/+234
|
* gh-98421: Clean Up PyObject_Print (GH-98422)MonadChains2022-10-201-17/+8
| | | | | Work on test coverage for `PyObject_Print` made it clear that some lines can't get executed. Simplify the function by excluding the checks for non-string types. Also eliminate creating a temporary bytes object.
* gh-98360: multiprocessing now spawns children on Windows with correct ↵Steve Dower2022-10-204-3/+62
| | | | argv[0] in virtual environments (GH-98462)
* CODEOWNERS: Become a typing code owner (#98480)Alex Waygood2022-10-201-1/+1
|
* [doc] Improve logging cookbook example. (GH-98481)Vinay Sajip2022-10-201-0/+65
|
* Add more tkinter.Canvas tests (GH-98475)Serhiy Storchaka2022-10-201-0/+158
| | | | It is a prerequisite for #94473. Add tests for the coords() method and for creation of some Canvas items.
* gh-95023: Added os.setns and os.unshare functions (#95046)Noam Cohen2022-10-2011-1/+418
| | | | | | | | Added os.setns and os.unshare to easily switch between namespaces on Linux. Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Victor Stinner <vstinner@python.org>
* GH-98363: Presize the list for batched() (GH-98419)Raymond Hettinger2022-10-201-13/+13
|
* gh-98374: Suppress ImportError for invalid query for help() command. (gh-98450)Dong-hee Na2022-10-202-1/+6
|
* typing tests: `_overload_dummy` raises `NotImplementedError`, not ↵Nikita Sobolev2022-10-201-1/+1
| | | | `RuntimeError` (#98351)
* gh-98354: Add unicode check for 'name' attribute in _imp_create_builtin ↵chgnrdv2022-10-203-0/+43
| | | | | (GH-98412) Fixes #98354
* gh-98257: Make _PyEval_SetTrace() reentrant (#98258)Victor Stinner2022-10-194-56/+20
| | | | | | | | | | Make sys.setprofile() and sys.settrace() functions reentrant. They can no long fail with: RuntimeError("Cannot install a trace function while another trace function is being installed"). Make _PyEval_SetTrace() and _PyEval_SetProfile() functions reentrant, rather than detecting and rejecting reentrant calls. Only delete the reference to function arguments once the new function is fully set, when a reentrant call is safe. Call also _PySys_Audit() earlier.
* gh-98414: py.exe launcher does not use defaults for -V:company/ option ↵Steve Dower2022-10-193-0/+11
| | | | (GH-98460)
* gh-98417: Store int_max_str_digits on the Interpreter State (GH-98418)Eric Snow2022-10-194-5/+13
|
* Doc: Remove title text from internal links (#98409)Rafael Fontenelle2022-10-191-5/+3
| | | Rely on the title of the linked internal page instead of putting the title. Sphinx will render with the title correctly, and this will reduce work for translators
* [doc] Refresh the venv introduction documentation, and correct the statement ↵Phil Elson2022-10-192-95/+84
| | | | | about VIRTUAL_ENV (GH-98350) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* Docs: Bump sphinx-lint and fix unbalanced inline literal markup (#98441)Hugo van Kemenade2022-10-192-5/+2
| | | Bump sphinx-lint and fix unbalanced inline literal markup
* gh-92886: Replace assertion statements in `handlers.BaseHandler` to support ↵Jack Hindmarch2022-10-192-3/+10
| | | | running with optimizations (`-O`) (GH-93231)
* gh-92886: Fix tests that fail when running with optimizations (`-O`) in ↵Jack Hindmarch2022-10-192-23/+29
| | | | `_test_multiprocessing.py` (GH-93233)
* gh-92886: Fix tests that fail when running with optimizations (`-O`) in ↵Jack Hindmarch2022-10-192-2/+4
| | | | `test_py_compile.py` (GH-93235)
* gh-98398: Fix source locations for 'assert' bytecode (GH-98405)Irit Katriel2022-10-193-9/+28
|
* gh-97928: Fix handling options starting with "-" in tkinter.Text.count() ↵Serhiy Storchaka2022-10-193-4/+4
| | | | | (GH-98436) Previously they were silently ignored. Now they are errors.
* gh-97928: Add tests for tkinter.Text.count() (GH-98269)Serhiy Storchaka2022-10-191-0/+54
|
* gh-95913: Edit zipfile Whatsnew section & add new APIs (#98314)C.A.M. Gerlach2022-10-191-2/+14
| | | | | | | | | * Link ZipFile in What's New entry discussing it * Add entry for new ZipFile.mkdir method * Add entry for new zipfile.Path.stem/suffix/suffixes methods * Add missing line breaks between zipfile bullet list items
* gh-95913: Add WhatsNew section for new logging APIs (#98320)C.A.M. Gerlach2022-10-191-0/+20
| | | | | | | * Add entry for new logging.getLevelNamesMapping function * Add entry for SysLogHandler.createSocket to whatsnew * Add missing line break between logging bullet list items
* Fix markup indentation (GH-98424)Raymond Hettinger2022-10-191-1/+1
| | | Fix markup
* gh-95914: Add links to 3.11 WhatsNew Summary items (#98416)C.A.M. Gerlach2022-10-181-26/+38
| | | Add links to Summary items to where readers can learn more
* General improvements to the itertools docs (GH-98408)Raymond Hettinger2022-10-181-51/+92
|
* gh-98390: Fix source locations of boolean sub-expressions (GH-98396)Irit Katriel2022-10-183-1/+28
|
* gh-92886: Fixing tests that fail when running with optimizations (`-O`) in ↵Jack Hindmarch2022-10-182-6/+5
| | | | `test_sys_settrace.py` (GH-93234)
* gh-98393: os module reject bytes-like, only accept bytes (#98394)Victor Stinner2022-10-189-89/+48
| | | | | The os module and the PyUnicode_FSDecoder() function no longer accept bytes-like paths, like bytearray and memoryview types: only the exact bytes type is accepted for bytes strings.
* gh-98331: Update bundled pip to 22.3 (#98332)Paul Moore2022-10-184-2/+3
|
* Doc: Found some remaining default roles. (GH-98392)Julien Palard2022-10-184-4/+4
|
* gh-98378: Add small format string example to strftime comments (GH-98379)Alex Zvorygin2022-10-181-1/+5
| | | | | A small example of what a full date and time would look like would help a lot of developers who may not realize that they should investigate `time.h`'s `strftime`, run `man strftime`, or click through a series of docs on the python docs before they get to the actual [definition here](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes) which still doesn't have an obvious copy-pastable example of "what the heck format does this thing actually expect?". Automerge-Triggered-By: GH:rhettinger
* Doc: missing underscore in hyperlink. (GH-98391)Julien Palard2022-10-181-1/+1
|
* gh-95913: Copyedit, xref and organize enum section (#98295)C.A.M. Gerlach2022-10-181-38/+64
| | | | | | | | | | | * Whatsnew: Convert literals in enum section to actual x-references * Whatsnew: Rewrite enum section for clear and consistant phrasing * Whatsnew: Combine directly related enum items instead of seperating them * gh-98250: Describe __str__/__format__ changes more clearly/accurately * Tweak enum section language per feedback from Ethan
* gh-95913: Prepare remaining Whatsnew sections for editing (#98342)C.A.M. Gerlach2022-10-181-28/+105
| | | | | | | | | * Add line breaks & ref targets to Whatsnew to prepare for future changes * Use standard heading underbar symbols for H4 sections * Flatten Porting subsection; clarify scope of/link Python->CAPI sections * Move C API pending deprecations to C API section, to match the others
* Fix typos in comments (GH-98375)Raymond Hettinger2022-10-181-2/+2
|
* GH-98363: Add itertools.batched() (GH-98364)Raymond Hettinger2022-10-175-39/+370
|