← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 terry.reedy
收信人 orsenthil, terry.reedy
日期 2011-07-07.01:44:00
SpamBayes Score 4.645047e-08
Marked as misclassified 否
Message-id <1310003043.08.0.711986506428.issue11436@psf.upfronthosting.co.za>
In-reply-to
内容
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 interpreted as the length of the bytes, not a repeat count like for the other format characters; for example, '10s' means a single 10-byte string, while '10c' means 10 characters. "

I happen to think is could use a few more words of special explanation. Looking again, I think ", which defaults to 1" after the first 'count' above, would be sufficient. We nearly always docucument defaults.
历史
日期 用户 动作 参数
2011-07-07 01:44:03terry.reedy修改recipients: + terry.reedy, orsenthil
2011-07-07 01:44:03terry.reedy修改messageid: <1310003043.08.0.711986506428.issue11436@psf.upfronthosting.co.za>
2011-07-07 01:44:02terry.reedy链接issue11436 messages
2011-07-07 01:44:00terry.reedy创建