This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients ajaksu2, alanmcintyre, avalind, dtorp, ilan, jafo, mark.dickinson, phr, rhettinger
Date 2008-03-18.19:18:36
SpamBayes Score 0.17067288
Marked as misclassified No
Message-id <>
I prefer factorial as a method (like Ruby and Smalltalk).  Given the
usual notation (n!) or pronounciation (n factorial), it is natural to
write this as:  n.factorial().

Compared to  numbits() and isqrt(), a factorial() method is more basic
in that it is self explanatory and everyone knows what it means by the
time they are in middle school.

FWIW, if separate RFEs were opened for numbits() and isqrt(), I would
support their being int methods too.  Their implementations are helped
by access to the underlying representation, and a case could be made
that these no argument calls are just properties of the number (just
like the sign bit).
Date User Action Args
2008-03-18 19:18:38rhettingersetspambayes_score: 0.170673 -> 0.17067288
recipients: + rhettinger, jafo, phr, mark.dickinson, dtorp, alanmcintyre, ajaksu2, avalind, ilan
2008-03-18 19:18:37rhettingersetspambayes_score: 0.170673 -> 0.170673
messageid: <>
2008-03-18 19:18:37rhettingerlinkissue2138 messages
2008-03-18 19:18:36rhettingercreate