[Python-Dev] Path object design (original) (raw)

glyph at divmod.com glyph at divmod.com
Wed Nov 1 22:57:24 CET 2006


On 06:14 pm, fredrik at pythonware.com wrote:

glyph at divmod.com wrote:

I assert that it needs a better[1] interface because the current interface can lead to a variety of bugs through idiomatic, apparently correct usage. All the more because many of those bugs are related to critical errors such as security and data integrity.

instead of referring to some esoteric knowledge about file systems that us non-twisted-using mere mortals may not be evolved enough to under- stand,

On the contrary, twisted users understand even less, because (A) we've been demonstrated to get it wrong on numerous occasions in highly public and embarrassing ways and (B) we already have this class that does it all for us and we can't remember how it works :-).

maybe you could just make a list of common bugs that may arise due to idiomatic use of the existing primitives?

Here are some common gotchas that I can think of off the top of my head. Not all of these are resolved by Twisted's path class:

Path manipulation:

FS manipulation:

I promise to make a nice FAQ entry out of it, with proper attribution.

Thanks. The list here is just a brain dump, I'm not sure it's all appropriate for a FAQ, but I hope some of it is useful. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20061101/b6052fc2/attachment.html



More information about the Python-Dev mailing list