Ticket #3058: Add 'hex' to the pretty package (and other thoughts)

Isaac Dupree ml at isaac.cedarswampstudios.org
Mon Mar 2 09:39:08 EST 2009


Thomas DuBuisson wrote:
> The only point that I exepect to be contended is it varies slightly from
> the surrounding functions in that it allows one to control the number of
> characters printed:
> > hex 5 31
>
> 0001f
>
> > hex 2 8
>
> 08
>
> > hex 3 7495
>
> d47

what about when it doesn't fit in the given number of characters? Show us the 
answer to:

hex 1 31

-Isaac



More information about the Libraries mailing list