Pyhon 2.x or 3.x, which is faster?

Peter Otten __peter__ at web.de
Sun Mar 6 07:39:03 EST 2016


Tony van der Hoff wrote:

> Hi, I've been experimenting with a short test program under python 2.7
> and python 3.4.2. 

Ideally you would provide the source.

> It's a simple read from file, and locate a word therein.

Do both runs operate on the same kind of string (either bytestring or 
unicode)?

> I get the (subjective) impression that python2  is slightly faster than
> python3. Is that correct? Is there any documentation to support this?
> 
> Thanks,





More information about the Python-list mailing list