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
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
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
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
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
_ 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/
; 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