[Discuss] Looking for Python advice
Deeþàn Chakravarthÿ
codeshepherd at gmail.com
Sun Aug 19 20:00:12 PDT 2007
Deryk Barker wrote:
> Michael wrote:
> ......
>> Thanks for the input. I've downloaded the book you suggested via
>> link and will review it as soon as it is done decompressing. In my brief
>> review of Orielly's effort, I am beginning to see why you might not like
>> this book. I am, for all intents, back in newby-vile when it comes to
>> programming, and I am already finding assumptions that make learning the
>> topic a bit more convoluted than need be. As for "Essential Python",
>> after two positive endorsements I would be nuts not to pick it up. Off
>> to the bookstore ... :-)
>>
> The How to Think book was converted to a python version by Jeff Elkner
> *specifically* so that he could use it to teach programming in a high
> school.
>
> It assumes nothing. (Well, some basic intelligence and the ability to
> read, I suppose).
>
> Welcome to the growing army of pythonistas.
You can also join #python at irc.freenode.net. There are many other
channels relating to python, many of them on more specialized topics
relating to python like
#django, #pywikipediabot, etc. You might also like to setup history
and autocomplete in your python prompt.
> to enable history and autocomplete in python prompt in linux,
> set export PYTHONSTARTUP=~/.pystart in your .bashrc
> and save the following as ~/.pystart
> def savehistory():
>
> readline.write_history_file(os.path.expanduser("~/.python_history"))
>
> import readline, rlcompleter;
> readline.parse_and_bind('tab: complete')
> import os
> #readline.write_history_file(os.path.expanduser("~/.python_history"))
> readline.read_history_file(os.path.expanduser("~/.python_history"))
> import atexit
> atexit.register(savehistory)
You might have to touch ~/.python_history before running the above stuff.
Good Luck,
Deepan
http://codeshepherd.com
http://codeshepherd.blogspot.com
More information about the Discuss
mailing list