Python 2.6 and 3.1.1, earlier version compatibility
I ordered three books to start teaching myself Python - a beginning programming book, a computer science book that uses Python for all of its code references, and a book on Python network programming. Unfortunately, I was a little too quick on ordering them, because I hadn't noticed the version differences. The beginner book is for python 3.1, the CS book is Python 2.3, and the last is Python 2.6. The CS book 开发者_如何学运维is also oriented towards beginners. My question is, will the different versions be too different at this level for me to effectively use all three, or will I likely be able to get by learning from the 3.1 beginners book and then sort of teach myself from the 2.3 CS book, and be able to comprehend 2.6 code?
That probably didn't make sense. I hope it did.
99.8% of 2.3 code is valid in 2.6. The 3.x book should be able to backfill the 2.x knowledge from 2.4 on, assuming it actually touches upon the relevant subjects. See the various "What's New" documentation to see, well, what's new.
精彩评论