Various rants, raves and downloads.
His function wasn't wrong, he was just trying to show that Python doesn't pass by reference. If it did pass by reference, the = operator in func *would* change l.
More information about formatting options
RSS, XHTML, CSS
His function wasn't wrong, he was just trying to show that Python doesn't pass by reference. If it did pass by reference, the = operator in func *would* change l.
Submitted by Brock (not verified) on Fri, 08/12/2006 - 00:01.