Re: dict is really slow for big truck

2009-05-01 Thread Thomas G. Willis
On Apr 28, 8:54 am, forrest yang wrote: > i try to load a big file into a dict, which is about 9,000,000 lines, > something like > 1 2 3 4 > 2 2 3 4 > 3 4 5 6 > > code > for line in open(file) >    arr=line.strip().split('\t') >    dict[arr[0]]=arr > > but, the dict is really slow as i load more d

Re: Linq to Python

2008-09-24 Thread Thomas G. Willis
On Sep 24, 4:59 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: ... > I haven't yet had occasion to use LINQ in anger yet, so I have no idea > whether its an idea to love or to hate. I do think it is good that C# has > effectively sprouted list comprehensions (not to mention anonymous types > and type

Re: Linq to Python

2008-09-24 Thread Thomas G. Willis
an it is the appropriate answer. Maybe it's only that way on OHIO. :) -- Thomas G. Willis -- http://mail.python.org/mailman/listinfo/python-list

Re: Linq to Python

2008-09-23 Thread Thomas G. Willis
> But surely the idea behind it will eventually spread.  It's really > just comprehensions generalized over XML and relational datasets, a > noble goal.  Besides, it's main purpose for .NET was to bring > functional programming to it.  Python already has that, somewhat... it's really any object o

Re: Not fully OO ?

2008-09-20 Thread Thomas G. Willis
On Sep 20, 5:23 am, candide <[EMAIL PROTECTED]> wrote: > Excerpt quoted fromhttp://www.astro.ufl.edu/~warner/prog/python.html: > > "About Python: Python is a high level scripting language with object > oriented features. > (...) > Python supports OOP and classes to an extent, but is not a full OOP

Re: Pycrypto - active ??

2006-03-20 Thread Thomas G. Willis
On 19 Mar 2006 13:39:58 -0800, dirvine <[EMAIL PROTECTED]> wrote: Does anyone know if pycrypto is active at allThis was one of the packages that was updated today on my gentoo box. so, I would say yes.-- Thomas G. Willis--- http://i-see-sound.c

Re: Python Evangelism

2006-03-10 Thread Thomas G. Willis
would be considered impossible to play by todays standards. When I saw Django as a python based web framework, I got a positive vibe from the name of it. But then I'm also a guitarist.  -- Thomas G. Willis---http://i-see-sound.comhttp://tomwillis.son

Re: Python Evangelism

2006-03-09 Thread Thomas G. Willis
it's done right, the true value will be apparent and your users will do the evangelizing for you. OK, I will now return to my happy place. :) -- Thomas G. Willis---http://i-see-sound.comhttp://tomwillis.sonicdiscord.com America, still more rights than North Korea -- http://mail.python.org/mailman/listinfo/python-list

Re: python debugging question

2006-03-08 Thread Thomas G. Willis
ciated. Thanks--http://mail.python.org/mailman/listinfo/python-listThis might help. http://www.onlamp.com/pub/a/python/2005/09/01/debugger.html-- Thomas G. Willis---http://i-see-sound.com http://tomwillis.sonicdiscord.comAmerica, still more rights than North

Re: New python.org website

2006-03-08 Thread Thomas G. Willis
e yin/yang idea might be interesting, and maybe would work but the overall shape needs to be more circular to convey that idea better.But I'm no graphic designer -- Thomas G. Willis---http://i-see-sound.comhttp://tomwillis.sonicdiscord.com America, still more rights than North Korea -- http://mail.python.org/mailman/listinfo/python-list

Re: New python.org website

2006-03-08 Thread Thomas G. Willis
eeling the new logo though. But it's better than what I can produce in an svg editor/ -- Thomas G. Willis--- http://i-see-sound.comhttp://tomwillis.sonicdiscord.comAmerica, still more rights than North Korea -- http://mail.python.org/mailman/listinfo/python-list

Re: do design patterns still apply with Python?

2006-03-02 Thread Thomas G. Willis
get the message that patterns apply a lot differently in python as compared to the {...;} languages. Details here.http://mindview.net/Books/Python/ThinkingInPython.html-- Thomas G. Willis--- http://i-see-sound.comhttp://tomwillis.sonicdiscord.comAmerica, still more rights than North Korea -- http://mail.python.org/mailman/listinfo/python-list