Issue 18800: Document Fraction's numerator and denominator properties (original) (raw)

Created on 2013-08-21 17:05 by icedream91, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
18800.patch orsenthil,2013-09-07 19:31 review
Messages (6)
msg195808 - (view) Author: (icedream91) Date: 2013-08-21 17:05
The document (http://docs.python.org/3/library/fractions.html) doesn't mention Fraction's numerator and denominator properties, I knew these properties from dir(). Since sometimes these two properties are very useful, for example: http://projecteuler.net/problem=33 and http://projecteuler.net/problem=57 , I think document should mention them. Thanks.
msg196279 - (view) Author: Madison May (madison.may) * Date: 2013-08-27 12:23
The docs page does mention, however, that Fraction inherits from numbers.Rational, and links to that page (http://docs.python.org/2/library/numbers.html#numbers.Rational). There the properties 'numerator' and 'denominator' are clearly documented. Perhaps its still worth it to mention those properties on the Fraction docs page though, or to include them in one of the examples.
msg197180 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2013-09-07 19:31
How does this simple patch sound?
msg197344 - (view) Author: Madison May (madison.may) * Date: 2013-09-09 00:57
Simple and to the point. Sounds good to me...
msg197418 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-09-10 02:58
New changeset fe5c03fb0ff6 by Senthil Kumaran in branch '3.3': Document Fraction's numerator and denominator properties. http://hg.python.org/cpython/rev/fe5c03fb0ff6 New changeset 5fb700ca3fd5 by Senthil Kumaran in branch 'default': merge from 3.3 http://hg.python.org/cpython/rev/5fb700ca3fd5
msg197419 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2013-09-10 02:59
Fixed in applicable versions 3.3 and 3.4.
History
Date User Action Args
2022-04-11 14:57:49 admin set github: 63000
2013-09-10 02:59:58 orsenthil set status: open -> closedversions: - Python 2.7messages: + resolution: fixedstage: needs patch -> resolved
2013-09-10 02:58:28 python-dev set nosy: + python-devmessages: +
2013-09-09 00:57:50 madison.may set messages: +
2013-09-07 19:31:43 orsenthil set files: + 18800.patchnosy: + orsenthilmessages: + keywords: + patch
2013-08-27 12:23:59 madison.may set nosy: + madison.maymessages: +
2013-08-23 20:13:29 ezio.melotti set nosy: + ezio.melotti
2013-08-22 14:04:14 serhiy.storchaka set keywords: + easynosy: + rhettinger, mark.dickinsonstage: needs patchversions: + Python 2.7, Python 3.4
2013-08-22 13:40:53 belopolsky set nosy: + belopolsky
2013-08-21 17:05:46 icedream91 create