All pastes #15374 Raw Edit

Someone

public text v1 · immutable
#15374 ·published 2005-06-21 18:35 UTC
rendered paste body
from copy import copy
class Smack(object):
    pass    
mysmack = Smack()
print '1:',mysmack
def print_something(some_object):
    print '2:',some_object,'<--see there are pointers hidden in python'
    obj2 = copy(some_object)
    print '3:',obj2
    
print_something(mysmack)
#output:
1: <__main__.Smack object at 0x401e416c>
2: <__main__.Smack object at 0x401e416c> <--see there are pointers hidden in python
3: <__main__.Smack object at 0x402080cc>