Author petri.lehtinen
Recipients bethard, ezio.melotti, nailor, petri.lehtinen
Date 2012-10-29.19:39:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351539578.46.3.13636798315e-05.issue9351@psf.upfronthosting.co.za>
In-reply-to
Content
+        for key in vars(subnamespace):
+            setattr(namespace, key, getattr(subnamespace, key))

There might be even more clever ways to achieve this, but what about at least saying "for key, value in vars(subnamespace).items()", and then using the value accordingly, to avoid the getattr() call?
History
Date User Action Args
2012-10-29 19:39:38petri.lehtinensetrecipients: + petri.lehtinen, bethard, ezio.melotti, nailor
2012-10-29 19:39:38petri.lehtinensetmessageid: <1351539578.46.3.13636798315e-05.issue9351@psf.upfronthosting.co.za>
2012-10-29 19:39:38petri.lehtinenlinkissue9351 messages
2012-10-29 19:39:38petri.lehtinencreate