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
'#' has no effect with 'c' type #53177
Comments
$ python3
Python 3.1.2 (release31-maint, May 3 2010, 22:18:46)
[GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> format(ord("a"), "c")
'a'
>>> format(ord("a"), "#c")
'a' I wonder if '#' with 'c' should raise an exception. |
I think that every type that # does not apply to should raise an exception. |
Attached patch makes Python throw an exception in the case above. |
I'm moving the patch to Python 3.4. 2.7 to 3.3 are out of scope as the change might break software. |
New changeset 16efa8d27e4c by Eric V. Smith in branch '3.4': |
New changeset b1aba042b36c by Eric V. Smith in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: