<div>I just checked it myself to see what works and what doesn't. You're right that it doesn't work when putting '0x' in front of it. However, when I just do int('20', 16) it returns 32, which is correct.</div>
<div>&nbsp;</div>
<div>It is a bit weird though, that int(hex(20), 16) returns an error and I think that should be fixed. The problem is I can't fix it ;). But I'm sure someone of the IronPython team will find some time to look into this bug (I think it can be classified as a bug, can't it?) and fix it. I think it is important that this will be fixed, because, as you said, there's a lot of code written&nbsp;by people in Python which uses this feature,&nbsp;who might migrate to IronPython.
</div>
<div>&nbsp;</div>
<div>Floris<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/9/06, <b class="gmail_sendername">Sanghyeon Seo</b> &lt;<a href="mailto:sanxiyn@gmail.com">sanxiyn@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt;&gt;&gt; int('0x20', 16)<br>ValueError: invalid integer number literal<br><br>Same for long. Python library reference isn't clear on this point, but
<br>my reading doesn't support this misfeature since one can use radix 0<br>to the same effect. Anyway, there are codes out there depending on<br>this. :(<br><br>--<br>Seo Sanghyeon<br>_______________________________________________
<br>users mailing list<br><a href="mailto:users@lists.ironpython.com">users@lists.ironpython.com</a><br><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
</a><br></blockquote></div><br>