A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-May/134597.html below:

[Python-Dev] Returning None from methods that mutate object state

[Python-Dev] Returning None from methods that mutate object state [Python-Dev] Returning None from methods that mutate object stateAntoine Pitrou solipsis at pitrou.net
Sat May 17 11:55:12 CEST 2014
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.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4