is it possible to give an instance a value?

Aahz aahz at pythoncraft.com
Wed Mar 14 16:44:33 EDT 2007


In article <45edfb62$0$28523$426a74cc at news.free.fr>,
Bruno Desthuilliers  <bdesth.quelquechose at free.quelquepart.fr> wrote:
>manstey a écrit :
>> 
>> Is there a way to make a have the value a.val
>
>Forget about the value/instance distinction - it doesn't exists in Python.

Actually, I think it does.  For example, int('123') has the value 123.
The way I would put it, any type/class that has an eval()able
representation has a value.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"I disrespectfully agree."  --SJM



More information about the Python-list mailing list