Method or function?

Rob Hooft rob at hooft.net
Fri Nov 3 04:27:31 EST 2000


>>>>> "CC" == Cliff Crawford <cjc26 at nospam.cornell.edu> writes:

 CC> some of the functions on your list, like abs, only apply to
 CC> numbers; do you really want to write (-4).abs() instead? ;)

Not to mention the problems with -4.abs() and -4.0.abs() [the method
should bind tighter than the unary minus?] [Does this parse?]

Rob


-- 
=====   rob at hooft.net          http://www.hooft.net/people/rob/  =====
=====   R&D, Nonius BV, Delft  http://www.nonius.nl/             =====
===== PGPid 0xFA19277D ========================== Use Linux! =========



More information about the Python-list mailing list