News for hackers. Stuff that matters.
Re:Python Number Conversion Chart by niggler on Saturday April 20, 2013 @11:23AM (#5581653)
Direct link https://gist.github.com/Nurdok/4096182

'oct' should also be added:

    >>> oct(45)
    '055'
One caveat: Python doesn't assume the leading '0' indicates that the number is octal, so you must specify radix 8:

    >>> int('055', 8)
    45
Re:Python Number Conversion Chart by Dylan16807 on Sunday April 21, 2013 @12:51PM (#5585399)
I would rather call that cause to celebrate than a caveat. The design of octal literals in C is ridiculous.

In fact you almost can't write a program without using them inadvertently. :)

Re:Python Number Conversion Chart by dandellion on Saturday April 20, 2013 @11:30AM (#5581682)
Wouldn't it be better to comment on the direct link, where the author is more likely to see it?
Re:Python Number Conversion Chart by niggler on Saturday April 20, 2013 @11:36AM (#5581703)
Valid point, comment submitted. I assumed the author submitted this to HN in the first place