https://hg.python.org/peps/rev/eeda48b6daf3 changeset: 6370:eeda48b6daf3 user: Eric Snow <ericsnowcurrently at gmail.com> date: Sat Jun 11 20:24:35 2016 -0600 summary: Clarify some example code. files: pep-0520.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pep-0520.txt b/pep-0520.txt --- a/pep-0520.txt +++ b/pep-0520.txt @@ -85,8 +85,8 @@ ham = None eggs = 5 __definition_order__ = tuple(k for k in locals() - if (not k.startswith('__') or - not k.endswith('__'))) + if not (k.startswith('__') and + k.endswith('__'))) Note that [pep487_] proposes a similar solution, albeit as part of a broader proposal. -- Repository URL: https://hg.python.org/peps