Message228661
I don't think this is a good idea. Remember that Python classes are themselves mutable objects, so if a library that you happen to import creates a "Point" namedtuple with fields "x" and "y" and class-level modifications (extra attributes, patched-in methods), any namedtuple you created with fields "x" and "y" would automatically pick up those modifications. (And conversely, by modifying *your* class, you might adversely affect the behaviour of the library's class.) |
|
Date |
User |
Action |
Args |
2014-10-06 11:37:02 | mark.dickinson | set | recipients:
+ mark.dickinson, fhaxbox66@googlemail.com |
2014-10-06 11:37:02 | mark.dickinson | set | messageid: <1412595422.59.0.895582379264.issue22562@psf.upfronthosting.co.za> |
2014-10-06 11:37:02 | mark.dickinson | link | issue22562 messages |
2014-10-06 11:37:02 | mark.dickinson | create | |
|