Oliver

Show:

What's happening?

  • Add __int__ and __float__ methods

    For calculating the data required for Google Maps, it would be handy to have these methods in the Ratio class. def __int__(self): return int(self.__float__()) def __float__(self): return float(self.num)/float(self.den) I am aware, that these methods causing rounding errors, but some kind of "transformation" is still handy in this class.

    2008-09-18 20:41:19 UTC in EXIF.py

About Me


Send me a message