Message166142
Richard, yes, I think that would work, I didn't think of using f.__self__'s type.
You might want to replace
if self is not None and not isinstance(self, types.ModuleType):
with
if self is not None and not isinstance(self, types.ModuleType) \
and not isinstance(self, type):
to correctly raise an exception when called on a classmethod too. |
|
Date |
User |
Action |
Args |
2012-07-22 15:19:21 | mstefanro | set | recipients:
+ mstefanro, loewis, rhettinger, ncoghlan, alexandre.vassalotti, asvetlov, meador.inge, daniel.urban, sbt, yselivanov |
2012-07-22 15:19:21 | mstefanro | set | messageid: <1342970361.06.0.891042192289.issue15397@psf.upfronthosting.co.za> |
2012-07-22 15:19:20 | mstefanro | link | issue15397 messages |
2012-07-22 15:19:20 | mstefanro | create | |
|