Edward C. Jones said: > Extend hex() and %x to work on longs, floats, and strings. Just FYI - Extending hex() (and oct()) to work with strings has been discussed in the past: <http://mail.python.org/pipermail/python-dev/2003-August/037855.html> Matthew Barnes