[Python-Dev] Inconsistent script/console behaviour

Guido van Rossum guido at python.org
Sat Sep 24 16:59:28 CEST 2011


I see a lot of flawed "proposals". This is clearly a python-ideas
discussion. (Anatoly, take note -- please post your new gripe there.)

In the mean time, there's a reasonable work-around if you have to
copy/paste a large block of formatted code:

>>> exec('''
   .
   .
   .
<put anything you like here>
   .
   .
   .
''')
>>>

The only thing that you can't put in there is a triple-quoted string
using single quotes.

-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-Dev mailing list