thanks cris
--
http://mail.python.org/mailman/listinfo/python-list
On 01/02/2013 09:00 AM, stringsat...@gmail.com wrote:
'''hello
> world'''
> 'hello\nworld'
fred=''' hello
> world'''
print(fred)
> hello
> world
What you're seeing has nothing to do with the triple quotes, and
everything to do with how you're using the debugger. In one case, you
j
On Thu, Jan 3, 2013 at 1:00 AM, wrote:
'''hello
> world'''
> 'hello\nworld'
fred=''' hello
> world'''
print(fred)
> hello
> world
That's because repr() converts the newline into "\n", while print
renders it literally. Check out repr() in the docs:
http://docs.python.org/3/librar
>>> '''hello
world'''
'hello\nworld'
>>> fred=''' hello
world'''
>>> print(fred)
hello
world
--
http://mail.python.org/mailman/listinfo/python-list