Re: [Python-Dev] r88178 - python/branches/py3k/Lib/test/crashers/underlying_dict.py

2011-01-26 Thread Andreas Stührk
> I gets to a dict of class circumventing dictproxy. It's yet unclear > why it segfaults. The crash as well as the output "1" are both caused because updating the class dictionary directly doesn't invalidate the method cache. When the new value for "f" is assigned to the dict, the old "f" gets gar

Re: [Python-Dev] Why does TemporaryDirectory not wait for `__enter__`?

2011-02-26 Thread Andreas Stührk
Hi On Sat, Feb 26, 2011 at 12:52 PM, cool-RR wrote: > I noticed that the `TemporaryDirectory` context manager creates the folder > on `__init__` rather than on `__enter__`, resulting in complexity, bugs, and > hackarounds in `__del__`. I assume there's a good reason for this decision. > What is i