8000 Nested arguments in str.format · Issue #1707 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

Nested arguments in str.format #1707

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

Closed
pohmelie opened this issue Dec 11, 2015 · 4 comments
Closed

Nested arguments in str.format #1707

pohmelie opened this issue Dec 11, 2015 · 4 comments

Comments

@pohmelie
Copy link
Contributor

micropython:

>>> str.format("{text:{align}{width}}", text="foo", align="^", width=20)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid format specifier

cpython 3.4.3:

>>> str.format("{text:{align}{width}}", text="foo", align="^", width=20)
'        foo         '

I read #407 and #574 (as wiki said). I understand, that core contributors probably don't like str.format and str.format not fully supported, but I prefer this method of string formatting and want this to be implemented.

@pfalcon
Copy link
Contributor
pfalcon commented Dec 11, 2015

and want this to be implemented.

Patches welcome (don't forget to include code size increase for stmhal port) ;-)

Otherwise, duplicate of #812

@pohmelie
Copy link
Contributor Author

This is not the reason to close issue.

@pfalcon
Copy link
Contributor
pfalcon commented Dec 11, 2015

Duplicates are reason to close issues, otherwise there will be dozens of reports for the same issue and it will be impossible to use the bugtracker. Please always search for existing report before opening a new one.

@pohmelie
Copy link
Contributor Author

@pfalcon, oh I missed it is opened. My fault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0