[Python-Dev] Triple-quoted strings and indentation

Guido van Rossum gvanrossum at gmail.com
Wed Jul 6 17:13:50 CEST 2005


On 7/5/05, Andrew Durdin <adurdin at gmail.com> wrote:
> I have written a patch that changes the way triple-quoted strings are
> scanned so that leading whitespace is ignored in much the same way
> that pep 257 handles it for docstrings. Largely this was for a
> learning experience in hacking the parser, but it would be very nice
> IMO if something of this sort could be implemented in a future version
> of Python.

I don't think so. It smells too much of DWIM, which is very unpythonic. EIBTI.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list