Re: Structure using whitespace vs logical whitespace

2008-12-16 Thread Gabriel Genellina
En Mon, 15 Dec 2008 14:29:31 -0200, cmdrrickhun...@yaho.com conrad.am...@gmail.com escribió: PS. In my opinion the solution would be to have the option of entering a whitespace insensitive mode which uses C style {} and ;. The token to enter it could be as complicated as you want (in fact,

Re: Structure using whitespace vs logical whitespace

2008-12-16 Thread Lie Ryan
On Mon, 15 Dec 2008 08:29:31 -0800, cmdrrickhun...@yaho.com wrote: I've been trying to search through the years of Python talk to find an answer to this, but my Googlefu is weak. In most languages, I'll do something like this xmlWriter.BeginElement(parent);

Re: Structure using whitespace vs logical whitespace

2008-12-16 Thread Eric Brunel
On Tue, 16 Dec 2008 10:00:32 +0100, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Mon, 15 Dec 2008 14:29:31 -0200, cmdrrickhun...@yaho.com conrad.am...@gmail.com escribió: PS. In my opinion the solution would be to have the option of entering a whitespace insensitive mode which uses

Re: Structure using whitespace vs logical whitespace

2008-12-16 Thread Ken Seehart
cmdrrickhun...@yaho.com wrote: I've been trying to search through the years of Python talk to find an answer to this, but my Googlefu is weak. In most languages, I'll do something like this xmlWriter.BeginElement(parent); xmlWriter.BeginElement(child);

Re: Structure using whitespace vs logical whitespace

2008-12-15 Thread MRAB
cmdrrickhun...@yaho.com wrote: I've been trying to search through the years of Python talk to find an answer to this, but my Googlefu is weak. In most languages, I'll do something like this xmlWriter.BeginElement(parent); xmlWriter.BeginElement(child);

Re: Structure using whitespace vs logical whitespace

2008-12-15 Thread Marek_SP
On 15 Gru, 18:14, MRAB goo...@mrabarnett.plus.com wrote: cmdrrickhun...@yaho.com wrote: I've been trying to search through the years of Python talk to find an answer to this, but my Googlefu is weak. In most languages, I'll do something like this xmlWriter.BeginElement(parent);

Re: Structure using whitespace vs logical whitespace

2008-12-15 Thread Terry Reedy
cmdrrickhun...@yaho.com wrote: I've been trying to search through the years of Python talk to find an answer to this, but my Googlefu is weak. In most languages, I'll do something like this xmlWriter.BeginElement(parent); xmlWriter.BeginElement(child);

Re: Structure using whitespace vs logical whitespace

2008-12-15 Thread cmdrrickhun...@yaho.com
On Dec 15, 11:10 am, Terry Reedy tjre...@udel.edu wrote: In general, I'm using indentation to show logical flow through code. That, of course, is what Python does. Python does NOT use indentation to show logical flow. It uses it to show syntactical flow. The XML writer is the perfect

Re: Structure using whitespace vs logical whitespace

2008-12-15 Thread Marc 'BlackJack' Rintsch
On Mon, 15 Dec 2008 12:27:12 -0800, cmdrrickhun...@yaho.com wrote: On Dec 15, 11:10 am, Terry Reedy tjre...@udel.edu wrote: In general, I'm using indentation to show logical flow through code. That, of course, is what Python does. Python does NOT use indentation to show logical flow. It

Re: Structure using whitespace vs logical whitespace

2008-12-15 Thread Дамјан Георгиевски
In most languages, I'll do something like this xmlWriter.BeginElement(parent); xmlWriter.BeginElement(child); --xml.Writer.Characters(subtext); xmlWriter.EndElement(); xmlWriter.EndElement(); Where the dashes are indentation (since some newsgroup handlers don't do tabs