<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 5: better indentation for lambda bodies</title><link href="https://sourceforge.net/p/python-mode/bugs/5/" rel="alternate"/><link href="https://sourceforge.net/p/python-mode/bugs/5/feed.atom" rel="self"/><id>https://sourceforge.net/p/python-mode/bugs/5/</id><updated>2003-09-26T20:37:27Z</updated><subtitle>Recent changes to 5: better indentation for lambda bodies</subtitle><entry><title>better indentation for lambda bodies</title><link href="https://sourceforge.net/p/python-mode/bugs/5/" rel="alternate"/><published>2003-09-26T20:37:27Z</published><updated>2003-09-26T20:37:27Z</updated><author><name>Matthias Klose</name><uri>https://sourceforge.net/u/doko/</uri></author><id>https://sourceforge.nete2908de77077eebd03d5f2f39003a5557a1204dd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;[forwarded from &lt;a href="http://bugs.debian.org/208303\" rel="nofollow"&gt;http://bugs.debian.org/208303\&lt;/a&gt;]&lt;/p&gt;
&lt;p&gt;Currently, if you place the body of a lambda on the&lt;br /&gt;
next line (to&lt;br /&gt;
curb rightward drift), the Emacs Python mode indents it&lt;br /&gt;
like this:&lt;/p&gt;
&lt;p&gt;...&lt;br /&gt;
lambda x:&lt;br /&gt;
body_of_lambda()&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;In keeping with Lisp traditions, and to improve&lt;br /&gt;
readability, I suggest&lt;br /&gt;
a small amount of indentation for the lambda body, eg:&lt;/p&gt;
&lt;p&gt;lambda x:&lt;br /&gt;
body_of_lambda()&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;lambda x:&lt;br /&gt;
body_of_lambda()&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>