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 petri.lehtinen
Recipients asvetlov, chris.jerdonek, ezio.melotti, petri.lehtinen, r.david.murray, tuukka
Date 2012-10-29.19:38:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351539524.06.0.193908283058.issue15916@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
2014-04-14 16:20:27r.david.murrayunlinkissue15916 messages
2012-10-29 19:38:44petri.lehtinensetrecipients: + petri.lehtinen, ezio.melotti, r.david.murray, asvetlov, chris.jerdonek, tuukka
2012-10-29 19:38:44petri.lehtinensetmessageid: <1351539524.06.0.193908283058.issue15916@psf.upfronthosting.co.za>
2012-10-29 19:38:44petri.lehtinenlinkissue15916 messages
2012-10-29 19:38:43petri.lehtinencreate