Zorthmaster / pynsource

Automatically exported from code.google.com/p/pynsource
0 stars 0 forks source link

import a second time doesn't update workspace classes #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import a file with classes
2. add some extra code methods to the class in the .py file
3. import the .py file again

What is the expected output? What do you see instead?

Expect classes to be updated with new methods.
Instead, only new classes which may have been created are added to the 
workspace.  The methods and attributes of existing classes are not updated to 
reflect the situation in the python file.

My initial reply to the User who asked for this:
 I've checked and the import of source code will scan for new classes in the file but unfortunately, will not amend existing classes with new attributes/methods.
  I can see how improving this behaviour would be good.
  I think the autolayout on import might be good to switch off sometimes too, to avoid mucking up existing layouts.

Original issue reported on code.google.com by abu...@gmail.com on 9 Oct 2013 at 4:36

GoogleCodeExporter commented 9 years ago

Original comment by abu...@gmail.com on 9 Oct 2013 at 4:38