how to pass by reference??
Courageous
jkraska at san.rr.com
Sun Feb 3 21:12:55 EST 2002
More information about the Python-list mailing list
Sun Feb 3 21:12:55 EST 2002
- Previous message (by thread): how to pass by reference??
- Next message (by thread): how to pass by reference??
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>Briefly, you don't. Or you do. All good stuff. But to answer directly, the best way to "pass something by reference" is to have it be an attribute on an object, and have what its being passed to a method. Those who adhere to good OO design principles will quickly forget that Python doesn't really have pass by reference. Or it doesn't. Or it does. :) C//
- Previous message (by thread): how to pass by reference??
- Next message (by thread): how to pass by reference??
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list