Login Register


[Question] V2/V3, what's the difference? filter_list
Author
Message
[Question] V2/V3, what's the difference? #1
I'm a total noob to python and on the download site, there's a V2.[whatever] and V3.[whatever]. What's the difference between the two?
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.

Reply

RE: [Question] V2/V3, what's the difference? #2
You should go for V2. It's more widespread and supported by more shit.

In v2, print is a statement, and raw_input() is used instead of input(). In v3, print() is a function. Those are the two biggest differences, but there's some others that you should familiarise yourself with. You can find them here.

Reply

RE: [Question] V2/V3, what's the difference? #3
I would say go with Python 3 since its the future and everal things specially encoding stuffs has been fixed.

See the following

https://wiki.python.org/moin/Python2orPython3 [Read the Section Which Version Should I Choose ?]

http://sebastianraschka.com/Articles/201...ifferences

http://nbviewer.ipython.org/github/rasbt...nd_3.ipynb [IMP]


Regarding the library support of Python 3 then thats not a problem since most of the useful and mostly used libraries are compatible with both Python 2 and 3 so thats not a problem at all Smile
[Image: OilyCostlyEwe.gif]

[+] 1 user Likes Psycho_Coder's post
Reply

RE: [Question] V2/V3, what's the difference? #4
(04-10-2015, 08:36 AM)Psycho_Coder Wrote: I would say go with Python 3 since its the future and everal things specially encoding stuffs has been fixed.

See the following

https://wiki.python.org/moin/Python2orPython3 [Read the Section Which Version Should I Choose ?]

http://sebastianraschka.com/Articles/201...ifferences

http://nbviewer.ipython.org/github/rasbt...nd_3.ipynb [IMP]


Regarding the library support of Python 3 then thats not a problem since most of the useful and mostly used libraries are compatible with both Python 2 and 3 so thats not a problem at all Smile

Thanks man. (And woah, haven't seen you around here in a while. wb.)
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.

Reply

RE: [Question] V2/V3, what's the difference? #5
(04-10-2015, 11:36 AM)Touka Wrote: Thanks man. (And woah, haven't seen you around here in a while. wb.)

Well yes I am mostly active on rC/HS. But I do visit SL every day t least once but don't post much since there's nothing much more me to post. MOst of the threads are not technical based.
[Image: OilyCostlyEwe.gif]

Reply







Users browsing this thread: 1 Guest(s)