[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tabs v.s. spaces (was Re: Programming first steps.)

On Mon, Nov 17, 2003 at 02:19:02PM -0500, H. S. Teoh wrote:
> Also, as an off-topic note, blank lines that contain tabs or spaces
> are Pure Evil(tm), especially in code. One of these days I should
> write a sed script to eliminate all incarnations of this Pure Evil(tm)
> from /usr/src.

Python did away with that requirement for scope in 2.x.  If you want to
use blank lines for code logic separation in python < 2.0, you must nest
the line as far as the current block.  For that reason, I don't use
blank lines within class or method definitions when writing for Python

Chad Walstrom <chewie@wookimus.net>           http://www.wookimus.net/
           assert(expired(knowledge)); /* core dump */

Attachment: pgpVNBJFTlIOt.pgp
Description: PGP signature

Reply to: