469,929 Members | 1,674 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,929 developers. It's quick & easy.

moving from c++ to python

Hi,
I'm a pretty sound programmer in C++, but would like to learn python! Does
anyone know of any tutorial s aimed at me?? My biggest confusion so far is
the lack of pointers in Python ......
Regards
Michael
Jul 19 '05 #1
3 1978
Michael wrote:
Hi,
I'm a pretty sound programmer in C++, but would like to learn python! Does
anyone know of any tutorial s aimed at me?? My biggest confusion so far is
the lack of pointers in Python ......
Regards
Michael


I suggest that you start with the official Python tutorial at
http://docs.python.org/tut/tut.html

--
Are you a riddle lover?
Try http://www.pythonchallenge.com
Jul 19 '05 #2
On Saturday 21 May 2005 03:19 am, Michael wrote:

Yeah this tutorial is aimed at people that already know how to program.

http://www.diveintopython.org/

It would still be a good idea though to go through the basic python tutorial
at http://docs.python.org/tut/tut.html

For someone already experienced in programming the basic tutorial will
probably only take an hour or so and it is good to read it at least once. The
other thing I highly recommend is reading
http://docs.python.org/lib/lib.html just to see what libraries python has
and a basic idea of what they can do. I have seen a LOT of programmers come
from languages like c++ and spend days and sometimes hundreds of lines of
code implementing something that could be done with a single line of code
from the standard library. :) Just trying to save you from that problem.
Hi,
I'm a pretty sound programmer in C++, but would like to learn python! Does
anyone know of any tutorial s aimed at me?? My biggest confusion so far is
the lack of pointers in Python ......
Regards
Michael

Jul 19 '05 #3
>>>>> "Michael" == Michael <sl***********@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
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Michal Migurski | last post: by
9 posts views Thread by Norm Goertzen | last post: by
2 posts views Thread by 63q2o4i02 | last post: by
4 posts views Thread by HMS Surprise | last post: by
reply views Thread by Brett Cannon | last post: by
reply views Thread by linkswanted | last post: by
reply views Thread by linkswanted | last post: by
reply views Thread by linkswanted | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.