« first day (2089 days earlier)      last day (2859 days later) » 

11:00 PM
I know, I use both
Is py3 faster then py2 in every aspect ?
 
no
it's slower for certain applications
 
Then what's the biggest advantage of it over py2?
 
@MarkoMackic not ending its life in 2020 and unicode, I guess
and I'm sure there are a lot of subtle syntactical improvements
such as one-upping super()
 
yeah, so I'd interpret it as quality vs speed
 
speed is an aspect of quality
and I'm sure there are a lot of scenarios where py3 is faster
 
11:13 PM
Certainly
 
For instance, if you're passing zipped stuff to other stuff that accept lists, in py3 you need to do list(zip(...)), because zips are generators. This is obviously overhead compared to py2. But then range in py3 is like xrange in py2, with the exception of some smart handling of indices: range(100000000)[1000000:1000005] will instantly tell you [1000000, 1000001, 1000002, 100030, 1000004]
no need to actually generate all those previous values
 
something like that :D
 
nope, my mistake..
 
I'm not saying it's magic, I'm only saying it's more efficient
for someone young like you, it can turn out to be a huge mistake to learn a language that is officially already becoming obsolete
 
11:19 PM
And I've read somewhere that xrange in python2 can't accept as big numbers as range in python3
 
even if people will still use it for a long while due to how the world works
If you learn it anew, go for py3. You can unlearn some of the missing features if you really need py2 due to some 3rd party library you really need but hasn't been ported to py3 yet
I'm told the vast majority of mainstream libraries are available in python 3:)
 
11:32 PM
Well after all of this :) I will really start learning py3 after I finish a couple of projects that I started in py2
Did you notice my absence in user list if you watched
Do you have github account
 
11:46 PM
@MarkoMackic Just run 2to3.py on them
unless you're doing something ridiculous or your projects are over 10kloc, it's doubtful that you'll run into much issue
Or you're doing some really weird unicode handling
the Python3WOS delights me because I was there when it was "Wall of Shame"
I remember when it was very red
 
I didn't have problems with unicode except when printing it to stdout
 
@WayneWerner what sites does web.archive.org hold
 
all?
 
11:50 PM
They try
 
very interesting stuff
and thanks wayne I'm going to use 2to3 when I port it :)
 

« first day (2089 days earlier)      last day (2859 days later) »