Does Python need a semantics for and/or over generators ? was : 'xor' operator?
Boris Borcic
borcis at geneva-link.ch
Tue Apr 16 02:42:30 EDT 2002
More information about the Python-list mailing list
Tue Apr 16 02:42:30 EDT 2002
- Previous message (by thread): Does Python need a semantics for and/or over generators ? was : 'xor' operator?
- Next message (by thread): metaclass
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Grant Edwards wrote: > In article <3CBABA71.3040909 at geneva-link.ch>, Boris Borcic wrote: > > >>For the shortcut semantics, we'd like to have : >> a xor b >> >>behave exactly like : >> (not b and a) or (not a and b) >> > > I don't understand how that's a shortcut (assuming that means > the same thing as short-circuit). You have to evaluate both > operands of an xor operator. That's right, the shortcut is in confusing short-circuit semantics with returning operands when possible. In any case, my question was elsewhere as the renaming of the thread suggested. Boris Borcic -- python >>> assert 304 in 340343, "P424D15E M15M47CH E2202"
- Previous message (by thread): Does Python need a semantics for and/or over generators ? was : 'xor' operator?
- Next message (by thread): metaclass
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list