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

Add missing built-in functions for Python #2334

Merged
merged 2 commits into from Feb 12, 2023
Merged

Add missing built-in functions for Python #2334

merged 2 commits into from Feb 12, 2023

Conversation

otaithleigh
Copy link
Contributor

Adds two missing builtins for the Python lexer, callable and aiter.

callable was removed in Python 3.0, but added back in 3.2, while aiter was added in 3.10.

Interestingly, help is also missing from the list of builtins, but I'm assuming that's more of a conscious exclusion (it's also missing from the Python2 and Cython lexers), so I haven't added it in this PR.

@Anteru Anteru added the A-lexing area: changes to individual lexers label Feb 2, 2023
@jeanas jeanas merged commit 4e9646f into pygments:master Feb 12, 2023
@jeanas
Copy link
Contributor

jeanas commented Feb 12, 2023

Thanks :)

@jeanas
Copy link
Contributor

jeanas commented Feb 12, 2023

@BhinbahadurUK Did you reply on the wrong GitHub thread?

@pygments pygments deleted a comment from BhinbahadurUK Feb 12, 2023
@birkenfeld
Copy link
Member

Seems to be just strange spam. User should be reported if it happens more .

@Anteru Anteru added this to the 2.15.0 milestone Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants