+ 2

Differences between python references and C pointer?

I read that lists in python is similar to C/C++ pointer, in that list variables will reference lists object in memory. If so, are they completely identical? What are the differences between python references and C/C++ pointer?

17th Jul 2017, 11:56 AM
Handy
Handy - avatar
1 Antwort
+ 1
It is the same difference between C++ reference and C++ pointer in fact. Python reference is the same as C++ reference : you do not really manipulate pointer directly, but inside, hidden, there is the same thing
17th Jul 2017, 12:06 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar