Coste de len() en strings

Jesus Cea jcea en argo.es
Mie Mar 1 22:03:46 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Cesar Ortiz wrote:
> Detalle sobre timeit. Está disponible a partir de Python 2.3.

Para versiones anteriores, o cuando no nos queramos preocupar del asunto:

import time
t=time.time()
... operaciones que queremos cronometrar ...
print time.time()-t

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea en argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
                                      _/_/    _/_/          _/_/_/_/_/
PGP Key Available at KeyServ   _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRAYMMplgi5GaxT1NAQLrlgP6A5lwIewms1DjbsI3u4ddp1mB7sqpEDgu
GHGfmExvdEZsB2TiJfH6E04JgqCYFuDoDSGendCbPVWFdAa+vNH2wlnDHPNd0vl5
KrBgk88opFhceuwroptkmlJmsi8+yypj2ZnpClNab559qPr489RpfTMGg0cReRJ0
FpVFXKtKSng=
=Ki/P
-----END PGP SIGNATURE-----
------------ próxima parte ------------
_______________________________________________
Python-es mailing list
Python-es en aditel.org
http://listas.aditel.org/listinfo/python-es


Más información sobre la lista de distribución Python-es