[Python-ideas] [Python-Dev] Ext4 data loss

spir denis.spir at free.fr
Thu Mar 12 08:24:29 CET 2009

Le Thu, 12 Mar 2009 09:48:27 +1100,
Steven D'Aprano <steve at pearwood.info> s'exprima ainsi:

> Even when programmers try to do the right thing, it is hard to know what 
> the right thing is: there are trade-offs to be made, and having made a 
> trade-off, the programmer then has to re-invent what usually turns out 
> to be a quite complicated wheel. To do the right thing in Python often 
> means delving into the world of os.O_* constants and file descriptors, 
> which is intimidating and unpythonic. They're great for those who 
> want/need them, but perhaps we should expose a Python interface to the 
> more common operations? To my mind, that means classes instead of magic 
> constants.
> Would there be interest in a filetools module? Replies and discussion to 
> python-ideas please.

Sure. +1
Also: a programmer is not (always) a filesystem expert.

PS: What I meant is: the point of view from the filesystem is very different. A proper interface will to have to take the programmer's point of view while exposing the filesystem issues. I think (like always at the interface of two worlds -- cf specification talks between developper and client ;-) *terminology* choices will be very important.

la vita e estrany

More information about the Python-ideas mailing list