pynsource icon indicating copy to clipboard operation
pynsource copied to clipboard

Add parameters to method definitions

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

What steps will reproduce the problem?
1. Create test.py
class Test(object):
        def __init__(self):
                pass

        def big_universe(self, why_not, agree=False):
                if agree:
                        print "Agreed!"

def testing(hello_str):
        print 'This works', hello_str*3

if __name__ == '__main__':
        Test().big_universe('hello world', agree=True)
        testing('!')

2. Run pynsource -> File -> Import python code -> test.py


What is the expected output? What do you see instead?
Expected 1: "big_universe(self, why_not, agree=False)" in class Test with 
method parameters and default values
Shown 1: "big_universe" in class Test without method parameters
Expected 2: A plain white color
Shown 2: A mild blueish background color

What version of the product are you using? On what operating system?
1.61-src.zip / Ubuntu
1.61-macosx / Lion

Please provide any additional information below.
PyNSource is great! It would be relatively easy to go over a small project 
using class diagrams that contain method parameters and its defaults if any. 
Ability to toggle this and the background color would be great. 

Original issue reported on code.google.com by [email protected] on 13 Dec 2012 at 6:55

GoogleCodeExporter avatar Mar 15 '15 07:03 GoogleCodeExporter

Adding parameters to method definitions - I will consider this.

abulka avatar Jan 15 '19 21:01 abulka