79174288

Date: 2024-11-10 06:51:14
Score: 2.5
Natty:
Report link

i found the answer: if i Explicitly define the value of "c", like this, it will update.

parent.children = [Child(a=123, b="b", c=None), ...]

but if i just use the defualt none value of "c", it will not update, the original value will remain unchanged.

parent.children = [Child(a=123, b="b"), ...]

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user23855844