Antoine Pitrou <pit...@free.fr> added the comment: > But it looks that py3k is stronger because it doesn't crash. Is it the > power of the GIL?
Yes, it is. In theory, we needn't take the lock in all of BufferedReader.readline(), only when calling external code which might itself release the GIL. In practice, we didn't bother optimizing the lock-taking, for the sake of simplicity. If the lock really accounts for a significant part of the runtime cost, we can try to do better. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5502> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com