Clean Singleton Docstrings
Random832
random832 at fastmail.com
Sun Jul 17 04:08:21 EDT 2016
On Sun, Jul 17, 2016, at 03:51, Chris Angelico wrote:
> Currently yes, you can choose to use fractions.Fraction and pay the
> price. How, if you have a single type with different representations,
> can you make that choice?
Sorry, I forgot to answer your question. Though, your implicit claim
that it's impossible to make choices if your choices aren't represented
by different types is absurd.
For example, you could have a function that returns an inexact number
with the (approximately) same value as the given number.
More information about the Python-list
mailing list