Re: [Python-Dev] [python] Re: functions vs methods (was Re: trunc())

Jan. 29, 2008
6:28 a.m.
Raymond Hettinger wrote: [snip..] P.S. One place to attach the constants is to the function object, so we would write: x = round(3.1) # ROUND_TO_EVEN x = round(3.1, round.CEIL) . . . Or Python could gain a first class enumeration structure, a type which has proved useful in other languages. ;-) Michael Foord _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.u... -- http://www.manning.com/foord http://www.voidspace.org.uk http://www.ironpython.info
6258
Age (days ago)
6258
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Foord