On 17 May 2014 19:56, "Antoine Pitrou" <solip...@pitrou.net> wrote:
>
> On Sat, 17 May 2014 15:14:00 +1000
> Nick Coghlan <ncogh...@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?)

A new entry in https://docs.python.org/3/faq/design.html may be a
reasonable option.

It's not like it comes up *that* often, and as Nathaniel pointed out, the
main advantage of writing it down somewhere is to be able to link to it in
the future.

Cheers,
Nick.

>
> Regards
>
> Antoine.
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to