Message53548
| 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:13 | admin | link | issue558238 messages |
| 2007年08月23日 16:02:13 | admin | create |
|