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

% string formatting doesn't allow missing parameters #105

Closed
brettatoms opened this issue Jun 8, 2015 · 0 comments
Closed

% string formatting doesn't allow missing parameters #105

brettatoms opened this issue Jun 8, 2015 · 0 comments

Comments

@brettatoms
Copy link
Contributor

@brettatoms brettatoms commented Jun 8, 2015

Consider using str.format() methods so that if someone wants to override the error.* messages you don't get an error if the %s is missing new error message.

>>> 'some message' % 'x'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: not all arguments converted during string formatting
>>> 'some message'.format('x')
'some message'
>>>```
@brettatoms brettatoms changed the title % string formatting doesn % string formatting doesn't allow missing parameters Jun 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant