[issue11436] Clarify struct doc for format 's', when it is mentioned without numeric prefix

2011-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 90cdf403132e by Senthil Kumaran in branch '3.2': Fix closes Issue11436 - Minor clarification to struct documentation for 's' format character. http://hg.python.org/cpython/rev/90cdf403132e -- nosy: +python-dev resolution: -> fixed stage:

[issue11436] Clarify struct doc for format 's', when it is mentioned without numeric prefix

2011-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Those others field types have a standard or system-dependent fixed size and a number is an optional repeat count. Format 's' is always a single field because number prefix for that is special -- a field size. "For the 's' format character, the count is interp

[issue11436] Clarify struct doc for format 's', when it is mentioned without numeric prefix

2011-07-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: That is for the string formatting character, correct? In this issue, we are talking about format character for struct and not just 's' but 'c','h','b','i' all without numeric prefix imply single value. -- ___ Pytho

[issue11436] Clarify struct doc for format 's', when it is mentioned without numeric prefix

2011-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: A default of 1 in not implicit for output formatting. %s and {:s} mean however long needed, not %1s or {:1s} -- versions: -Python 3.1 ___ Python tracker _

[issue11436] Clarify struct doc for format 's', when it is mentioned without numeric prefix

2011-07-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Is this not implicit? Do we really need this stmt? I am -0 on this. If you agree, you can close this issue. -- nosy: +orsenthil title: Clarify struct doc for format 's'. -> Clarify struct doc for format 's', when it is mentioned without numeric prefi

[issue11436] Clarify struct doc for format 's'.

2011-03-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: patch -- keywords: +patch Added file: http://bugs.python.org/file21035/zstruct.diff ___ Python tracker ___

[issue11436] Clarify struct doc for format 's'.

2011-03-07 Thread Terry J. Reedy
New submission from Terry J. Reedy : The struct doc does not specify the meaning of 's', without a count. The attached patch adds the sentence: If a count is not given, it defaults to 1; ``'s'`` means the same as ``'1s'``. (Until I experimented, I had thought no count meant indefinite length)