Fun Python Function Discovery

Status
You're currently viewing only EgalitarianBovine's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

EgalitarianBovine

Ars Tribunus Angusticlavius
8,086
I found that I can pass an array to a function with no fuss
or muss. Just pass it, like any other variable. It appears
to pass by reference.

Interesting.

Wayne

Everything in python is passed by reference, including numbers, strings, and any other possible object.

Pass-by-value is simulated by making sure that the core types (int, string, long, tuple, etc.) are immutable (there are no valid methods to modify their internals).

-EB
 
Status
You're currently viewing only EgalitarianBovine's posts. Click here to go back to viewing the entire thread.
Not open for further replies.