On Wed, Nov 26, 2014 at 8:54 AM, Paul Moore <p.f.mo...@gmail.com> wrote:
> On 26 November 2014 at 16:24, Isaac Schwabacher <ischwabac...@wisc.edu> > wrote: > > This actually leads to a good example of why the PEP is necessary: > [...] > > Oh! If that's the current behaviour, then it probably needs to go into > the PEP as a motivating example. It's far more convincing than most of > the other arguments I've seen. Just one proviso - is it fixable in > contextlib *without* a language change? If so, then it loses a lot of > its value. > It's hard to use as an example because the behavior of contextlib is an integral part of it -- currently for me the example boils down to "there is a bug in contextlib". Maybe it would have been caught earlier with the change in the PEP, but when using it as a motivating example you have to show the code containing the bug, not just a demonstration. If you want to try though, I'm happy to entertain a pull request for the PEP. -- --Guido van Rossum (python.org/~guido)
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com