homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hinsen
Recipients
Date 2002年09月30日.13:36:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=11850
True. Would it be a security problem to use getattr inside a 
specialized constructor? For example,
def get_method(object, name):
 klass = object.__class__
 fn = getattr(klass, name)
 return new.instancemethod(fn, object, klass)
This would be difficult to abuse as a general getattr 
replacement, because new.instancemethod would fail in most 
cases other than the intended one.
History
Date User Action Args
2007年08月23日 16:02:13adminlinkissue558238 messages
2007年08月23日 16:02:13admincreate

AltStyle によって変換されたページ (->オリジナル) /