[EMAIL PROTECTED] wrote: > Ovviamente non sono a conoscenza di un altro modo per effettuare lo > xor tra byte di dati, ma mi sembra che il tempo richiesto per le > operazioni sia effettivamente troppo alto (perfino java è più veloce). > > Secondo voi come potrei risolvere? >
Qualcosa tipo... Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> >>> import Numeric >>> >>> a = Numeric.array("abcdefghi", typecode=Numeric.UnsignedInt8) >>> b = Numeric.array("jklmnolpq", typecode=Numeric.UnsignedInt8) >>> >>> print a ^ b [11 9 15 9 11 9 11 24 24] >>> _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python