We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A common pattern in 2/3 compatible codebases is to wrap new Python 3 syntax with exec or eval with a string literal.
Examples can be seen six.reraise, various bits of twisted and tulip:
This also applies to 3.6-3.10 codebases for example positional only arguments:
if sys.version_info >= (3, 8): exec( """def fancyStuff(fn, \, ham, spam): ... """ ) else: def fancyStuff(args, ham, spam): fn, *args = args ...
The text was updated successfully, but these errors were encountered:
I think this would be really difficult to do in the general case, but certainly possible
Sorry, something went wrong.
No branches or pull requests
A common pattern in 2/3 compatible codebases is to wrap new Python 3 syntax with exec or eval with a string literal.
Examples can be seen six.reraise, various bits of twisted and tulip:
This also applies to 3.6-3.10 codebases for example positional only arguments:
The text was updated successfully, but these errors were encountered: