Martin Panter added the comment:
My guess is you could make it work by adding a __format__ method to your custom
class.
def __format__(self, format_spec):
return format(float(self), format_spec)
----------
nosy: +vadmium
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23479>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com