white space in expressions and argument lists

rtilley rtilley at vt.edu
Thu Mar 2 10:24:09 EST 2006


John Salerno wrote:
> A minor concern, but I'm curious if there is any kind of best practice 
> for using whitespace within expressions and argument lists in the Python 
> world. For example:
> 
> 1 + 2  or   1+2

IMO, good style calls for spaces. Most companies have style guides for 
programmers to follow. Read this PEP:

http://www.python.org/peps/pep-0008.html



More information about the Python-list mailing list