What's the shortest way to copy all despite of one attribute/field from one to another namedtuple? It's possible to do it like follows.
initial_person = Person(name='Bob', age=30, gender='male')
new_age = 31
modified_person = Person(name=initial_person.name,
age=new_age,
gender=initial_person.gender,
)
However I have a lot more fields and would prefer a shorter implementation. This question is related to Python: Copying named tuples with same attributes / fields.