Looking for Pythonic Examples

Larry Bates larry.bates at websafe.com
Tue Feb 28 15:55:37 EST 2006


G. Völkl wrote:
> Hello
> I am looking for examples of Pythonic Thinking:
> 
> One example I found:
> 
> Here some lines of the web side of Bruce Eckel:
> http://www.mindview.net/WebLog/log-0053
> 
> How to read a text file:
> for line in file("FileName.txt"):
>  # Process line
> It is a easy and sophisticated thing in python,
> but hard to do or more complicated in other languages like java.
> 
> Does anyone know more examples ?
> 
> Does anyone know books about real good python programming ?
> 
> Best Regards
> 
> Gerhard

Pick up a copy of the Python Cookbook, it is full of examples.

-Larry



More information about the Python-list mailing list