Python 3.0 Released 357
licorna writes "The 3.0 version of Python (also known as Python3k and Python3000) just got released few hours ago. It's the first ever intentionally backwards-incompatible Python release."
If A = B and B = C, then A = C, except where void or prohibited by law. -- Roy Santoro
good (Score:4, Funny)
previous releases were incompatibilie with earlier ones unintentinally.
No mac version yet? (Score:3, Funny)
Where's the mac version..?
Re:woohoo (Score:5, Funny)
But I just came in here for an argument!
from __future__ import braces (Score:5, Funny)
Re:That marks my end of use for Python (Score:5, Funny)
So what are you going to do, take all your existing Python applications and rewrite them in a different language, in order to avoid the "significant amount of work to maintain existing functionality with new language version"?
Re:And now to wait (Score:5, Funny)
Nope. Python 3.11 for Workgroups.
Re:Hey! (Score:5, Funny)
As someone mentioned above, try
from __future__ import braces
and see what happens. ;)
As for Ruby, I don't really follow its development or use it, but I was reading just the other day that they're really focused on finishing 1.9, which does byte-compiling and some optimization. The current version (like JS before spidermonkey, V8, and squirrelfish) walks and executes the AST (as I understand it), which is slooow.
I don't know why this story's flagged "endofdays" (Score:5, Funny)
That'll be when Perl 6.0 ships.
Porting? Instantly! (Score:3, Funny)
I heard they're going to use Python 3.0 for the impending from-scratch rewrite of DNF.
Re:woohoo (Score:5, Funny)
No you didn't.
Re:Hey! (Score:3, Funny)
Re:Libraries (Score:3, Funny)
unless the language is in the tail end of its life, like Fortran and Cobol
Thus the phrases "The looooooooooong tail" and "You're ALL tail, baby".
Re:That marks my end of use for Python (Score:5, Funny)
Besides teh above remark of well thoguth migration paths - it is importante to remakr that support for python 2.x has not ended in any way.
As far as Iam aware, the recomendation is to keep working with python 2.6 - and use the py2to3 script to regularly to make 3.0 releases if you you can ...
Are you typing while drunk?
Re:print function (Score:3, Funny)
You seem to want Perl. You can find it at http://www.perl.org/ [perl.org]
Re:woohoo (Score:4, Funny)
Interestingly, it IS backwards compatible in areas that you wouldn't think it should be. For instance, the following program takes the version number, adds one to it, and divides by two. You'd think it'd give a different answer between version 3 and version 2. Glad they kept this program working for me, as it's the secret production code that runs my multi-million dollar business.
import sys
version=int(sys.version[0])
print (version+1)/2
Prints 1 in either version. (on the bright side, 1/2 is now 0.5!)
Re:woohoo (Score:4, Funny)
Re:I don't know why this story's flagged "endofday (Score:5, Funny)
Signs of the apocalypse:
* A black man was elected President of the US - November 4, 2008
* Chinese Democracy was released - November 23, 2008
* Python 3000 is released - December 4, 2008
* ?
* ?
* Large Hadron Collider starts operations - ?
* Duke Nukem Forever is released - ?
Re:woohoo (Score:5, Funny)
Re:And now to wait (Score:5, Funny)
Re:That marks my end of use for Python (Score:3, Funny)
Besides teh above remark of well thoguth migration paths - it is importante to remakr that support for python 2.x has not ended in any way.
As far as Iam aware, the recomendation is to keep working with python 2.6 - and use the py2to3 script to regularly to make 3.0 releases if you you can ...
Are you typing while drunk?
No, he generated that comment with Python 2.6 code but ran it with the new release.
Re:woohoo (Score:4, Funny)
An argument isn't just contradiction!
Re:woohoo (Score:5, Funny)
Yes it is.
Re:woohoo (Score:5, Funny)
True Part:
In Python version 2, 1/2 = 1 (integer math)
In Python version 3, 1/2 =0.5 (floating point math)
Funny part:
You can do some math on the version number and it comes out the same, even though the version number has changed. Because the divide operation changed too.
wait, it's not so funny after all. What was I smoking?
Re:No mac version yet? (Score:3, Funny)
>You download the .tart.gz or .tar.bz2 source packages and build it. \
At last, what the world has been waiting for: a language for bimbos and airheads! :)
hawk
Re:No mac version yet? (Score:3, Funny)
WTF are you talking about? Visual Basic has been around since 1991!
Re:And now to wait (Score:1, Funny)
I think you got that wrong. A hammer usually isn't considered very subtle.
Re:woohoo (Score:1, Funny)
Out of interest, why did they decide to calculate 1/2 as float in Python 3?
We got sick of explaining integer math to newbies on the python list each and every single day. So it was decided that if we used '//' for integer division and let '/' do what newbs expect we'd be saving ourselves muchos keystrokes in the long run.
Re:I still won't take Python seriously... (Score:1, Funny)
I'm glad you brought that up, I can't believe that there is not a single other post or discussion thread here regarding whitespace in Python. I've always wondered why, whenever there's a story about Python on Slashdot or Ars or wherever, there's never, ever, ever even one single comment about how Python deals with whitespace. But you, sir, have broken the seal! Bravo.
Re:woohoo (Score:3, Funny)
It's scary to code something while drunk then come back the next day and think "god, whoever wrote this is clever".
I don't even need to be drunk! That happens to me regularly ... ah the ageing process.