Re: [Python-Dev] Warn about mktemp once again?

2008-05-07 Thread Toby Dickenson
Tristan Seligmann wrote: > The correct way to do this is to create a temporary directory, and then > generate a filename underneath that directory to use. There is a platform difference here. On unix mktemp will usually provide a file name in a world-writeable directory (/tmp/) which is wide open

Re: [Python-Dev] Syntax suggestion for imports

2008-01-04 Thread Toby Dickenson
Raymond Hettinger wrote: > [Jeroen Ruigrok van der Werven] >> On the Trac project using your grep gives me 203 lines, if we take ~2 >> lines for and after in consideration, it still means 203/5 ~= 40 >> occurences. > > Thanks. I'm more curious about the content of those lines. Does the > propos

Re: [Python-Dev] The path module PEP

2006-01-25 Thread Toby Dickenson
arbitrary string? It could be reasonable to expect that it would only match filenames inside the foo directory. However it could also be reasonable to expect to use bar=='/etc/*' -- Toby Dickenson ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] PEP 348 (exception reorg) revised again

2005-08-15 Thread Toby Dickenson
ngExceptions tuple (in the exceptions module?). It makes sense to express the classification of exceptions that are intended to terminate the interpreter, but we dont need to express that classification as inheritence. -- Toby Dickenson ___ Python-D

Re: [Python-Dev] PEP 344: Exception Chaining and Embedded Tracebacks

2005-05-19 Thread Toby Dickenson
exception context. Should that be "if the exception instance does not already have a __context__ attribute or the value of that attribute is None...." -- Toby Dickenson ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] PEP 340: Non-looping version (aka PEP 310 redux)

2005-05-06 Thread Toby Dickenson
_ and __exit__ directly. Thats not true of the block generator API. -- Toby Dickenson ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/

Re: [Python-Dev] PEP 310 and exceptions

2005-04-24 Thread Toby Dickenson
; and '__exit__'. I quite like .acquire() and .release(). There are plenty of classes (and not just in the threading module) which already have methods with those names that could controlled by a 'with'. Those names also make