On 26/06/20 2:45 am, Steele Farnsworth wrote:
Personally, I'd want to see mutator methods return `self` so you can do more than one mutation in a statement, but the convention is that all the mutator methods return `None`.
I would say the convention is that mutator methods don't return 'self'. That doesn't preclude them from returning some other useful value. -- Greg _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/HF5GGQ6WZD3RQ2J2H7AHZQPM24RH2YFT/ Code of Conduct: http://python.org/psf/codeofconduct/
