Re: Build-in 'repr' function (was: what does ` ` do in ' '.join([`x * x` for x in range(1, 6)])?)

2008-09-27 Thread MRAB
On Sep 27, 4:16 am, Ben Finney <[EMAIL PROTECTED]> wrote: > process <[EMAIL PROTECTED]> writes: > > ' '.join([`x * x` for x in range(1, 6)]) > > > exactly what does this symbol do and what does it stand for? > > It's an obsolete, deprecated syntactic sugar for (what is now > implemented as) the bui

Build-in 'repr' function (was: what does ` ` do in ' '.join([`x * x` for x in range(1, 6)])?)

2008-09-26 Thread Ben Finney
process <[EMAIL PROTECTED]> writes: > ' '.join([`x * x` for x in range(1, 6)]) > > exactly what does this symbol do and what does it stand for? It's an obsolete, deprecated syntactic sugar for (what is now implemented as) the built-in 'repr' function. Instead, write the above as: ' '.join(