references ???

Michael Hudson mwh at python.net
Fri Nov 2 09:21:36 EST 2001


"Thomas Weidner" <wolf359_ at gmx.net> writes:

> Interesting....
> Is this also possible for single values like ints ?
> How do i make clear if i want a copy of a or a reference to it ?

Have you read this:

    http://effbot.org/guides/python-objects.htm

? It doesn't answer your question, but it answers the questions you
should be asking instead.

FWIW, Python handles objects much more like Lisp, scheme and Java than
C, C++ or perl, if you know any of these langauges.  It can be a bit
confusing if you're used to one of the latter learning one of the
former, but it's not actually difficult.

Cheers,
M.

-- 
  US elections
  For those of you fearing that the rest of the world might be 
  making fun of the US because of this: Rest assured, we are.
         -- http://www.advogato.org/person/jameson/diary.html?start=12



More information about the Python-list mailing list