Re: Pasar string a valor

Jesus Cea <[email protected]> Wed, 05 May 2010 15:51:34 +0200
Newsgroups gmane.comp.python.general.castellano
Message-ID <[email protected]>
--===============2073213349==
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

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

On 05/05/10 15:49, Jesus Cea wrote:
> On 05/05/10 15:36, Arnau Sanchez wrote:
>> print math_eval("int(43 + sin(-pi/2))")
>> # 42
>> print math_eval("open('/etc/passwd').read()")
>> # NameError
>=20
> Bueno, como m=EDnimo puedes hacer un bucle infinito, colgando el progra=
ma.
>=20
> Y luego hay cosas curiosas como:

Tambi=E9n podr=EDas levantar una excepci=F3n cualquiera, interceptarla y
navegar por la pila a trav=E9s del traceback... lo que te da acceso a tod=
o.

> Por favor, movamos la discusi=F3n a la nueva lista. S=F3lo he comentado=
 aqu=ED
> porque la soluci=F3n propuesta no soluciona por completo el problema de
> seguridad. Cuidad=EDn.

Pues eso :).

- --=20
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
[email protected] - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:[email protected]         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"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.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBS+F35plgi5GaxT1NAQKygAP/ZgKgdmLTfkKeTIsVgA4Gzd11dbFuOa57
lvdOa9yBN/mYCJTwQspSZmCbZtvLZo8eFiTjaBpnezd8E/nzagfA8LOfWPc4sehy
bvBwSHtiUERTM7Y1fP9TAiVP7V6ow68z51qqS3inWH/bFDDrcz100+QlUjqunBmn
Bb0e32V3h+8=3D
=3D6pZL
-----END PGP SIGNATURE-----

--===============2073213349==
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

_______________________________________________
Lista de correo Python-es =

http://listas.aditel.org/listinfo/python-es
FAQ: http://listas.aditel.org/faqpyes
--===============2073213349==--