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

bpo-42102: [draft] make callable runtime subscriptable #22848

Closed
wants to merge 1 commit into from

Conversation

hauntsaninja
Copy link
Contributor

@hauntsaninja hauntsaninja commented Oct 21, 2020

https://bugs.python.org/issue42102

This is more just a suggestion of what this could look like than a serious PR, although it does work and does pass tests.

One important behaviour change in this PR is isinstance(x, callable) no longer raises a TypeError, instead only returning False. The decision of whether to make isinstance(x, callable) work is separate from whether to make callable runtime subscriptable, but it should either work or raise TypeError as today, not something in between.

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Dec 16, 2020
@hauntsaninja hauntsaninja deleted the gencall branch December 26, 2020 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review stale Stale PR or inactive for long period of time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants