[NEWBIE]-Object referencing??

Carl Banks imbosol at vt.edu
Tue Jul 2 02:26:06 EDT 2002


Alistair Campbell wrote:
> 
> I can get all the other data items but a call to;
> 
> current_brew.alcohol
> 
> returns
> 
> <bound method Brew.alcohol of <__main__.Brew instance at 0x01761250>


Try to forget Pascal.  You want:

current_brew.alcohol()


Python will not call a method unless you put the () there.


-- 
CARL BANKS                                http://www.aerojockey.com
"Nullum mihi placet tamquam provocatio magna.  Hoc ex eis non est."



More information about the Python-list mailing list