Defining a new base-type in Python based off Hexavigesimal

Peter Otten __peter__ at web.de
Wed Nov 30 11:00:55 EST 2011


Alec Taylor wrote:

> I have defined a new numbering structure for certain mathematical
> advantages.
> 
> How do I implement this in Python, or would I be better off writing
> this in C or C++?
> 
> Ultra concise definition: http://i42.tinypic.com/af7w4h.png
> LaTeX source: http://pastebin.tlhiv.org/Kf6jPRkI
> 
> Thanks for all suggestions,

I don't know if that helps you with your project but Python already 
understands some hexavigesimal:

>>> int("fool", 26)
280509





More information about the Python-list mailing list