[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Changes by Matthew : Removed file: http://bugs.python.org/file14077/modBasics.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Changes by Matthew : Removed file: http://bugs.python.org/file14076/modDataObjects.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Changes by Matthew : Removed file: http://bugs.python.org/file14075/WallWithDoors.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Changes by Matthew : Removed file: http://bugs.python.org/file14074/MyWalls.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Matthew added the comment: OK, sorry for the rambling, just ignore it Cheers... -- ___ Python tracker ___ ___ Python-bugs-lis

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Matthew added the comment: So why is it able to create instances and add them to the lstFeatureVariables list, surely it should go wrong there and not allow the instances to be created. -- ___ Python tracker __

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It's a typo :-) In WallWithDoors.py, line 146: cTempVariable = ClsFeatureVariable You forgot the () at the end... -- ___ Python tracker __

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Matthew added the comment: If you want to run it I'm afraid you'll have to: 1) install Blender (www.blender.org) 2) put all those files in C:\Program Files\Blender Foundation\Blender\.blender\scripts\MyWalls\src\ 3) in the Blender application goto scripts ---> Objects ---> Build Walls Then look

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Matthew added the comment: Forth and final file... Just a little error handling and stuff I want all my classes to inherit -- Added file: http://bugs.python.org/file14077/modBasics.py ___ Python tracker __

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Matthew added the comment: Third file... all the classes for holding the data -- Added file: http://bugs.python.org/file14076/modDataObjects.py ___ Python tracker ___ __

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Matthew added the comment: Second file The loads of code for building a wall -- Added file: http://bugs.python.org/file14075/WallWithDoors.py ___ Python tracker ___

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Matthew added the comment: First File This is the main one, it's the one that is called from the Blender application. -- Added file: http://bugs.python.org/file14074/MyWalls.py ___ Python tracker

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Ezio Melotti
Ezio Melotti added the comment: Even if it's a real bug, without the code we can't do anything. Try to reproduce what you did or get that code back somehow (ctrl+z? ;) -- nosy: +ezio.melotti ___ Python tracker

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Matthew added the comment: Trust me this was no typo. I debugged my code by adding print statements to see what values were going into the list, and print statements to see the values that were coming out. It might be that running code from the application Blender does bazaar things, or it cou

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: OK, then I'll close this issue. This is probably a typo in your code, like this one that I make from time to time: obj = Obj() Obj.sName = 'someName' -- resolution: -> invalid status: open -> closed _

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
Matthew added the comment: I didn't keep a copy of the code that didn't work. Sorry. When I changed the way I was initialising the classes, before adding them to the list, I didn't change any of the logical flow in my code, and it started to work. I know it sounds very strange, like it really

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Can you please show the code you tried initially? I suspect that it always adds the same instance to the list... -- nosy: +amaury.forgeotdarc ___ Python tracker _

[issue6113] Dupicate instances of classes in list

2009-05-26 Thread Matthew
New submission from Matthew : What I intended was... I create a list of DIFFERENT instances of the same class, I wanted them to be different instances, with different values for the properties, stressing the word "DIFFERENT". What I originally did was... The __init__ assigns default values for t