On Monday 23 February 2009 03:50:57 pm tav wrote:
> Hey all,
>
> As an attempt to convince Python-Dev of the merits of a
> functions-based approach to security in Python, I've come up with a
> simple challenge.
>

While I'm almost excited that you are tackling the problem of python's 
security, I find that your approach seems to break too many things:

---
 >>> from safelite import FileReader
 >>> import numeric
 >>> print numeric
 None
 >>> import i_hope_this_doesnt_exists
 >>> print i_hope_this_doesnt_exists
 None
---

Versus:
---
 >>> import django
 >>> print django
 <module 'django' from '/usr/lib/python2.5/site-packages/django/__init__.pyc'>
 >>> import i_hope_this_doesnt_exists
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 ImportError: No module named i_hope_this_doesnt_exists
---

ipython also gets broken after the import (nothing works after the import).

Still, it seems interesting... 

-- 
Luis Zarrabeitia (aka Kyrie)
Fac. de Matemática y Computación, UH.
http://profesores.matcom.uh.cu/~kyrie
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to