Reputation: 7506
After reading this quesiton: Python Version Numbering Scheme, I wonder what does "MAJOR version when you make incompatible API changes" mean for Python?
My guess:
Which assumption above is correct?
An example would be much appreciated.
For example, from Python2 to Python3, print 'a'
changes to print('a')
. This is an incompatible language syntax change. Does it has some incompatiable underlying CPython API change? I don't know.
Upvotes: 0
Views: 197
Reputation: 120
For your particular example, in Python 2 print is a statement and in Python3 it is a function. So you would be right in the way that the API would change to accommodate it as a function
Upvotes: 1