Showing content from http://mail.python.org/pipermail/python-dev/attachments/20080128/d0f11e64/attachment.htm below:
Raymond Hettinger wrote:
<blockquote cite="mid:20080128181926.AFW43829@ms19.lnh.mail.rcn.net" type="cite">[snip..]
<pre>P.S. One place to attach the constants is to the function object, so we would write:<br> <br> x = round(3.1) # ROUND_TO_EVEN<br> x = round(3.1, round.CEIL)<br> . . .<br></pre>
</blockquote>
<br>
Or Python could gain a first class enumeration structure, a type which has proved useful in other languages. ;-)<br>
<br>
Michael Foord<br>
<br>
<blockquote cite="mid:20080128181926.AFW43829@ms19.lnh.mail.rcn.net" type="cite">
<pre>_______________________________________________<br>Python-Dev mailing list<br><a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk">http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk</a><br><br></pre>
</blockquote>
<br>
<br clear="all"><br>-- <br><a href="http://www.manning.com/foord">http://www.manning.com/foord</a><br><a href="http://www.voidspace.org.uk">http://www.voidspace.org.uk</a><br><a href="http://www.ironpython.info">http://www.ironpython.info</a>
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