Creating instances of untrusted new-style classes

Ben Finney bignose+hates-spam at benfinney.id.au
Fri May 26 00:08:16 EDT 2006


"Devan L" <devlai at gmail.com> writes:

> Is there any safe way to create an instance of an untrusted class

Why are you instantiating classes you don't trust?

> without consulting the class in any way?

If you don't "consult the class", how can the instance be created
properly?

-- 
 \       "It's easy to play any musical instrument: all you have to do |
  `\       is touch the right key at the right time and the instrument |
_o__)                     will play itself."  -- Johann Sebastian Bach |
Ben Finney




More information about the Python-list mailing list