summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add re.VERBOSE flag documentation example (#97678)Athos Ribeiro2022-10-051-1/+2
| | | | | | The current re.VERBOSE documentation example leaves space for ambiguous interpretation. One may read that spaces within the `(?:` token are spaces inside the non-capturing group (such as `(?: )`). This patch removes the ambiguity by including examples after the statement.
* gh-97654: Add auto exception chaining example to tutorial (#97703)Shahriar Heidrich2022-10-051-5/+23
| | | Add auto exception chaining example to tutorial
* GH-91079: Decouple C stack overflow checks from Python recursion checks. ↵Mark Shannon2022-10-0522-99/+165
| | | | (GH-96510)
* GH-97779: Ensure that *all* frame objects are backed by "complete" frames ↵Brandt Bucher2022-10-055-4/+75
| | | | (GH-97845)
* gh-97837: Change deprecation warning message in `unittest` (#97838)Nikita Sobolev2022-10-055-8/+37
|
* gh-95913: Copyedit/improve Implementation Changes What's New section (#97720)C.A.M. Gerlach2022-10-051-17/+27
| | | | | | | | | | | * Add and refine reST/Sphinx syntax for implementation changes section * Clarify and refine wording in the Implementation Changes section * Elide unnecessary comma Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-93738: Documentation C syntax (:c:type: to :c:expr:, misc. cases) (#97775)Adam Turner2022-10-044-7/+7
| | | | | * :c:type: to :c:expr: * Update Doc/whatsnew/2.4.rst
* gh-93738: Documentation C syntax (:c:type:`FILE` -> :c:expr:`FILE`) (#97769)Adam Turner2022-10-043-8/+8
| | | :c:type:`FILE` -> :c:expr:`FILE`
* gh-93738: Documentation C syntax (:c:type:`TYPE` -> :c:expr:`TYPE`) (#97770)Adam Turner2022-10-041-2/+2
| | | :c:type:`TYPE` -> :c:expr:`TYPE`
* gh-93738: Documentation C syntax (Use `c:struct`) (#97772)Adam Turner2022-10-046-15/+15
| | | Use `c:struct`
* gh-93738: Documentation C syntax (:c:data:`view->obj` -> ↵Adam Turner2022-10-041-5/+5
| | | | | :c:expr:`view->obj`) (#97773) :c:data:`view->obj` -> :c:expr:`view->obj`
* gh-95913: Copyedit/improve Other Language Changes What's New section (#97719)C.A.M. Gerlach2022-10-041-31/+36
| | | | | | | | | | | | | | | * Add/refine cross references to items in other lang changes section * Unify context manager exception changes into single non-repetitive item * More clearly describe the intent and consequences of the -P option * Apply minor clarifications & copyedits to rest of section * Tweak the formatting of module references Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-93738: Documentation C syntax (:c:type:`PyObject` -> :c:expr:`PyObject`) ↵Adam Turner2022-10-0410-30/+30
| | | | | (#97776) :c:type:`PyObject` -> :c:expr:`PyObject`
* gh-93738: Documentation C syntax (:c:type:`PyInterpreterState *` -> ↵Adam Turner2022-10-041-1/+1
| | | | | :c:expr:`PyInterpreterState *`) (#97777) :c:type:`PyInterpreterState *` -> :c:expr:`PyInterpreterState *`
* gh-93738: Documentation C syntax (:c:type:`PyTupleObject*` -> ↵Adam Turner2022-10-041-1/+1
| | | | | :c:expr:`PyTupleObject*`) (#97780) :c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`
* gh-93738: Documentation C syntax (:c:type:`PyBytesObject*` -> ↵Adam Turner2022-10-041-1/+1
| | | | | :c:expr:`PyBytesObject*`) (#97782) :c:type:`PyBytesObject*` -> :c:expr:`PyBytesObject*`
* gh-93738: Documentation C syntax (:c:type:`PyUnicodeObject*` -> ↵Adam Turner2022-10-041-1/+1
| | | | | :c:expr:`PyUnicodeObject*`) (#97783) :c:type:`PyUnicodeObject*` -> :c:expr:`PyUnicodeObject*`
* gh-93738: Documentation C syntax (:c:type:`Py_UNICODE*` -> ↵Adam Turner2022-10-041-1/+1
| | | | | :c:expr:`Py_UNICODE*`) (#97784) :c:type:`Py_UNICODE*` -> :c:expr:`Py_UNICODE*`
* gh-88355: Fix backslashes in AF_PIPE (#96543)cousteau2022-10-041-2/+2
| | | | | Fix backslashes in AF_PIPE (#88355) The correct syntax for AF_PIPE addresses is `\\.\pipe\blahblah`, not `\.\pipe{blahblah}`, but the syntax markup messed up the backslashes.
* gh-95913: Move py.exe to appropriate What's New section & refine text (#97718)C.A.M. Gerlach2022-10-041-22/+26
| | | | | | | | | | | | | | | * Move Windows py.exe improvements from Typing section to New Features * Add ref target label and use literal for py.exe * Be clearer/explict about what legacy version arg components reprisent * Apply other minor clarity and textual fixes to py.exe launcher text * Refine phrasing of legacy sentence of py.exe desc Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-58451: Add optional delete_on_close parameter to NamedTemporaryFile ↵Ev2geny2022-10-045-51/+216
| | | | (GH-97015)
* gh-97008: Add a Python implementation of AttributeError and NameError ↵Łukasz Langa2022-10-048-520/+50707
| | | | | | | | | suggestions (#97022) Relevant tests moved from test_exceptions to test_traceback to be able to compare both implementations. Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* gh-96448: fix documentation for _thread.lock.acquire (#96449)Daniel Giger2022-10-041-5/+5
| | | | | * fix documentation for _thread.lock.acquire * update formatting of _thread.lock.acquire() doc
* gh-90301: Doc: Add references to PEP 686 (#96816)Inada Naoki2022-10-042-7/+14
| | | Doc: Add references to PEP 686.
* GH-95913: Update what's new in 3.11 for asyncio (#97806)Guido van Rossum2022-10-041-16/+40
| | | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-93357: Start porting asyncio server test cases to IsolatedAsyncioTestCase ↵Oleg Iarygin2022-10-041-173/+119
| | | | | (#93369) Lay the foundation for further work in `asyncio.test_streams`.
* gh-96142: add missing params to `dataclass._DataclassParams` (gh-96382)Nikita Sobolev2022-10-043-3/+47
|
* GH-82604: fix docs about configuring selector (#97755)Kumar Aditya2022-10-041-3/+6
|
* gh-97754: Update doc for default location of per-user installs on Windows ↵Ben Faulhaber2022-10-041-3/+6
| | | | (GH-97756)
* gh-97731: fix distclean target to clean docs (#97732)Skip Montanaro2022-10-041-4/+3
| | | fix distclean target to clean docs
* gh-97670: Remove sys.getdxp() and analyze_dxp.py script (#97671)Victor Stinner2022-10-046-201/+7
| | | | | | | Remove the sys.getdxp() function and the Tools/scripts/analyze_dxp.py script. DXP stands for "dynamic execution pairs". They were related to DYNAMIC_EXECUTION_PROFILE and DXPAIRS macros which have been removed in Python 3.11. Python can now be built with "./configure --enable-pystats" to gather statistics on Python opcodes.
* Adjust stable ABI internal documentation (GH-96896)William Woodruff2022-10-041-7/+14
| | | | | I was perusing this file, and noticed that this part of the documentation is slightly out of date: the `struct` items in this TOML file currently contain `struct_abi_kind` members, which distinguish between the different types of ABI compatibility described in the comment. I've updated the comment to reflect this.
* gh-97669: Remove outdated example scripts (#97675)Victor Stinner2022-10-0448-7050/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove outdated example scripts of the Tools/scripts/ directory. A copy can be found in the old-demos project: https://github.com/gvanrossum/old-demos Removed scripts (39): * byext.py * byteyears.py * cleanfuture.py * copytime.py * crlf.py * db2pickle.py * dutree.doc * dutree.py * find-uname.py * find_recursionlimit.py * finddiv.py * findlinksto.py * findnocoding.py * fixcid.py * fixdiv.py * fixheader.py * fixnotice.py * fixps.py * get-remote-certificate.py * google.py * highlight.py * ifdef.py * import_diagnostics.py * lfcr.py * linktree.py * lll.py * mailerdaemon.py * make_ctype.py * mkreal.py * objgraph.py * pdeps.py * pickle2db.py * pindent.py * pysource.py * reindent-rst.py * rgrep.py * suff.py * texi2html.py * which.py Changes: * Remove test_fixcid, test_lll, test_pdeps and test_pindent of test.test_tools. * Remove get-remote-certificate.py changelog entry, since the script was removed. Note: there is a copy of crlf.py in Lib/test/test_lib2to3/data/.
* gh-97709: Included newline separator in Mandelbrot set (#97737)matheusja2022-10-041-2/+2
| | | | | Included newline separator in Mandelbrot set Now the Mandelbrot set one-liner example on separates the lines with a '\n' character.
* gh-97816: Remove unused variables in `mutliprocessing.managers.Server` (#97817)Koki Saito2022-10-042-1/+1
| | | Remove unused local variables.
* gh-93738: Documentation C syntax (:c:data:`0` -> ``0``) (#97771)Adam Turner2022-10-041-1/+1
| | | :c:data:`0` -> ``0``
* gh-97639: Remove `tokenize.NL` check from `tabnanny` (#97640)Nikita Sobolev2022-10-042-2/+1
| | | | | | | * gh-97639: Remove `tokenize.NL` check from `tabnanny` * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Add comment to subtle dataclass code (gh-96133)Shantanu2022-10-041-0/+4
| | | | | | | | | In the PR that made this change, 1st1 left a "note to self: add a comment explaining this". This comment was never added. https://github.com/python/cpython/pull/9518/files#r280608117 I was reading this code and it wasn't obvious to me why we weren't exec-ing directly into locals. So I got to learn something new :-) https://docs.python.org/3/reference/executionmodel.html#interaction-with-dynamic-features
* Remove space. (GH-97807)Benjamin Peterson2022-10-041-1/+1
| | | Automerge-Triggered-By: GH:benjaminp
* Add `sprint` issues to the Sprint 2022 project. (#97788)Ezio Melotti2022-10-031-0/+1
|
* GH-97752: Clear the `previous` member of newly-created generator/coroutine ↵Brandt Bucher2022-10-033-0/+24
| | | | frames (GH-97795)
* Minor grammar changes to http.client docs (#96221)Rohan Shah2022-10-031-2/+2
| | | Minor grammar changes
* Update http.client.rst (#24803)Géry Ogam2022-10-031-9/+8
| | | | | | | | | | | | * Update http.client.rst * Apply suggestions from code review Co-authored-by: Éric <merwok@netwok.org> * Update http.client.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Senthil Kumaran <senthil@python.org>
* gh-97799: use inspect.get_annotations in dataclass (#97800)larryhastings2022-10-032-5/+4
| | | | | | dataclass used to get the annotations on a class object using cls.__dict__.get('__annotations__'). Now that it always imports inspect, it can use inspect.get_annotations, which is modern best practice for coping with annotations.
* multiprocessing docs: Remove extra option ELLIPSIS from section with code ↵Ivan Kapeykin2022-10-031-1/+0
| | | | (#96625)
* gh-96526: Clarify format and __format__ docstrings (gh-96648)Michael2022-10-036-16/+29
|
* Document that MozillaCookieJar works for curl's cookie files (#91852)Boris Verkhovskiy2022-10-032-3/+3
| | | MozillaCookieJar works for curl's cookies
* gh-96512: Move int_max_str_digits setting to PyConfig (#96944)Gregory P. Smith2022-10-0313-24/+111
| | | | | | | | | | | It had to live as a global outside of PyConfig for stable ABI reasons in the pre-3.12 backports. This removes the `_Py_global_config_int_max_str_digits` and gets rid of the equivalent field in the internal `struct _is PyInterpreterState` as code can just use the existing nested config struct within that. Adds tests to verify unique settings and configs in subinterpreters.
* gh-94808: Coverage: Check picklablability of calliter (#95923)Michael Droettboom2022-10-031-10/+11
|
* gh-94808: Add test coverage for PyObject_HasAttrString (#96627)MonadChains2022-10-032-0/+40
| | | | | | | * gh-94808: Add test for HasAttrString * Harmonize to Python C code style guidelines * Add check to verify no exception thrown