473,322 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 2105
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Michal Migurski | last post by:
Hi everyone, I've been planning to move to Python from PHP for some time now. I use PHP extensively for web scripting, with mod_php, Apache, and a DB (I would characterize my knowledge of PHP as...
9
by: Norm Goertzen | last post by:
I've posted a previous question about IDEs and got some good feedback, thanks, but it does seem that everyone has their own favourite IDE -- in other words, no IDE was repeatedly recommended. ...
16
by: Kenneth McDonald | last post by:
For unfortunate reasons, I'm considering switching back to Win XP (from OS X) as my "main" system. Windows has so many annoyances that I can only compare it to driving in the Bay Area at rush hour...
2
by: 63q2o4i02 | last post by:
Hi, I'm using python 2.4 and windows XP. I have two packages in the windows version of python in site-packages. They are PyVisa and ctypes, and both live in c:\python24\lib\site-packages ...
4
by: HMS Surprise | last post by:
Just wondered if there was some python idiom for moving a few items from one list to another. I often need to delete 2 or 3 items from one list and put them in another. Delete doesn't seem to have...
0
by: Brett Cannon | last post by:
On August 23rd Python will be moving off of SourceForge and over to our own issue tracker run on Roundup (http://bugs.python.org/). During the transition there will be a time where the...
0
by: linkswanted | last post by:
http://www.movingcompanies.co.il/supplies/boxes.html http://www.movingcompanies.co.il/residental/ http://www.movingcompanies.co.il/commercial/corporate-moves.html...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.