Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: Objects in Python Date: Wed, 22 Aug 2012 15:03:51 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 23 Message-ID: References: <18409992-1e28-4721-8e64-60c69668da4e@googlegroups.com> NNTP-Posting-Host: panix3.panix.com X-Trace: reader1.panix.com 1345647831 23773 166.84.1.3 (22 Aug 2012 15:03:51 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Wed, 22 Aug 2012 15:03:51 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:27643 In <18409992-1e28-4721-8e64-60c69668da4e@googlegroups.com> shaun writes: > I'm having an issue its my first time using python and i set up a class one of the methods is supposed to return a string but instead returns: > 389E0>> It looks like you're referencing the method object itself, instead of calling it method. In other words, you've left off the parentheses. I.e. you're doing something like this: print my_object.foo Instead of this: print my_object.foo() -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"