On 05/08/13 16:49, Amit Saha wrote:
Ah, better yet! Thanks! But where could I have found that in
<http://docs.python.org/3/library/fractions.html#module-fractions>?
Sometimes, you may also want to do dir() on an object to see what
attributes/methods it has/supports.
Also
>>> help(fractions.Fraction)
yields lots of details including the following:
...
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
|
| numerator
|
HTH
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor