[pyar] Int anti-intuitivo
Sebastian Bassi
sbassi en clubdelarazon.org
Lun Nov 15 00:31:01 ART 2010
>>> int(2)
2
>>> int(2.1)
2
>>> int("2")
2
>>> int("2.1")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '2.1'
Hubiese esperado que me devuelva 2.
--
Sebastián Bassi. Lic. en Biotecnologia.
Curso de Python en un día: http://bit.ly/cursopython
Non standard disclaimer: READ CAREFULLY. By reading this email,
you agree, on behalf of your employer, to release me from all
obligations and waivers arising from any and all NON-NEGOTIATED
agreements, licenses, terms-of-service, shrinkwrap, clickwrap,
browsewrap, confidentiality, non-disclosure, non-compete and
acceptable use policies ("BOGUS AGREEMENTS") that I have
entered into with your employer, its partners, licensors, agents and
assigns, in perpetuity, without prejudice to my ongoing rights and
privileges. You further represent that you have the authority to release
me from any BOGUS AGREEMENTS on behalf of your employer
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20101115/95caa9ea/attachment.html>
More information about the pyar
mailing list