[nylug-talk] ny python usergroup?
dave
dave at immunitysec.com
Tue Jul 20 14:51:00 EDT 2004
mylar wrote:
>
>Also, does anyone recommend any good books and printed material on
>Python ? So far I've been getting along good with the information at
>"python.org"
>
>
>
>
I personally like the big white "CORE Python Programming" book. It's
easy to read, and it gives you a good grasp of the basics of the
language when you're done, even if you haven't touched a keyboard. After
that, I recommend the Python Recipies book, which gets into the details
of how things need to be done to do it efficiently. For example:
data=""
while 1:
data+=infile.readline()
...
is an O(N^2) operation. (hmm, N^N? Anyways, really bad.)
data=[]
while 1:
data+=[infile.readline()]
...
data="".join(data)
is O(N)
-dave
More information about the nylug-talk
mailing list