Super class methods presentation
Hello,
I'd like to propose enhancement to presentation and overriding methods of super classes.
Let's take this simple code:
class First(object):
def method_one(self):
pass
class Second(First):
pass
I'd love to see some kind of icon on the left of editor (like + and - to fold/unfold class code) that would show me all super classes methods, let's say grayed, as a code at the beginning of Second class.
class First(object):
def method_one(self):
pass
class Second(First):
def method_one(self):
pass
pass
Now, providing any entry on method_one would do the same as Generate.../Override Methods feature. To make it less space consuming, super class methods should show up folded, with possibility to unfold to see whole code.
Methods should also be grouped by super classes from which they come:
class First(object):
def method_one(self):
pass
class Second(First):
object
def __init__(self):
...
def and_so_on(self):
...
First
def method_one(self):
...
pass
In my opinion it could provide nice form of methods presentation, and quick and easy way to override them. Could be particularly useful on CBV in Django, where multiple, user created super classes are being used.
I'd like to propose enhancement to presentation and overriding methods of super classes.
Let's take this simple code:
class First(object):
def method_one(self):
pass
class Second(First):
pass
I'd love to see some kind of icon on the left of editor (like + and - to fold/unfold class code) that would show me all super classes methods, let's say grayed, as a code at the beginning of Second class.
class First(object):
def method_one(self):
pass
class Second(First):
def method_one(self):
pass
pass
Now, providing any entry on method_one would do the same as Generate.../Override Methods feature. To make it less space consuming, super class methods should show up folded, with possibility to unfold to see whole code.
Methods should also be grouped by super classes from which they come:
class First(object):
def method_one(self):
pass
class Second(First):
object
def __init__(self):
...
def and_so_on(self):
...
First
def method_one(self):
...
pass
In my opinion it could provide nice form of methods presentation, and quick and easy way to override them. Could be particularly useful on CBV in Django, where multiple, user created super classes are being used.
Please sign in to leave a comment.