"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'
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
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.
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 &
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
>
> 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
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" <[
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