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. -- https://mail.python.org/mailman/listinfo/python-list