Message220521
I was already thinking of the same solution Christian.Tismer proposed before I reached his post. namedtuples seem cleaner if they naturally act as singletons, so (potentially whether or not pickling is involved) declaring a namedtuple with the same name and fields twice returns the same class. Removes the need to deal with module qualified names, and if pickle can be made to support it, the namedtuple class itself could be pickled uniquely in such a way that it could be recreated by someone else who didn't even have a local definition of the namedtuple, the module that defines it, etc. |
|
Date |
User |
Action |
Args |
2014-06-14 02:02:46 | josh.r | set | recipients:
+ josh.r, gvanrossum, barry, rhettinger, ncoghlan, eric.smith, eli.bendersky, BreamoreBoy, sbt, dilettant, Christian.Tismer |
2014-06-14 02:02:46 | josh.r | set | messageid: <1402711366.75.0.814922466033.issue17941@psf.upfronthosting.co.za> |
2014-06-14 02:02:46 | josh.r | link | issue17941 messages |
2014-06-14 02:02:46 | josh.r | create | |
|