Pitfalls in Python and its libraries Python Python passes by object. This is quite different from pass by reference and pass by value, as explained in the blog here and here. pay attention to the trailing ,. >>> a = 1 >>> a 1 >>> a = 1, >>> a (1,)