A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-January/076619.html below:

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

[Python-Dev] [python] Re: functions vs methods (was Re: trunc()) [Python-Dev] [python] Re: functions vs methods (was Re: trunc())Michael Foord fuzzyman at voidspace.org.uk
Tue Jan 29 00:28:50 CET 2008
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 at python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk




-- 
http://www.manning.com/foord
http://www.voidspace.org.uk
http://www.ironpython.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20080128/d0f11e64/attachment.htm 
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4