On Mon, 29 Nov 2010 15:11:28 -0800 (PST)
Spider <matt...@cuneiformsoftware.com> wrote:
> > 2.7 includes many features that were first released in Python 3.1. The 
> > faster io module ...
> 
> I understand that I/O in Python 3.0 was slower than 2.x (due to quite
> a lot of the code being in Python rather than C, I gather), and that
> this was fixed up in 3.1. So, io in 3.1 is faster than in 3.0.
> 
> Is it also true that io is faster in 2.7 than 2.6? That's what the
> release notes imply, but I wonder whether that comment has been back-
> ported from the 3.1 release notes, and doesn't actually apply to 2.7.

The `io` module, which was backported from 3.1/3.2, is faster than in
2.6, but that's not what is used by default in 2.x when calling e.g.
open() or file() (you'd have to use io.open() instead).

So, as you suspect, the speed of I/O in 2.7 hasn't changed. The `io`
module is available in 2.6/2.7 so that you can experiment with some 3.x
features without switching, and in this case it's much faster than 2.6.

Regards

Antoine.


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to