So clearly the ree expectation is that they compare equal (if the values
are).
On Apr 13, 2013 11:24 AM, "Scott Dial"
wrote:
> On 4/12/2013 10:51 PM, Steven D'Aprano wrote:
> > And two examples from asm-generic/errno.h:
> >
> > #define EWOULDBLOCK EAGAIN /* Operation would block */
> > #defi
Ian Cordasco writes:
> Are you concerned about the evolution of various code checkers?
> Do you have questions or suggestions?
>
> Subscribe here:
> http://mail.python.org/mailman/listinfo/code-quality
Now available via Gmane also
http://dir.gmane.org/gmane.comp.python.code-quality>.
Thanks guy
On 4/12/2013 10:51 PM, Steven D'Aprano wrote:
> And two examples from asm-generic/errno.h:
>
> #define EWOULDBLOCK EAGAIN /* Operation would block */
> #define EDEADLOCK EDEADLK
>
That's actually even better of an example than you may have realized
because historically EWOULDBLOCK !=
On Sat, Apr 13, 2013 at 6:30 AM, Ben Finney wrote:
> "Stephen J. Turnbull" writes:
>
>> Mark Lawrence writes:
>>
>> > People already use the bug tracker as an excuse not to contribute,
>> > wouldn't this requirement make the situation worse?
>>
>> A failure to sign the CLA is already a decision
[Eli]
>> It is applicable, in the sense that os.O_CREAT etc can be IntEnum values.
>> Their bitset operation results will be simple integers. It's not planned to
>> add a special enum for this - this was ruled against during the Pycon
>> discussions.
On Sat, Apr 13, 2013 at 7:30 AM, Serhiy Storcha
On 13.04.13 03:13, Glenn Linderman wrote:
On 4/12/2013 3:59 PM, Guido van Rossum wrote:
class Insect(Enum):
wasp = 1
bee = 1
ant = 2
We'd have Insect.wasp == Insect.bee < Insect.ant but Insect.wasp is
not Insect.bee.
can't define two names in the same enum to have the same valu
On 13.04.13 15:43, Eli Bendersky wrote:
On Sat, Apr 13, 2013 at 1:31 AM, Serhiy Storchaka wrote:
On 12.04.13 15:55, Eli Bendersky wrote:
There is some ambiguity in the term "enumeration values". On the one hand,
it's the singleton instances of the enumeration class (Colors.red,
Colors.gree, C
On Sat, Apr 13, 2013 at 7:25 AM, Eli Bendersky wrote:
> Test case?
>
>
Ugh, sorry. I missed it. Ignore my previous email please.
Eli
>
> On Sat, Apr 13, 2013 at 7:19 AM, mark.dickinson <
> python-check...@python.org> wrote:
>
>> http://hg.python.org/cpython/rev/d5e5017309b1
>> changeset: 83
Test case?
On Sat, Apr 13, 2013 at 7:19 AM, mark.dickinson
wrote:
> http://hg.python.org/cpython/rev/d5e5017309b1
> changeset: 83283:d5e5017309b1
> branch: 2.7
> user:Mark Dickinson
> date:Sat Apr 13 15:19:05 2013 +0100
> summary:
> Issue #16447: Fix potential segfault
2013/4/13 Eli Bendersky :
> Test case?
I see one.
>
>
> On Sat, Apr 13, 2013 at 7:19 AM, mark.dickinson
> wrote:
>>
>> http://hg.python.org/cpython/rev/d5e5017309b1
>> changeset: 83283:d5e5017309b1
>> branch: 2.7
>> user:Mark Dickinson
>> date:Sat Apr 13 15:19:05 2013 +01
On Sat, Apr 13, 2013 at 6:43 AM, Lennart Regebro wrote:
> OK, so I finally got tie to read the PEP. I like it, I really have
> missed Enums, this is awesome.
>
> That's all folks!
>
> //Lennart
>
More of these kinds of comments ;-) Thanks, Lennart.
__
OK, so I finally got tie to read the PEP. I like it, I really have
missed Enums, this is awesome.
That's all folks!
//Lennart
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.
On Sat, Apr 13, 2013 at 1:31 AM, Serhiy Storchaka wrote:
> On 12.04.13 15:55, Eli Bendersky wrote:
>
>> The enumeration value names are available through the class members::
>>
>> >>> for member in Colors.__members__:
>> ... print(member)
>> red
>> green
>> blue
>>
>
>
"Stephen J. Turnbull" writes:
> Mark Lawrence writes:
>
> > People already use the bug tracker as an excuse not to contribute,
> > wouldn't this requirement make the situation worse?
>
> A failure to sign the CLA is already a decision not to contribute to
> the distribution
As someone who can
On 12.04.13 15:55, Eli Bendersky wrote:
The enumeration value names are available through the class members::
>>> for member in Colors.__members__:
... print(member)
red
green
blue
This is unnecessary because enumerations are iterable.
Colors.__members__ is equal
15 matches
Mail list logo