Re: a Python person's experience with Ruby

2007-12-08 Thread Arkanes
Colin J. Williams wrote: > Steve Howell wrote:> > Thanks for the interesting comparison. > > [snip] > >> 3) I actually like being able to omit parentheses in >> method definitions and method calls. In Ruby you can >> express "add(3,5,7)" as both "add(3,5,7)" and "add 3, >> 5, 7." The latter

Re: Populating a dictionary, fast

2007-11-11 Thread Arkanes
Michael Bacarella wrote: > You can download the list of keys from here, it's 43M gzipped: > http://www.sendspace.com/file/9530i7 > > and see it take about 45 minutes with this: > > $ cat cache-keys.py > #!/usr/bin/python > v = {} > for line in open('keys.txt'): > v[long(line.strip())] =

Re: pyparsing and svg

2007-11-08 Thread Arkanes
Paul McGuire wrote: > On Nov 8, 3:14 am, Donn Ingle <[EMAIL PROTECTED]> wrote: > > >> float = nums + dot + nums >> > > Should be: > > float = Combine(Word(nums) + dot + Word(nums)) > > nums is a string that defines the set of numeric digits for composing > Word instances. nums is not an ex