summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Move random selection recipes from itertools.rst to random.rst (GH-98369)Raymond Hettinger2022-10-172-25/+31
|
* gh-95913: Move subinterpreter exper removal to 3.11 WhatsNew (GH-98345)C.A.M. Gerlach2022-10-172-4/+4
| | | | | | | | | | | | Part of #95913 Forward port of #93306, which was a backport of #93185, to address #84694 This adds the What's New entry for the removal of the subinterpreter-related env variable, build-time flag, etc. As @ericsnowcurrently was author of the original changes, I added him as a co-author to the commit. This addition to the Python 3.11 What's New document were only made to the Python 3.11 branch during the backport process, and not added to the version in `main`. Forward-porting it ensures the docs retain these additions for the future, rather than being lost in a legacy Python versions, allows it to be be edited as part of #95913 , and avoids merge conflicts with routine back-ports of PRs touching it. I've pulled in the addition exactly as-is with no modifications; any editing will be done in future PRs (and therefore can be reviewed and backported accordingly). The one other such addition is forward-ported in #98344
* gh-95914: Add What's New item describing PEP 670 changes (#98315)C.A.M. Gerlach2022-10-171-0/+11
|
* Remove unused arrange_output_buffer function from zlibmodule.c. (GH-98358)Benjamin Peterson2022-10-171-16/+0
|
* gh-98174: Handle EPROTOTYPE under macOS in ↵fancidev2022-10-171-2/+12
| | | | | test_sendfile_fallback_close_peer_in_the_middle_of_receiving (#98316) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* GH-98327: Reduce scope of catch_warnings() in _make_subprocess_transport ↵Kumar Aditya2022-10-172-33/+30
| | | | | (#98333) Alas, warnings.catch_warnings() has global scope, not thread scope, so this is still not perfect, but it reduces the time during which warnings are ignored. Better solution welcome.
* gh-93691: Compiler's code-gen passes location around instead of holding it ↵Irit Katriel2022-10-171-848/+975
| | | | on the global compiler state (GH-98001)
* gh-97669: Create Tools/build/ directory (#97963)Victor Stinner2022-10-1741-84/+102
| | | | | | | | | | | | | | | | | | | | | | | Create Tools/build/ directory. Move the following scripts from Tools/scripts/ to Tools/build/: * check_extension_modules.py * deepfreeze.py * freeze_modules.py * generate_global_objects.py * generate_levenshtein_examples.py * generate_opcode_h.py * generate_re_casefix.py * generate_sre_constants.py * generate_stdlib_module_names.py * generate_token.py * parse_html5_entities.py * smelly.py * stable_abi.py * umarshal.py * update_file.py * verify_ensurepip_wheels.py Update references to these scripts.
* gh-95534: Improve gzip reading speed by 10% (#97664)Ruben Vorderman2022-10-175-80/+850
| | | | | | | | | Change summary: + There is now a `gzip.READ_BUFFER_SIZE` constant that is 128KB. Other programs that read in 128KB chunks: pigz and cat. So this seems best practice among good programs. Also it is faster than 8 kb chunks. + a zlib._ZlibDecompressor was added. This is the _bz2.BZ2Decompressor ported to zlib. Since the zlib.Decompress object is better for in-memory decompression, the _ZlibDecompressor is hidden. It only makes sense in file decompression, and that is already implemented now in the gzip library. No need to bother the users with this. + The ZlibDecompressor uses the older Cpython arrange_output_buffer functions, as those are faster and more appropriate for the use case. + GzipFile.read has been optimized. There is no longer a `unconsumed_tail` member to write back to padded file. This is instead handled by the ZlibDecompressor itself, which has an internal buffer. `_add_read_data` has been inlined, as it was just two calls. EDIT: While I am adding improvements anyway, I figured I could add another one-liner optimization now to the python -m gzip application. That read chunks in io.DEFAULT_BUFFER_SIZE previously, but has been updated now to use READ_BUFFER_SIZE chunks.
* gh-95913: Forward-port int/str security change to 3.11 What's New in main ↵C.A.M. Gerlach2022-10-171-0/+11
| | | | | | | (#98344) Add int/str security change from issue gh-95778 PRs gh-96499 / gh-95800 Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
* GH-91415: Mention alphabetical sort ordering in the Sorting HOWTO (GH-98336)Raymond Hettinger2022-10-161-76/+22
|
* gh-97930: Merge with importlib_resources 5.9 (GH-97929)Jason R. Coombs2022-10-167-29/+102
| | | | | * Merge with importlib_resources 5.9 * Update changelog
* gh-85525: Remove extra row in doc (#98337)Joannah Nanjekye2022-10-162-1/+1
| | | | | | | * remove extra row * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-85299: Add note warning about entry point guard for asyncio example (#93457)Stanley2022-10-162-1/+9
|
* gh-97527: IDLE - fix buggy macosx patch (#98313)Terry Jan Reedy2022-10-163-16/+34
| | | | | | #97530 fixed IDLE tests possibly crashing on a Mac without a GUI. But it resulted in IDLE not starting in 3.10.8, 3.12.0a1, and Microsoft Python 3.10.2288.0 when test/* is not installed. After this patch, test.* is only imported when testing on Mac.
* gh-98307: Add docstring and documentation for SysLogHandler.createSocket ↵Vinay Sajip2022-10-163-1/+21
| | | | | (GH-98319) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-94808: Cover `PyFunction_GetCode`, `PyFunction_GetGlobals`, ↵Nikita Sobolev2022-10-162-0/+74
| | | | `PyFunction_GetModule` (#98158)
* GH-94597: Deprecate child watcher getters and setters (#98215)Kumar Aditya2022-10-159-52/+105
| | | | | | | This is the next step for deprecating child watchers. Until we've removed the API completely we have to use it, so this PR is mostly suppressing a lot of warnings when using the API internally. Once the child watcher API is totally removed, the two child watcher implementations we actually use and need (Pidfd and Thread) will be turned into internal helpers.
* gh-98254: Include stdlib module names in error messages for NameErrors (#98255)Pablo Galindo Salgado2022-10-156-31/+101
|
* Improve speed. Reduce auxiliary memory to 16.6% of the main array. (GH-98294)Raymond Hettinger2022-10-151-4/+5
|
* [doc] Update logging cookbook with an example of custom handling of levels. ↵Vinay Sajip2022-10-151-4/+206
| | | | | (GH-98290) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* docs(typing): harmonize "See PEP x for more details" (#97927)Simon Legner2022-10-151-10/+8
|
* gh-94808: Cover `str.rsplit` for UCS1, UCS2 or UCS4 (#98228)Nikita Sobolev2022-10-152-2/+14
|
* Faster sieve() recipe (#98287)Raymond Hettinger2022-10-151-8/+27
|
* gh-98227: executionmodel.rst: except* can also bind names (#98256)BiscuitCandy2022-10-151-1/+1
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-94808: Cover `PyEval_GetFuncName` (#98246)Nikita Sobolev2022-10-152-0/+22
|
* gh-95731: Fix module docstring extraction in pygettext (#95732)Jakub Kuczys2022-10-153-3/+25
|
* gh-95971: Turn @writes_bytecode_files to skip when not running (#95972)Jeong YunWon2022-10-151-1/+1
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-96258: move Py_REFCNT and Py_SET_REFCNT to reference counting page (#96259)QuakeIV2022-10-152-21/+22
|
* gh-85455: Add missing doc strings and improve docs (#21573)Joannah Nanjekye2022-10-152-11/+16
| | | | | | | * Add missing doc strings and improve docs * Use imperative form * Modify docstring wording
* gh-85525: Indicate supported sound header formats (#21575)Joannah Nanjekye2022-10-152-0/+57
| | | | | | | * Indicate supported sound header formats * modify file names Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>