[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Eric V. Smith
Eric V. Smith added the comment: Patch looks good at first glance. I'll review it some more today and commit it. Thanks! -- stage: needs patch -> commit review ___ Python tracker _

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Davide Rizzo
Davide Rizzo added the comment: Here's the patch. Same rationale as above (removed the special meaning of '\x00', default specified in parse_internal_render_format_spec). Sorry about the mess again! -- Added file: http://bugs.python.org/file22640/format00.patch __

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Davide Rizzo
Changes by Davide Rizzo : Removed file: http://bugs.python.org/file22639/format00.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Davide Rizzo
Davide Rizzo added the comment: Oops, sorry. Above patch was overly buggy. Please just ignore it. -- ___ Python tracker ___ ___ Pytho

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Davide Rizzo
Davide Rizzo added the comment: This patch removes the special meaning for \x00 and defines the default padding character (' ') in parse_internal_render_format_spec. Test included. Maybe the default padding character should be defined elsewhere? -- keywords: +patch nosy: +davide.rizzo

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Eric V. Smith
Eric V. Smith added the comment: \x00 is used as a flag internally meaning "use the default fill character". That's clearly a bug. I'll look at fixing it. I think there are other places in the built in __format__ functions where special values are used instead of flags. I'll review those as w

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eric.smith, ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue12546] str.format cannot fill with \x00 char

2011-07-12 Thread Gavin Andresen
New submission from Gavin Andresen : This gives me "foo " instead of expected "foo\x00\x00\x00" : "{0:\x00<6}".format('foo') -- components: Library (Lib) messages: 140225 nosy: Gavin.Andresen priority: normal severity: normal status: open title: str.format cannot fill with \x00 char t