Simple Question

Skip Montanaro skip at pobox.com
Wed Feb 13 18:58:15 EST 2002


    Tristan> Is there a way to pass references or pointers as parameters to
    Tristan> functions in python?

In a manner similar to using & in C?  No.  As a hackish way to do things?
Sure.  However, there's probably a better (that is, "more Pythonic") way
that doesn't involve needing pass-by-reference semantics.  You'll have to
tell us more about what you're trying to do for us to suggest something
plausible.

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list