Re: [Tutor] Saving class data to a text file

2005-07-16 Thread Jonathan Conrad
class OOO (object): def __init__ (i, **a): i.__dict__ = a def __repr__ (i): a = i.__dict__ return "%s (%s)" % (type (i).__name__, ", ".join ( "%s=%r" % (o, a [o]) for o in sorted (a.iterkeys ()) )) class OO (object): def __init__ (i, *o, **a):

Re: [Tutor] Python Lists

2005-07-15 Thread Jonathan Conrad
All of the objects in Python are passed by reference: the address and the type of the object. The immutable types, such as our old friend the int, are shared by the function and the application, as well. Assigning to the function variable containing the int cannot change the int itself, only