3 ms·
Your example with Point() is exactly what I said was a good use case, for apparently the same reasons why I said it was a good use case. I said "'namedtuple' h
by eesmith 9y ago
Your example with Point() is exactly what I said was a good use case, for apparently the same reasons why I said it was a good use case.
I said "'namedtuple' has one good use - migration from a tuple object to a real object while allowing backwards compatability to the tuple API. ... It's also fine if it will only be used by code where you have full control over its use and can either prevent inappropriate API use ... Otherwise, don't use it."
You replied "Only if one is misusing namedtuple".
I interpreted this as an objection to my use guidelines. From what I can tell, you are in complete agreement with me.