Le Thu, 25 Apr 2013 05:21:50 -0700, Eli Bendersky <eli...@gmail.com> a écrit : > > > > or: > > > > >>> Colors(1) > > <EnumValue: Colors.red [value=1]> > > > > > This syntax was considered initially but then rejected because it's > confusing, and there already exists a way to lookup by value > (Colors[1]).
Well, it works in latest flufl.enum. Is there a difference between the PEP and the implementation. Regards Antoine. _______________________________________________ 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/archive%40mail-archive.com