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
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'
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']]
...