Skip to content
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

gh-56166: Deprecate passing counts and maxsplit via position in re #107767

Closed
wants to merge 4 commits into from

Conversation

hauntsaninja
Copy link
Contributor

@hauntsaninja hauntsaninja commented Aug 8, 2023

@hauntsaninja
Copy link
Contributor Author

This is a very common mistake, see #99918 (comment)

@hauntsaninja hauntsaninja changed the title gh-56166: Deprecate passing counts and flags via position in re gh-56166: Deprecate passing counts and maxsplit via position in re Aug 8, 2023
@serhiy-storchaka
Copy link
Member

Thank you for your PR @hauntsaninja, but there is a different solution to a problem with signature. Also, these parameters are not keyword-only yet, so they should not be documented so. Instead the deprecation of passing the corresponding arguments positionally should be documented. I created a different PR #107778.

@hauntsaninja hauntsaninja deleted the gh-56166 branch August 8, 2023 17:35
@terryjreedy
Copy link
Member

terryjreedy commented Aug 9, 2023

Since the other patch passed all checks, I am assuming that inspect.signature will continue to display '0' rather than'_zero_sentinal', so that the IDLE tests should continue as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants