moving from c++ to python

Ville Vainio ville at spammers.com
Sat May 21 07:09:28 EDT 2005


>>>>> "Michael" == Michael  <slick_mick_00 at hotmail.com> writes:

    Michael> me?? My biggest confusion so far is the lack of pointers
    Michael> in Python ......

Achtually, python uses pointers for everything. On the contrary there
are no "value types" in python.

MyClass* c = new MyClass(12,13);

is equal to 

c = MyClass(12,13)

There is no equivalent to 

MyClass c(12,13);

because it's not needed.

-- 
Ville Vainio   http://tinyurl.com/2prnb



More information about the Python-list mailing list