Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97971
| Path | csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!goblin1!goblin3!goblin.stu.neva.ru!panix!gordon |
|---|---|
| From | John Gordon <gordon@panix.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: None returned |
| Date | Tue, 27 Oct 2015 15:02:59 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 18 |
| Message-ID | <n0o3n3$s3n$1@reader1.panix.com> (permalink) |
| References | <b5e68b04-142f-4b78-89ee-874281914d5b@googlegroups.com> |
| NNTP-Posting-Host | panix3.panix.com |
| X-Trace | reader1.panix.com 1445958179 28791 166.84.1.3 (27 Oct 2015 15:02:59 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Tue, 27 Oct 2015 15:02:59 +0000 (UTC) |
| User-Agent | nn/6.7.3 |
| Xref | csiph.com comp.lang.python:97971 |
Show key headers only | View raw
In <b5e68b04-142f-4b78-89ee-874281914d5b@googlegroups.com> pip7kids@gmail.com writes:
> print(rectangle.describe("this is a new rectangle"))
You're printing the result of describe().
> def describe(self,text):
> self.description = text
describe() has no return value, so it returns None by default.
If you want it to return something, make it do that.
--
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"
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
None returned pip7kids@gmail.com - 2015-10-27 03:49 -0700 Re: None returned cassiobotaro@gmail.com - 2015-10-27 04:08 -0700 Re: None returned John Gordon <gordon@panix.com> - 2015-10-27 15:02 +0000 Re: None returned Larry Hudson <orgnut@yahoo.com> - 2015-10-28 00:23 -0700 Re: None returned Denis McMahon <denismfmcmahon@gmail.com> - 2015-10-28 08:33 +0000
csiph-web