Christian Heimes schrieb:
Steven schrieb:
Speaking as one of those "some people", my position is that functions
created with lambda are first-class objects the same as everything else
in Python, and a rule that says "You must not assign a lambda to a
name, ever" would be a terrible rule.
PEP 8 is for the standard library and Python core only. You can write
your own code like you prefer. Nobody is going to enforce the PEP 8
style guide unless you write code for the stdlib.
Well, most sane people I know use it at least as a strong guideline for their
own code as well, so we should always consider the impact when changing PEP 8.
This specific case though is a good guideline to have.
Georg
--
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com