RFC PEP candidate: q'<delim>'quoted<delim> ?
Bengt Richter
bokr at oz.net
Wed Mar 13 16:55:11 EST 2002
On Tue, 12 Mar 2002 18:24:40 -0500, "Clark C . Evans" <cce at clarkevans.com> wrote:
>On Sun, Mar 03, 2002 at 09:50:58AM +0000, Bengt Richter wrote:
>| Problem: How to put quotes around an arbitrary program text?
>
>I would suggest that this is done via indentation, like
>YAML. With indentation you don't need to have an end
>delimiter.
>
Unless you want the option of excluding the last EOL.
For line-oriented stuff it would be nice though, especially
for doc string readability. Actually a blank leading line
is not bad when you print a big doc string anyway...
Thanks for making me aware of YAML.
Regards,
Bengt Richter
More information about the Python-list
mailing list