Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
Progress on moving from Python 2 to Python 3 - training for both versions

I find the progressing fron one major version of a language to another is often incredibly slow. But I suppose I shouldn't find it "incredible" because lifetime code maintenance and updates account for more time spent on a successfully appied piece of software that the original writing of it. And even with new code, there's often a requirement to use well established modules and tools which may not (yet) be available in the new environment, even though the new version of the language itself is available.

Furthermore, most new versions of existing successful languages don't really provide all that great an enhancement. The new facilities may be "nice", they may be "useful", they may "cure longstanding issues" and they may make it "neater", but we should not forget that the old version was a success - there wasn't much wrong with it, so the immediate need for an upgrade is marginal for many or even most of the existing users.

So it is that - five years or more on - I'm teaching Python and asking my delegates "will you be writing in Python 2 or Python 3" and the answer if often "Python 2". Than was the case on yesterday's private day where we majored on wxPython, and I have a public Python Programming course starting in about 2 hours which could be "biased" either way. Fortunately, the differences are small enough for the course to major one way or the other, and our group sizes (also small) lend themselves to this approach.

In practise, this upgrade (Python 2 to Python 3) is an odd one - it's possible (and recommended) to write code that's pretty similar / works exactly in both without too much effort - and I recommend that approach and teach it - and yet even "Hello World" can vary!

Python 2:
  print "Hello World"
(see source [here]

Python 3:
  print ("Hello World",end="\n")
(see source [here]

Or Python 2 AND Python 3:
  print ("Hello World")
(see source [here]

Accommodation's full for tonight at our Well House Manor hotel ... but anyone who lives within an hour or so of Melksham would still be just in time to book on the course and commute. No - I don't exepect it to happen, but stranger things have. For the more conventional - see our schedule [here] for public courses in the New Year. For private courses, a few days remain available in the lead up to Christmas.
(written 2015-12-01)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
Y300 - Python 3 - What is new, what's changed and why
  [4712] A reminder of the key issues to consider in moving from Python 2 to Python 3 - (2016-10-30)
  [4711] Convering from Python 2 to Python 3 - an update, and the 2to3 utility - (2016-10-30)
  [4650] Why populate object with values as you construct them? - (2016-02-18)
  [4649] Object and Static methods - what is the difference; example in Python 3 - (2016-02-17)
  [4470] Testing in Python 3 - unittest, doctest and __name__ == __main__ too. - (2015-04-21)
  [4469] Sorting in Python 3 - and how it differs from Python 2 sorting - (2015-04-20)
  [2871] Moving from Python 2.6 to Python 3 - (2010-07-14)
  [2778] Learning to program in Python 2 ... and / or in Python 3 - (2010-05-24)
  [2559] Moving the product forward - ours, and MySQL, Perl, PHP and Python too - (2010-01-01)
  [2285] Great new diagrams for our notes ... Python releases - (2009-07-13)
  [2277] Python classes / courses - what version do we train on? - (2009-07-10)
  [1791] The road ahead - Python 3 - (2008-09-10)
  [1788] Python 2 to Python 3 / Python 3000 / Py3k - (2008-09-07)
  [753] Python 3000 - the next generation - (2006-06-09)

Y101 - Introduction to Python
  [4298] Python - an interesting application - (2014-09-18)
  [4118] We not only teach PHP and Python - we teach good PHP and Python Practice! - (2013-06-18)
  [1663] Python in an afternoon - a lecture for experienced programmers - (2008-06-01)
  [1375] Python v Ruby - (2007-10-02)
  [950] Python and the Magic Roundabout - (2006-11-27)
  [949] Sludge off the mountain, and Python and PHP - (2006-11-27)
  [909] Python is like a narrowboat - (2006-10-30)
  [846] Is Perl being replaced by PHP and Python? - (2006-08-27)
  [834] Python makes University Challenge - (2006-08-15)
  [745] Python modules. The distribution, The Cheese Shop and the Vaults of Parnassus. - (2006-06-05)
  [712] Why reinvent the wheel - (2006-05-06)
  [710] Linux training Glasgow, Python programming course Dundee - (2006-05-05)
  [629] Choosing the right language - (2006-03-01)
  [444] Database or Progamming - which to learn first? - (2005-09-13)
  [382] Central London Courses - Perl, PHP, Python, Tcl, MySQL - (2005-07-18)
  [380] Bridging to the customer requirement - (2005-07-16)
  [317] Programming languages - a comparison - (2005-05-20)


Back to
Principles or a GUI and their practical application using wxPthon
Previous and next
or
Horse's mouth home
Forward to
From single block to structure and object oriented programming
Some other Articles
XML handling in Python - a new teaching example using etree
Command line parameter handling in Python via the argparse module
A comparison of the public transport alternatives to the Royal United Hospital, Bath - from Melksham.
From single block to structure and object oriented programming
Progress on moving from Python 2 to Python 3 - training for both versions
Principles or a GUI and their practical application using wxPthon
What teach you in a week stays with you for a decade
shell - bash. Writing conditional tests and statements - the options available
Extending your bash shell with aliases, functions and extra commands
What is make? What is gcc?
4724 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2017: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/4590_Pro ... sions.html • PAGE BUILT: Sat Jun 11 12:16:26 2016 • BUILD SYSTEM: WomanWithCat