8 Oct
2003
8 Oct
'03
7:19 p.m.
Milos Prudek wrote at 2003-10-8 13:53 +0200:
Sure... you *can* get the address of an object by getting the string representation of it using backticks, ex:
`my_obj`
So, for example, I can do the following?
print `<Folder instance at 89ca148>`
Is that what you mean?
It will give you a "SyntaxError". He meant: If you have an object ("obj"), you can (often) get its address by "`obj`". Python does not allow you to reverse this (at least not unless it is specially compiled). Dieter