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
The outputs of this script are different between rustpython and cpython
import _string format_string = "{title[:220]}" for literal_text, field_name, format_spec, conv in _string.formatter_parser( format_string ): print( f"literal_text: '{literal_text}' field_name: '{field_name}, format_spec: '{format_spec}, conv: {conv}'" )
cpython prints correctly:
literal_text: '' field_name: 'title[:220], format_spec: ', conv: None'
while rustpython prints:
literal_text: '' field_name: 'title[, format_spec: '220], conv: None'
this seems to cause issues when using gallery_dl as this is used for formatting file names in some extractors
The text was updated successfully, but these errors were encountered:
Thank you for the report.
FormatString::parse_spec which is in our https://github.com/RustPython/Parser repository seems to have a bug.
FormatString::parse_spec
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The outputs of this script are different between rustpython and cpython
cpython prints correctly:
while rustpython prints:
this seems to cause issues when using gallery_dl as this is used for formatting file names in some extractors
The text was updated successfully, but these errors were encountered: