[Python-3000] Reminder: Py3k PEPs due by April
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Apr 11 02:38:03 CEST 2007
Phillip J. Eby wrote:
> The __subclasses__ method is useful -- even more so in 3.x than in 2.x,
> because in 3.x there are no classic classes.
For security purposes, I think it would be better to
adopt a principle that it shouldn't be possible to
do anything dangerous merely by instantiating a
class (e.g. open() opens files, but file() doesn't).
Then __subclasses__ would be harmless.
--
Greg
More information about the Python-3000
mailing list