[Python-checkins] peps: Clarify some example code.

eric.snow python-checkins at python.org
Sat Jun 11 22:26:33 EDT 2016


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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /