n is a object,what means: s='n' ?
Ignacio Vazquez-Abrams
ignacio at openservices.net
Fri Aug 31 03:35:26 EDT 2001
On Fri, 31 Aug 2001, Formalin wrote:
> class now:
> ....
> ....
> ....
> n=now()
> s='n'
> print s
>
>
> the result:<__main__.now instance at 00B2EB0C>
>
> what means?????
Not quite. You're actually seeing the following:
---
s=`n`
---
Notice the backticks (`) versus single quotes (').
`n` is equivalent to repr(n); it returns the text representation of the
object.
--
Ignacio Vazquez-Abrams <ignacio at openservices.net>
More information about the Python-list
mailing list