Clarify some example code.

This commit is contained in:
Eric Snow 2016-06-11 20:24:35 -06:00
parent 3fbf62a658
commit 7437a8b0de
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,8 @@ default behavior::
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.