Why can't I xor strings?
Brian Quinlan
brian at sweetapp.com
Mon Oct 11 10:35:28 EDT 2004
More information about the Python-list mailing list
Mon Oct 11 10:35:28 EDT 2004
- Previous message (by thread): Why can't I xor strings?
- Next message (by thread): Why can't I xor strings?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Grant Edwards wrote: >>One of the greatest sources of usefulness for 'and' and 'or' is exactly >>that these operators _don't_ coerce their operands > > > Surely they must coerce the operands for the "test" part if not > for the "return" part. Is calling a method cosidered coercing? The "test" part must call the object's __nonzero__ method but no Python boolean object is ever created. Cheers, Brian
- Previous message (by thread): Why can't I xor strings?
- Next message (by thread): Why can't I xor strings?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list