Reply to comment

Re: Pass

This is similar to what the poster above has said about "pass by assignment". Python does pass the reference to the object as a value. If you change the object (for mutable types), it gets changed, if you assign to it (for immutable types) it only changes the reference in the callee.
---
Vidi, Vici, Veni.

Submitted by Poromenos on Mon, 18/06/2007 - 23:11.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
3 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Google ads

(You can disable these if you log in)