Re: [python-uk] TDD stuff in London, next two weeks (and list comprehension scoping)

2014-05-31 Thread John Pinner
Hello All, On 31 May 2014 23:02, Michael Foord wrote: > > On 31 May 2014, at 11:13, Jonathan Hartley wrote: > >> That's what I thought too, but: >> >> $ python3 >> Python 3.4.0 (default, Apr 19 2014, 12:20:10) >> [GCC 4.8.1] on linux >> Type "help", "copyright", "credits" or "license" for more i

Re: [python-uk] TDD stuff in London, next two weeks (and list comprehension scoping)

2014-05-31 Thread Michael Foord
On 31 May 2014, at 11:13, Jonathan Hartley wrote: > That's what I thought too, but: > > $ python3 > Python 3.4.0 (default, Apr 19 2014, 12:20:10) > [GCC 4.8.1] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> class Some(object): > ... tokens = ['a', 'b'

Re: [python-uk] TDD stuff in London, next two weeks (and list comprehension scoping)

2014-05-31 Thread Jonathan Hartley
That's what I thought too, but: $ python3 Python 3.4.0 (default, Apr 19 2014, 12:20:10) [GCC 4.8.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> class Some(object): ... tokens = ['a', 'b', 'c'] ... untokenized = [Some.tokens.index(a) for a in ['b']] ...