Message174147
+ 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? |
|
Date |
User |
Action |
Args |
2012-10-29 19:39:38 | petri.lehtinen | set | recipients:
+ petri.lehtinen, bethard, ezio.melotti, nailor |
2012-10-29 19:39:38 | petri.lehtinen | set | messageid: <1351539578.46.3.13636798315e-05.issue9351@psf.upfronthosting.co.za> |
2012-10-29 19:39:38 | petri.lehtinen | link | issue9351 messages |
2012-10-29 19:39:38 | petri.lehtinen | create | |
|