Krishna Sankar <[EMAIL PROTECTED]> wrote: > b) Of course, we can simulate "in" by a deep copy to a temp variable > and then restoring the variable back before return. The "out" and > "inout" do not need any special tratment.
Or the writer of a function can document what the function does, and if the caller cares about documented behavior, they will send a copy in. > d) One clear advantage is that this will minimize side effects and > surprises/programming, eventually adding reliabliltiy to the systems > developed using py. That seems to imply that programming with Python has more surprises and/or less reliability than other languages; a position that is not likely to be shared by many. - Josiah _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
