[Python-ideas] constant/enum type in stdlib

Michael Foord fuzzyman at gmail.com
Wed Jan 30 18:08:36 CET 2013


On 30 January 2013 16:56, Serhiy Storchaka <storchaka at gmail.com> wrote:
> On 30.01.13 18:23, Antoine Pitrou wrote:
>>> TypeFlag.HAS_GC | TypeFlag.INT_SUBCLASS
>>>>>>>>> 6
>>>> I prefer something like
>> >>> TypeFlag.HAS_GC | TypeFlag.INT_SUBCLASS
> TypeFlag.HAS_GC|INT_SUBCLASS
>>
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>
>
-- 
http://www.voidspace.org.uk/
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>


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /