[Python-Dev] Fuzziness in io module specs (original) (raw)

[Python-Dev] Fuzziness in io module specs - PEP update proposition V2

Antoine Pitrou solipsis at pitrou.net
Mon Sep 28 00:44:22 CEST 2009


Le Sun, 27 Sep 2009 14:24:52 -0700, Guido van Rossum a écrit : [truncate()]

What compatibility, though?

Compatibility accross the 3.x line.

f.truncate() behaves different in 2.x than in 3.x, and in 2.x it seems to match the POSIX semantics (i.e. the seek position is unchanged even though the file size is). Perhaps the changed semantics was an oversight or a mistake?

Perhaps it was, indeed. I don't know who made that decision in the first place.

Regards

Antoine.



More information about the Python-Dev mailing list