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

spir denis.spir at free.fr
Thu Mar 12 08:13:13 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.

denis
------
la vita e estrany



More information about the Python-ideas mailing list