Skip to content

Add missing built-in functions for Python#2334

Merged
jeanas merged 2 commits intopygments:masterfrom
otaithleigh:patch/python-builtins
Feb 12, 2023
Merged

Add missing built-in functions for Python#2334
jeanas merged 2 commits intopygments:masterfrom
otaithleigh:patch/python-builtins

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.

4 participants