Re: [Tutor] passing by reference

2011-03-13 Thread Steven D'Aprano
Vineeth Mohan wrote: Hi, How are variables in python passed. By value or by referrence? Neither. What makes you think that value and reference are the only two choices? See this Wikipedia article for a list of at least a dozen different argument passing techniques: http://en.wikipedia.o

Re: [Tutor] passing by reference

2011-03-13 Thread Alan Gauld
"Vineeth Mohan" wrote How are variables in python passed. By value or by referrence? Neither, and trying to force a comparison to these traditional styles will always lead to an exercise in frustration as you find cases which don't quite fit.. Variables in Python are names that refer to obj