Skip to content

Tag strings v2 #103835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1,213 commits into from
Closed

Tag strings v2 #103835

wants to merge 1,213 commits into from

Conversation

gvanrossum
Copy link
Member

This is not ready to merge. It is a proof of concept for https://github.com/jimbaker/tagstr. @jimbaker have fun!

@gvanrossum
Copy link
Member Author

gvanrossum commented Apr 25, 2023

We now have some tests. I have not turned the tuple into a named tuple, the implementation for that is a bit tricky, I'm not even sure I want to do that (see #5 for more discussion).

miss-islington and others added 26 commits October 8, 2023 00:18
Update floatingpoint.rst (pythonGH-110509)

This commit removes a ':'. I believe the extra colon causes a display error.

What I believe to be an error:
Above this expression
`round(math.pi, ndigits=2) == round(22 / 7, ndigits=2)`
the page displays `.. doctest::`.

What I observed:
After I remove the extra colon, the page does not display `.. doctest::`
(cherry picked from commit 8e56d55)

Co-authored-by: zipperer <47086307+zipperer@users.noreply.github.com>
…MatchClass` (pythonGH-110238) (python#110511)

pythongh-110237: Check `PyList_Append` for errors in `_PyEval_MatchClass` (pythonGH-110238)
(cherry picked from commit dd9d781)

Co-authored-by: denballakh <47365157+denballakh@users.noreply.github.com>
…onacci numbers (pythonGH-110535) (python#110536)

pythongh-110534 fix a URL redirect to wikipedia article on Fibonacci numbers (pythonGH-110535)
(cherry picked from commit 892ee72)

Co-authored-by: partev <petrosyan@gmail.com>
…onGH-110524) (python#110541)

pythongh-110514: Add PY_THROW to `sys.setprofile` events (pythonGH-110524)
(cherry picked from commit dd4bb05)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
…pythonGH-110403) (python#110478)

pythongh-109286: Update Windows installer to use SQLite 3.43.1 (pythonGH-110403)
(cherry picked from commit 201dc11)

Co-authored-by: jtranquilli <76231120+jtranquilli@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
…OError` in docs (pythonGH-110498) (python#110546)

pythongh-110497: Add note about `OSError` being an alias to `IOError` in docs (pythonGH-110498)
(cherry picked from commit 5e7edac)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
…ythonGH-110482) (python#110550)

(cherry picked from commit 48419a5)

Co-authored-by: jtranquilli <76231120+jtranquilli@users.noreply.github.com>
…jects (pythonGH-110544) (pythonGH-110554)

(cherry picked from commit ea39c87)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
…n separated list of DLLs to bundle (pythonGH-110470)

pythongh-110437: Allow overriding VCRuntimeDLL with a semicolon separated list of DLLs to bundle (pythonGH-110470)
(cherry picked from commit 12cc679)

Co-authored-by: Steve Dower <steve.dower@python.org>
…capi (pythonGH-110552) (pythonGH-110553)

(cherry picked from commit 89df5b7)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
… (pythongh-110562)

pythongh-109191: Fix build with newer editline (pythongh-110239)
(cherry picked from commit f4cb0d2)

Co-authored-by: Bo Anderson <mail@boanderson.me>
…dule (pythonGH-110520) (pythonGH-110563)

Deprecation warning about non-integer numbers in gettext now always refers
to the line in the user code where gettext function or method is used.
Previously, it could refer to a line in gettext code.

Also, increase test coverage for NullTranslations and domain-aware functions
like dngettext().
(cherry picked from commit 326c6c4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…110570) (python#110585)

Remove unused `SPHINXLINT` var from `Doc/Makefile`. (pythonGH-110570)

Remove unused `SPHINXLINT` var.
(cherry picked from commit bdbe43c)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
… (python#110599)

Add some 'meta hooks' to our pre-commit config (pythonGH-110587)
(cherry picked from commit d5ec77f)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
… to pre-commit (pythonGH-109854) (python#110594)

pythongh-109408: Add the docs whitespace check from patchcheck to pre-commit (pythonGH-109854)
(cherry picked from commit 7426ed0)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…d asynccontextmanager (pythonGH-110499) (python#110588)

contextmanager and asynccontextmanager context managers now close an invalid
underlying generator object that yields more then one value.
(cherry picked from commit 96fed66)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…thonGH-109447) (python#110580)

Add OS version specific macro for Solaris: Py_SUNOS_VERSION.
(cherry picked from commit 3b1580a)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
… Argument Clinic (pythonGH-110603) (python#110609)

pythongh-110558: Enable ruff's pyupgrade rules when running on Argument Clinic (pythonGH-110603)
(cherry picked from commit fc811c8)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
…exceptions (pythonGH-110591) (python#110613)

TypeError would be overwritten by OverflowError
if 'code' param contained non-ints.
(cherry picked from commit 344d3a2)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
…in test_contextlib_async (pythonGH-110500) (python#110610)

It now fails if the original bug is not fixed, and no longer produce ResourceWarning with fixed code.
(cherry picked from commit 5aa62a8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…rst` (pythonGH-110207) (pythonGH-110623)

(cherry picked from commit 756062b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
…nGH-110619)

(cherry picked from commit 92a9e98)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…10621)

cherry picked from commit 7f702b2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington and others added 26 commits November 14, 2023 10:59
…thonGH-111878) (pythongh-112034)

pythongh-111460: Restore ncurses widechar support on macOS (pythonGH-111878)
(cherry picked from commit d2f305d)

Co-authored-by: Davide Rizzo <sorcio@gmail.com>
…thon#112052)

They are set-like even when some values are not hashable,
but work even better when all are.
(cherry picked from commit e31d65e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
… pdb completion test (pythonGH-111826) (pythonGH-112024)

pythongh-110944: Move pty helper to test.support and add basic pdb completion test (pythonGH-111826)
(cherry picked from commit 1c7ed7e)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
…ythonGH-111976) (pythonGH-112058)

* Fix crash when encoding is not string or None.
* Fix crash when both line_buffering and write_through raise exception
  when converted ti int.
* Add a number of tests for constructor and reconfigure() method
  with invalid arguments.

(cherry picked from commit ee06fff)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…10091) (python#112102)

Docs: Add the time to the HTML last updated format (pythonGH-110091)
(cherry picked from commit 6c214de)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
python#112114)

pythongh-108303: Delete `imp_dummy` test file (pythonGH-112110)
(cherry picked from commit 422c0f0)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
…tor (pythonGH-112061) (pythonGH-112089)

In non-debug more the check for the "errors" argument is skipped,
and then PyUnicode_AsUTF8() can fail, but its result was not checked.

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 9302f05)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Fix typo in perf profiling docs (pythonGH-112112)
(cherry picked from commit 0cfdd6e)

Co-authored-by: Ryuji Tsutsui <ryu22e+github@gmail.com>
…ythongh-111568)

CI: Move OS test jobs to reusable workflows

Co-authored-by: Donghee Na <donghee.na@python.org>
…lated gotchas (pythonGH-111504) (pythonGH-112148)

pythongh-110812: Isolating Extension Modules HOWTO: List GC-related gotchas (pythonGH-111504)
(cherry picked from commit 985679f)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
…ythonGH-112090) (python#112159)

pythongh-112088: Run autoreconf in GHA check_generated_files (python#112090)

The "Check if generated files are up to date" job of GitHub Actions
now runs the "autoreconf -ivf -Werror" command instead of the "make
regen-configure" command to avoid depending on the external quay.io
server.

Add Tools/build/regen-configure.sh script to regenerate the configure
with an Ubuntu container image. The
"quay.io/tiran/cpython_autoconf:271" container image
(https://github.com/tiran/cpython_autoconf) is no longer used.

(cherry picked from commit d9fd33a)
…onGH-112158) (python#112162)

pythonGH-112152: Fix typo in `typing.override` docstring (pythonGH-112158)
(cherry picked from commit 12c7e9d)

Co-authored-by: Qua27 <92877777+Qua27@users.noreply.github.com>
…2130) (python#112131)

pythongh-111811: Fix test_recursive_repr for WASI (pythonGH-112130)
(cherry picked from commit 7218bac)

Co-authored-by: Kushal Das <mail@kushaldas.in>
…ning (pythonGH-111983) (python#112142)

* [3.12] pythongh-109538: Avoid RuntimeError when StreamWriter is deleted with closed loop (pythonGH-111983)

Issue a ResourceWarning instead.

(cherry picked from commit e0f5127)
pythongh-109538: Avoid RuntimeError when StreamWriter is deleted with closed loop (python#111983)

Issue a ResourceWarning instead.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
(cherry picked from commit e0f5127)

* Fix missing warnings import
…tsv` (pythongh-112122) (pythongh-112177)

It was removed in 3.12, no need to keep the ignore.
(cherry picked from commit 762eb58)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
…ython#112184)

pythongh-112165: Fix typo in `__main__.py` (pythonGH-112183)

Change '[2]' to '[1]' to get second argument.
(cherry picked from commit 8cd70ee)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
…on notice for typing.Hashable and typing.Sized (pythonGH-112196) (python#112200)

pythongh-94309: "What's new in Python 3.12": improve deprecation notice for typing.Hashable and typing.Sized (pythonGH-112196)
(cherry picked from commit fb4cddb)

Co-authored-by: Ori Avtalion <ori@avtalion.name>
…py` (pythonGH-112195) (python#112208)

pythongh-112194: Convert more examples to doctests in `typing.py` (pythonGH-112195)
(cherry picked from commit 949b2cc)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
…11451) (python#112256)

pythongh-79871: IDLE - Fix and test debugger module (pythonGH-11451)

Add docstrings to the debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); In Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Make other code changes.

Expand test_debugger coverage from 19% to 66%.
---------

(cherry picked from commit adedcfa)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
…2258) (python#112259)

IDLE: Fix test_debugger bug and buildbot failures (pythonGH-112258)

Missing "requires('gui')" causes Tk() to fail when no gui.
This caused CI Hypothesis test to fail, but I did not understand
the its error message. Then buildbots failed.

IdbTest failed on draft Bdb replacement because so different.
Simplified version works on old and new.
(cherry picked from commit 14fd86a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
…GH-112221) (python#112262)

Co-authored-by: Alex Ptakhin <me@aptakhin.name>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
…en there is an unhandled exception (pythonGH-111574) (python#112264)

Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
…ce_warnings` (pythonGH-112187) (python#112255)

(cherry picked from commit 18c6929)

Co-authored-by: DPR <dpr-0xff@pm.me>
…d `__weakref__` docstrings (pythonGH-112268) (python#112270)

pythongh-112266: Remove `(if defined)` part from `__dict__` and `__weakref__` docstrings (pythonGH-112268)
(cherry picked from commit f812914)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@gvanrossum
Copy link
Member Author

I just merged the latest 3.12 branch.

@python-cla-bot
Copy link

python-cla-bot bot commented Apr 18, 2025

The following commit authors need to sign the Contributor License Agreement:

CLA signed

@AA-Turner
Copy link
Member

Closing, superseded by PEP 750.

A

@AA-Turner AA-Turner closed this Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.