Nick Coghlan wrote: > Would it be worthwhile to design a common rounding mechanism that can be used > to cleanly round values to the built in floating point type, as well as being > able to access the different rounding modes for decimal instances?
Sounds like a job for a new protocol, such as __round__(self, mode, places). -- Greg _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
