Re: indentation preservation/restoration

2006-01-03 Thread Claudio Grondi
[EMAIL PROTECTED] wrote: > Steven D'Aprano wrote: > > >>With a little bit of work, this could be expanded to add redundancy for >>not just indentation and numeric literals, but also string literals, >>keywords, operators, and anything else. > > > When I copy and assign to variable 'post' the re

Re: indentation preservation/restoration

2006-01-03 Thread smichr
I can't believe I forgot that trick :-| Thanks for the helpful reminder. /c -- http://mail.python.org/mailman/listinfo/python-list

Re: indentation preservation/restoration

2006-01-02 Thread smichr
Steven D'Aprano wrote: > With a little bit of work, this could be expanded to add redundancy for > not just indentation and numeric literals, but also string literals, > keywords, operators, and anything else. When I copy and assign to variable 'post' the reply posted here on c.l.p. starting with

Re: indentation preservation/restoration

2006-01-02 Thread Steven D'Aprano
On Mon, 02 Jan 2006 14:19:15 -0800, smichr wrote: > I have (inadvertently) wiped out the functionality of my personal > python snippets by eliminating leading space. I have also just visited > http://www.python.org/tim_one/000419.html and saw a piece of code with > the indentation gone. Python cod

Re: indentation preservation/restoration

2006-01-02 Thread Claudio Grondi
[EMAIL PROTECTED] wrote: > I have (inadvertently) wiped out the functionality of my personal > python snippets by eliminating leading space. I have also just visited > http://www.python.org/tim_one/000419.html and saw a piece of code with > the indentation gone. Python code is fragile in this regar

indentation preservation/restoration

2006-01-02 Thread smichr
I have (inadvertently) wiped out the functionality of my personal python snippets by eliminating leading space. I have also just visited http://www.python.org/tim_one/000419.html and saw a piece of code with the indentation gone. Python code is fragile in this regard. One solution that occurs to me