On Mon, Apr 8, 2013 at 5:36 PM, Barrett Lewis wrote:
> I am viewing it on Chrome Version 26.0.1410.43 m for windows and it works
> perfectly for me.
Huh. Extremely weird. Ctrl-F5 fixed it, and now the source looks
different. Either someone's *right now* editing stuff (in which case
I'll shut up a
I am viewing it on Chrome Version 26.0.1410.43 m for windows and it works
perfectly for me.
On Mon, Apr 8, 2013 at 12:32 AM, Chris Angelico wrote:
> On Mon, Apr 8, 2013 at 4:38 PM, Barrett Lewis
> wrote:
> > I looked up the source to the decorator
> > found here:
> http://hg.python.org/cpython
On Mon, Apr 8, 2013 at 4:38 PM, Barrett Lewis wrote:
> I looked up the source to the decorator
> found here:http://hg.python.org/cpython/file/406b47c64480/Lib/contextlib.py
> for anyone interested.
Strangely, line indentation seems to be swallowed in the web view of
the Mercurial tree. The code d
>
> However, ignored() is actually implemented as a generator function
>
with the @contextmanager decorator shortcut. This decorator takes a
> generator function and wraps it up as a class with the necessary
> __enter__ and __exit__ methods. The __enter__ method in this case
> calls the .next() m
On Sun, Apr 7, 2013 at 6:40 PM, Barrett Lewis wrote:
> I was recently watching that Raymond Hettinger video on creating Beautiful
> Python from this years PyCon.
> He mentioned pushing up the new idiom
>
> with ignored():
> # do some work
>
> I tracked down his commit here http://hg.python.or