Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2007-12-22 Thread Christian Tanzer
"Charles Merriam" <[EMAIL PROTECTED]> wrote: > I gave a talk last week that included Metaclasses. From what I've > read, there seems to be only one use case for metaclasses: go through > and play with the attributes when the class is created. A metaclass can define behavior for its classes. I'

Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2007-12-22 Thread Phillip J. Eby
At 10:30 PM 12/21/2007 -0800, Charles Merriam wrote: >Are there any other use cases? Yes, several. You haven't been reading the previous discussion threads, in which I've repeatedly posted other use cases for PEP 3115, every time someone else who hasn't read the previous posting of those use c

[Python-3000] XOR and NOT operator syntax

2007-12-22 Thread hashcollision
Currently, True or False works as expected, but True xor False is invalid. I don't see a reason why and, or, not are valid python keywords but xor is not. Can this be added in python 3.0 for completeness? Also, True & False, True | False, True ^ Fals, True != False works but !True, !False dosn't.

Re: [Python-3000] XOR and NOT operator syntax

2007-12-22 Thread Oleg Broytmann
On Sat, Dec 22, 2007 at 03:15:43PM -0500, hashcollision wrote: > Currently, > True or False > works as expected, but > True xor False > is invalid. I don't see a reason why and, or, not are valid python keywords > but xor is not. Can this be added in python 3.0 for completeness? > > Also, > True &

Re: [Python-3000] XOR and NOT operator syntax

2007-12-22 Thread Nick Coghlan
hashcollision wrote: > Currently, > True or False > works as expected, but > True xor False > is invalid. I don't see a reason why and, or, not are valid python > keywords but xor is not. Can this be added in python 3.0 for completeness? XOR can't be shortcircuited, so it doesn't gain from having

Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2007-12-22 Thread Charles Merriam
> > Yes, several. You haven't been reading the previous discussion > threads, in which I've repeatedly posted other use cases for PEP > 3115, every time someone else who hasn't read the previous posting of > those use cases, and tries to "simplify" the PEP. Other people have > posted a few as wel

Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2007-12-22 Thread Charles Merriam
Could you provide some more information? One can define behavior as simply as wrapping an indirection around each method of a class. I'd welcome pointers to the additional cases. Thank you, Charles On Dec 22, 2007 4:57 AM, Christian Tanzer <[EMAIL PROTECTED]> wrote: > > "Charles Merriam" <[

Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2007-12-22 Thread Phillip J. Eby
At 08:04 PM 12/22/2007 -0800, Charles Merriam wrote: > > > > Yes, several. You haven't been reading the previous discussion > > threads, in which I've repeatedly posted other use cases for PEP > > 3115, every time someone else who hasn't read the previous posting of > > those use cases, and tries