Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Python recommended readin ??

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Borat



Joined: Thu Apr 10, 2008 11:54 pm
Posts: 39
Location: County Antrim, Ireland

PostPosted: Sat Sep 26, 2009 11:25 pm    Post subject: Python recommended readin ?? Reply with quote

I've decided I would like to learn Python. Could anyone recommend a book or web tutorial that would get me started (from absolute beginner).

The only programming I am familiar with is vintage 8 bit BASIC and Assembly Language. That's about it.
Back to top
View user's profile Send private message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1474
Location: Loughborough

PostPosted: Sun Sep 27, 2009 12:26 am    Post subject: Reply with quote

Hi Borat...

I started at the deep end with a high quality publication
from O`Reilly:-

"PYTHON IN A NUTSHELL"

(As recommended by LXF... ;)

I`m no coder but an engineer and although this book
is a quite advanced it `showed me the way`.

There are tutorials for the various Python versions, this
for version 2.6x:-

http://docs.python.org/tutorial/

HOWEVER, IF you decide on Python 3.x, (3000), then
this has major differences to the parallel running
versions of 2.x.

So decide first which fork you desire learn from first, then
apply your knowledge to the other fork(s) if you so desire...
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
Borat



Joined: Thu Apr 10, 2008 11:54 pm
Posts: 39
Location: County Antrim, Ireland

PostPosted: Sun Sep 27, 2009 12:37 am    Post subject: Reply with quote

Cheers Bazza. I wasn't aware of a major fork. I'll maybe stick with pre-3.0
Back to top
View user's profile Send private message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1474
Location: Loughborough

PostPosted: Sun Sep 27, 2009 9:25 am    Post subject: Reply with quote

Hi Borat...

> I wasn't aware of a major fork. I'll maybe stick with pre-3.0

Probably a wise choice as both are current and developed
in parallel to one another.

I use Python 1.4x to 2.0x for the classic AMIGA and various
versions to 2.6x for other platforms...

It is a little convoluted at times so DON`T think BASIC.
Once you get used to it it can be fun and highly productive...

Python 3K, (3000), 3.xx is similar in a lot of respects but
many functions have disappeared and some statement(s)
have been `reduced` to functions. "print" for example
is now a function, a real backwards step IMO...

Go get version 2.6x and have some fun... :)

It would be great to see some of your Python coding
experiments on here sometime...

CYA...
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8455
Location: Warrington, UK

PostPosted: Sun Sep 27, 2009 12:06 pm    Post subject: Reply with quote

At some point, you're likely to have to learn 3.x, so if you know neither, it may save time in the long run to start with 3.0.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Saeblundr



Joined: Thu Feb 11, 2010 12:26 pm
Posts: 3
Location: Australia

PostPosted: Thu Feb 11, 2010 1:00 pm    Post subject: Reply with quote

Is there any real reason that 2.6 still seems to be the primary version in use everywhere i look? (default install in ubuntu 9.10, the docs.python.org seems to link directly to 2.6 related info, etc) even though 3.1 seems to be tagged as 'stable' now?

I played with some widgets about 4yrs ago that were coded in python, but am just getting back to learning python again, so am essentially in that "might as well save some time since i know neither" boat, if it holds true...
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8455
Location: Warrington, UK

PostPosted: Thu Feb 11, 2010 3:32 pm    Post subject: Reply with quote

The reason is compatibility. 2.x and 3.0 are quite different is some respects and trying to run a script written for 2.x with 3.x has a good chance of failure. Scripts written for Python 3 can specify that interpreter, but those written before 3.0 was available would break if 3 became the default.

If you want to work with other people's scripts, learn whichever version they have used but if it's just for yourself, you may as well start learning Python 3.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Saeblundr



Joined: Thu Feb 11, 2010 12:26 pm
Posts: 3
Location: Australia

PostPosted: Thu Feb 11, 2010 10:07 pm    Post subject: Reply with quote

*whips out his nearest package manager*

thanks.
Back to top
View user's profile Send private message
Dorimant



Joined: Mon Feb 15, 2010 8:40 pm
Posts: 4

PostPosted: Wed Feb 17, 2010 10:06 pm    Post subject: Reply with quote

I found O'Reilly's "Learning Python" to be a very well written and easy to read book. They've just released a massively expanded second edition which also covers Python 3.0, so it's a decent place to start.

From there I found that once I had a project in mind, it being Python I could figure it out as I went.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast