1 Oct
2020
1 Oct
'20
5:28 a.m.
On 1/10/20 4:25 pm, David Mertz wrote:
In all the years I've used and taught namedtuples, I think I've never used the ._replace() method. The leading underscore is a hint that the method is "private"
Usually that would be true, but namedtuple is a special case. The docs make it clear that the underscore is there to prevent it from clashing with a potential field name, not to suggest privateness. -- Greg