[Python-Dev] Triple-quoted strings and indentation (original) (raw)
Guido van Rossum gvanrossum at gmail.com
Mon Jul 11 00:41:02 CEST 2005
- Previous message: [Python-Dev] Triple-quoted strings and indentation
- Next message: [Python-Dev] Triple-quoted strings and indentation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 7/10/05, Andrew Durdin <adurdin at gmail.com> wrote:
On 7/7/05, Guido van Rossum <gvanrossum at gmail.com> wrote: > > I don't think so. It smells too much of DWIM, which is very unpythonic. EIBTI.
In what way? The scheme described is explicit, and consistently applied to all triple-quoted strings[*] -- although the rules are different to the current behaviour. On the other hand, my written proposal may not be clear or explicit, something I will attempt to remedy over the next few days.
The scheme may be explicitly spelled out in the language reference, but it is implicit to the human reader -- what you see is no longer what you get.
[*] Whether it should apply also to normal strings with escaped newlines is not something I have yet considered.
I recommend that you give it up. You ain't gonna convince me.
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Triple-quoted strings and indentation
- Next message: [Python-Dev] Triple-quoted strings and indentation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]