4 ms·
Not much to learn. To get your scripts working (basically): - Strings vs bytes (i.e. the reason for v3) - Parenthesis for print Some libraries have been cha
by svennek 9y ago
Not much to learn.
To get your scripts working (basically):
- Strings vs bytes (i.e. the reason for v3)
- Parenthesis for print
Some libraries have been changed a little. Personally, urllib has been the one, I have had the most trouble with.
As for the new features. Look at the release-notes which most of the time as pep numbers. Read the peps.
Some keyword could be:
- generators
- iterators
- the "format string" string (prefixed with f)
But it is far from a new language... (Just an incompatible on with the one you know, primarily about strings).
- makecheck 9y agoAlso: use “from __future__ import print_function” to start experimenting with that in older 2.x code. I have found the “bytearray” type (available in both 2.x and 3.x) can be a good way to write mostly the same code for both versions that can start to transition to raw bytes where needed.