If I learn python 3.0 and code in it, will my code be still compatible with Python 2.6 (or 2.5 too!)?
Remarkably similar to:
If I'm Going to Learn Python, Should I Learn 2.x or Just Jump Into 3.0?
If I learn python 3.0 and code in it, will my code be still compatible with Python 2.6 (or 2.5 too!)?
Remarkably similar to:
If I'm Going to Learn Python, Should I Learn 2.x or Just Jump Into 3.0?
No, 3.x is largely incompatible with 2.x (that was actually a major motivation for doing it). In fact, you probably shouldn't be using 3.0 at all-- it's rather unusable at the moment, and is still mostly intended for library developers to port to it so that it can be usable.
NO. Python 3 code is backwards incompatible with 2.6. I recommend to begin with 2.6, because your code will be more useful.
Python 2.6 and Python 3.0 are very compatible with each other. There honestly aren't very many differences between the two. At this point, third-party library support is far better for the 2.x series (last I checked, a few libraries I use hadn't been updated from 2.5, but going from 2.5 to 2.6 is just a recompile, but 2.6 to 3.0 for C-level stuff is a real pain).
Just start learning 2.6. The infrastructure is there now, and there's plenty of help for when you finally want to move to 3.x. 2.x is not going away: there will be a 2.7 release at some point, so you're not going to be out of luck if you learn 2.6 now.
It would be easier to use 2.6 right now because most external libraries are not compatible with 3 yet.