[Python-ideas] constant/enum type in stdlib (original) (raw)
Michael Foord fuzzyman at gmail.com
Wed Jan 30 18:08:36 CET 2013
- Previous message: [Python-ideas] constant/enum type in stdlib
- Next message: [Python-ideas] constant/enum type in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 30 January 2013 16:56, Serhiy Storchaka <storchaka at gmail.com> wrote:
On 30.01.13 18:23, Antoine Pitrou wrote:
TypeFlag.HASGC | TypeFlag.INTSUBCLASS
6 I prefer something like >>> TypeFlag.HASGC | TypeFlag.INTSUBCLASS TypeFlag.HASGC|INTSUBCLASS
Indeed - the whole benefit (pretty much) of using an Enum class is that you're no longer dealing with raw ints.
Michael
_______** Python-ideas mailing list Python-ideas at python.org http://mail.python.org/**mailman/listinfo/python-ideas<http://mail.python.org/mailman/listinfo/python-ideas>
--
May you do good and not evil May you find forgiveness for yourself and forgive others May you share freely, never taking more than you give. -- the sqlite blessing http://www.sqlite.org/different.html -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130130/ef6001fa/attachment.html>
- Previous message: [Python-ideas] constant/enum type in stdlib
- Next message: [Python-ideas] constant/enum type in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]