[issue5963] Doc error: integer precision in formats

2009-05-08 Thread Eric Smith
Eric Smith added the comment: "integer presentation types" is still not exactly correct, because there are presentation types that work across value types. Specifically, 'n' works on integers and floats. Precision is allowed for floats, but not ints: >>> format(10.0, '.4n') '10' >>> format(10,

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whoops, I believe my suggested replacement. "A precision is not allowed for integer values." should really be "A precision is not allowed for integer presentation types." or something similar. If you did not change the end of the sentence, please do. A precisi

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Eric Smith
Eric Smith added the comment: I updated the docs to say precision is not allowed for integers. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Eric Smith
Changes by Eric Smith : -- assignee: georg.brandl -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Eric Smith
Eric Smith added the comment: PEP 3101 says it's ignored. I chose to be strict. I don't see the advantage of allowing but ignoring it. -- ___ Python tracker ___ _

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry; ignore me. I should have read more carefully, and paid attention to what was going on on python-dev as well. -- ___ Python tracker ___

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Mark Dickinson
Mark Dickinson added the comment: This may be a format error rather than a doc error. Eric? -- nosy: +eric.smith, marketdickinson ___ Python tracker ___

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Terry J. Reedy
New submission from Terry J. Reedy : String Services / Format Specification Mini-Language (7.1.3.1 in 3.1) "The precision is ignored for integer values." in 3.0.1 and 3.1.b1 and, I presume in 2.6/7 doc should be "A precision is not allowed for integer values." (3.0.1) >> format(10, '3x') ' a'