[Python-bugs-list] [ python-Bugs-687655 ] String formatting conversions misleading
SourceForge.net
noreply@sourceforge.net
Mon, 17 Feb 2003 11:08:47 -0800
Bugs item #687655, was opened at 2003-02-16 17:49
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=687655&group_id=5470
Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Beat Bolli (bolli)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: String formatting conversions misleading
Initial Comment:
Chapter 2.2.6.2, "String Formatting":
The "conversion flag
characters" table should mention that the 0 flag only applies to
numeric values, not to strings.
This bug is the result of a
short discussion on c.l.python on Feb 13, 2003.
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-02-17 14:08
Message:
Logged In: YES
user_id=33168
Your version was checked in as:
Doc/lib/libstdtypes.tex; 1.118 and 1.80.6.19
Thanks.
----------------------------------------------------------------------
Comment By: Beat Bolli (bolli)
Date: 2003-02-17 13:55
Message:
Logged In: YES
user_id=7310
> I suggest: * The conversion will be zero padded for
integer conversions (d, i, o, u, x, X).
> Does this address the problem? If not, can you suggest
wording?
I propose
* The conversion will be zero-padded for numeric values
This is more accurate, since floats can also be zero-padded.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-02-17 10:46
Message:
Logged In: YES
user_id=33168
Currently the text reads:
* The conversion will be zero padded.
I suggest:
* The conversion will be zero padded for integer
conversions (d, i, o, u, x, X).
Does this address the problem? If not, can you suggest
wording?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=687655&group_id=5470