FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-42102: [draft] make callable runtime subscriptable by hauntsaninja · Pull Request #22848 · python/cpython · GitHub

Repository navigation

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

Closed
hauntsaninja wants to merge 1 commit into
python:masterfrom
hauntsaninja:gencall
Closed

hauntsaninja wants to merge 1 commit into
python:masterfrom
hauntsaninja:gencall

Conversation

hauntsaninja commented Oct 21, 2020 •
edited
Loading

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown

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 Bot added the stale Stale PR or inactive for long period of time. label Dec 16, 2020
hauntsaninja deleted the gencall branch December 26, 2020 06:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL