[Python-checkins] peps: Clarify PEP 8 point about preferring def statements

nick.coghlan python-checkins at python.org
Fri Aug 8 13:07:57 CEST 2014


http://hg.python.org/peps/rev/0cf5442ec2a9
changeset:   5515:0cf5442ec2a9
user:        Nick Coghlan <ncoghlan at gmail.com>
date:        Fri Aug 08 21:07:46 2014 +1000
summary:
  Clarify PEP 8 point about preferring def statements

files:
  pep-0008.txt |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/pep-0008.txt b/pep-0008.txt
--- a/pep-0008.txt
+++ b/pep-0008.txt
@@ -948,7 +948,7 @@
   that confusion doesn't arise in other contexts.
 
 - Always use a def statement instead of an assignment statement that binds
-  a lambda expression directly to a name.
+  a lambda expression directly to an identifier.
 
   Yes::
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list