[Python-Dev] Returning None from methods that mutate object state
Antoine Pitrou
solipsis at pitrou.net
Sat May 17 11:55:12 CEST 2014
More information about the Python-Dev mailing list
Sat May 17 11:55:12 CEST 2014
- Previous message: [Python-Dev] Returning None from methods that mutate object state
- Next message: [Python-Dev] Returning None from methods that mutate object state
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 17 May 2014 15:14:00 +1000 Nick Coghlan <ncoghlan at gmail.com> wrote: > During a conversation today, I realised that the convention of > returning None from methods that change an object's state isn't > captured the Programming Recommendations section of PEP 8. This is more an API design guideline than a programming recommandation, IMO. If we start putting those in PEP 8, it will end up bloating the PEP. (perhaps we need another PEP?) Regards Antoine.
- Previous message: [Python-Dev] Returning None from methods that mutate object state
- Next message: [Python-Dev] Returning None from methods that mutate object state
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list