[Python-Dev] PEP 8 modernisation (original) (raw)
Ronald Oussoren ronaldoussoren at mac.com
Thu Aug 1 16:41:46 CEST 2013
- Previous message: [Python-Dev] PEP 8 modernisation
- Next message: [Python-Dev] PEP 8 modernisation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 1 Aug, 2013, at 16:34, Alexander Shorin <kxepal at gmail.com> wrote:
Hi Nick,
On Thu, Aug 1, 2013 at 4:44 PM, Nick Coghlan <ncoghlan at gmail.com> wrote: 9. Explicit guideline not to assign lambdas to names (use def, that's what it's for) Even for propose to fit chars-per-line limit and/or to remove duplicates (especially for sorted groupby case)?
When you do "name = lambda ..." you've created a named function, when you do that your better of using def statement for the reasons Nick mentioned in the PEP.
Ronald
-- ,,,^..^,,,
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/ronaldoussoren%40mac.com
- Previous message: [Python-Dev] PEP 8 modernisation
- Next message: [Python-Dev] PEP 8 modernisation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]