Skip to content

Add default value for expression parameter of string.templatelib.Interpolation #14403

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

Merged
merged 1 commit into from
Jul 12, 2025

Conversation

brianschubert
Copy link
Member

For reference: python/cpython#136441

Python 3.14.0b4+ (heads/3.14:33f561d, Jul 12 2025, 09:45:01) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import string.templatelib
>>> string.templatelib.Interpolation(123)
Interpolation(123, '', None, '')

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit eba42bd into python:main Jul 12, 2025
64 checks passed
@brianschubert brianschubert deleted the stdlib-templatelib-expr-default branch July 12, 2025 17:19
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.

2 participants