[Tutor] repr()

jfouhy@paradise.net.nz jfouhy at paradise.net.nz
Wed Jun 8 01:03:53 CEST 2005


Quoting Alan G <alan.gauld at freenet.co.uk>:

> The other waybthat you can use repr() is by using the backtick
> notation
> 
> >>> print `s`
> 'hello'
> >>>

It's worth noting that backticks are going out of fashion --- I think they are
queued for deletion in Py3000.  Better to get in the habit of just calling
repr() directly.

-- 
John.


More information about the Tutor mailing list