![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Posts: 12
Rep Power: 0
![]() |
references passed through parameters, do they copy the object or reference the orig?
i was wondering, if i have a constructor for an object such as
def __init__(self, ObjectB) when i pass ObjectB to the new object instance, is it copied or referenced. because what i want is for this new object to have direct access to ObjectB. am i accomplishing this? cuz it seems not. its sort of wierd. thanks. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|