xor on strings
dgallion1 at yahoo.com
Mon Feb 11 05:54:55 CET 2002
>>> from Numeric import *
Ok, not a builtin and maybe not all that fast.
But I just read the Numeric tutorial.
> maybe this isn't xor, but i would like something that will smush strings
> ... that is, something that would compare two strings position by position
> and return the higher (or lower i suppose) value piece in each position,
>>>> fun('00', 'AA')
>>>> fun('00', 'A')
>>>> fun('00', '')
> i understand that this is easy to write, but i was looking for a builtin.
> does it exist?
More information about the Python-list