hexidecimal output as default?

Jürgen Hermann jhe at webde-ag.de
Tue Jul 18 08:37:41 EDT 2000


<mkrisch at netscape.net.bbs@openbazaar.net> schrieb im Newsbeitrag
news:3bRZA7$j9m at openbazaar.net...
> what i really want is to get the following:
>
> >>> i = 0xa
> >>> i
> 0xa

Then write a HexInt class that overloads __str__ and __repr__, and use i =
HexInt(0xa). I see no other way.





More information about the Python-list mailing list