Skip to content
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

Add example of combining value conversion with format specifiers #37

Open
arthur-tacca opened this issue Nov 16, 2016 · 1 comment
Open
Labels

Comments

@arthur-tacca
Copy link

It's not clear from the page at the moment how to combine value conversion (e.g. "{!s}".format(foo)) with format specifiers (e.g. resulting in "{!s:.5}".format(foo)). After trying a few combinations (like "{:!s.5}".format(foo)) I caved in and looked at the official documentation (horrors!). It would be nice if the value conversion section included an example with a format specifier. It wouldn't matter which format specifier because that would be enough to demonstrate the general syntax. Something common like padding would be good.

Sorry I haven't included a pull request with this request. 😢

@ulope
Copy link
Owner

ulope commented Nov 16, 2016

Thanks for the suggestion! It's a good idea.

Sorry I haven't included a pull request with this request. 😢

No worries :)

@ulope ulope added the content label Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants