Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3823

Re: Argument count mismatch

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news2.glorb.com!news-out.readnews.com!transit3.readnews.com!panix!gordon
From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: Argument count mismatch
Date Thu, 21 Apr 2011 20:33:51 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 17
Message-ID <ioq4bf$m2o$1@reader1.panix.com> (permalink)
References <ac20c08e-6957-4836-9319-e668a8da8112@q30g2000vbs.googlegroups.com>
NNTP-Posting-Host panix3.panix.com
X-Trace reader1.panix.com 1303418031 22616 166.84.1.3 (21 Apr 2011 20:33:51 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Thu, 21 Apr 2011 20:33:51 +0000 (UTC)
User-Agent nn/6.7.3
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3823

Show key headers only | View raw


In <ac20c08e-6957-4836-9319-e668a8da8112@q30g2000vbs.googlegroups.com> RVince <rvince99@gmail.com> writes:

> def cmseditorlinemethod(self, ssn):
>         c.details =
> Session.query(MSPResponse).filter(MSPResponse.beneficiaryssn ==
> ssn).all()
>         content = render('/cmseditorline.mako')
>         return content

Is cmseditorlinemethod() a member of a class?  The presence of the "self"
parameter suggests that it is, but your code omits this detail.

-- 
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 | NextPrevious in thread | Next in thread | Find similar


Thread

Argument count mismatch RVince <rvince99@gmail.com> - 2011-04-21 12:33 -0700
  Re: Argument count mismatch Wolfgang Rohdewald <wolfgang@rohdewald.de> - 2011-04-21 21:43 +0200
  Re: Argument count mismatch Chris Angelico <rosuav@gmail.com> - 2011-04-22 06:15 +1000
  Re: Argument count mismatch John Gordon <gordon@panix.com> - 2011-04-21 20:33 +0000
  Re: Argument count mismatch Westley Martínez <anikom15@gmail.com> - 2011-04-21 15:41 -0700
  Re: Argument count mismatch Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-22 01:43 +0000
    Re: Argument count mismatch Daniel Kluev <dan.kluev@gmail.com> - 2011-04-22 21:19 +1100

csiph-web