#5 Special handling of private names

open
nobody
None
5
2005-09-14
2005-09-14
Anonymous
No

At least for me, seeing code like

class Foo:

def __private(self):
frob()

def another_method(self)

class Bar:

def __init__(self):
self.foo = Foo()

...

def some_method:
...
self.foo.__private(self.__frobval)

looks ugly (I mean the part in some_method()). If
requested,
it would be more nice if two leading underscores were
not shown
in methods and vars, but they would be colored
differently. This wouldn't
need to be default, but rather taken into use by

(setq py-mangle-private-names t
private-name-color "#0040fc") ;; norwegian
blue :)

edvard@majakari.net

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks