[Python-ideas] List Revolution
Massimo Di Pierro
massimo.dipierro at gmail.com
Mon Sep 12 01:37:32 CEST 2011
So you are saying that with my code (which was meant as joke not as serious proposal) you can do
a = List()
getattr(a,'(2**1024)**(2**1024)')
and that is a vulnerability? But you can already do
a = []
a[(2**1024)**(2**1024)]
or simply
(2**1024)**(2**1024)
The ability write insane code is not a vulnerability. It is a feature. Exposing that to users may constitute a vulnerability.
Massimo
On Sep 11, 2011, at 5:46 AM, Dag Odenhall wrote:
> On Sat, 2011-09-10 at 12:48 -0500, Massimo Di Pierro wrote:
>> remember name is an attribute. It cannot contain special symbols (*) by definition. There is no way you can build "**".
>
> Perfectly possible with getattr().
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
More information about the Python-ideas
mailing list