n is a object,what means: s='n' ?

Roman Suzi rnd at onego.ru
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>

Maybe 

s=`n`

?

It's the same as repr(n)

- string representation which every Python object has.
 
> what means?????


Sincerely yours, Roman A.Suzi
-- 
 - Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
 





More information about the Python-list mailing list