[Tutor] Passing objects - okay now I get it. (original) (raw)

Alex Newby alex at alexnewby.com
Thu Jul 8 21:03:34 CEST 2004


(But although the concept of mutable and immutable objects is crucial in Python that's probably beyond the scope of your question)

Okay, I get it. As to immutability of strings etc. I more or less get it, but have not had sufficient reason to study it in great detail. I reminded myself of these details by reading the python2.3 docs again to the effect that the notions of mutability and immutability etc., i.e. what the rules are, is clearer.

Umm, I hate to say it but the problem seems an error in my actionscript :( This became clear when I took the occassion to run the code segment line by line from the command line, with no problems when compiling the movie.

def thisFunc(thisObject): thisObject.MainClassFunc() return Object

o = MainClassObject() thisFunc(o)

Thank you Alan, Gregor, and Danny.

Alex Newby.

A further instance of UNIX love...

ls Traceback (most recent call last): File "<pyshell#23>", line 1, in ? ls NameError: name 'ls' is not defined



More information about the Tutor mailing list