<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 5: Special handling of private names</title><link href="https://sourceforge.net/p/python-mode/feature-requests/5/" rel="alternate"/><link href="https://sourceforge.net/p/python-mode/feature-requests/5/feed.atom" rel="self"/><id>https://sourceforge.net/p/python-mode/feature-requests/5/</id><updated>2005-09-14T09:32:46Z</updated><subtitle>Recent changes to 5: Special handling of private names</subtitle><entry><title>Special handling of private names</title><link href="https://sourceforge.net/p/python-mode/feature-requests/5/" rel="alternate"/><published>2005-09-14T09:32:46Z</published><updated>2005-09-14T09:32:46Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3216e4ee173eb5040560a401d8415a8f406c20d9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;At least for me, seeing code like&lt;/p&gt;
&lt;p&gt;class Foo:&lt;/p&gt;
&lt;p&gt;def __private(self):&lt;br /&gt;
frob()&lt;/p&gt;
&lt;p&gt;def another_method(self)&lt;/p&gt;
&lt;p&gt;class Bar:&lt;/p&gt;
&lt;p&gt;def __init__(self):&lt;br /&gt;
self.foo = Foo()&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;def some_method:&lt;br /&gt;
...&lt;br /&gt;
self.foo.__private(self.__frobval)&lt;/p&gt;
&lt;p&gt;looks ugly (I mean the part in some_method()). If&lt;br /&gt;
requested,&lt;br /&gt;
it would be more nice if two leading underscores were&lt;br /&gt;
not shown&lt;br /&gt;
in methods and vars, but they would be colored&lt;br /&gt;
differently. This wouldn't &lt;br /&gt;
need to be default, but rather taken into use by&lt;/p&gt;
&lt;p&gt;(setq py-mangle-private-names t&lt;br /&gt;
private-name-color "#0040fc")    ;; norwegian&lt;br /&gt;
blue :)&lt;/p&gt;
&lt;p&gt;edvard@majakari.net&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>