<div dir="ltr"><div><div><br></div>Hi all,<br><br></div>Is there any particularly reason for the following behavior on both 2.7.6 and 3.4.0 ?<br><br><div><div><div><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
>>> "{:\x00<5}".format(2)<br>'2 '<br>>>> "{:\x20<5}".format(2) <br>'2 '<br>
>>> "{:\x01<5}".format(2) <br>'2\x01\x01\x01\x01'<br>>>> "{:\x00<5}".format(2) == "{:\x20<5}".format(2) <br>
True<br></blockquote><div><br></div><div>The docs say "If a valid <em>align</em> value is specified, it can be preceded by a <em>fill</em>
character that can be any character and defaults to a space if omitted," so I'm inclined to call this a good old fashioned bug.<br></div><div> </div>-- <br><div dir="ltr"><span><font color="#888888">John Tyree<br>
Scientific Software Developer<br>Enthought, Inc.</font></span><span><font color="#888888"><span></span><br><span><a title="Call"></a></span><a href="http://www.enthought.com" target="_blank">www.enthought.com</a></font></span></div>
</div></div></div></div></div>