[Python-Dev] operator.attrgetter(attr[, args...]) etc.

R. David Murray rdmurray at bitdance.com
Wed Nov 21 16:16:55 CET 2012


On Wed, 21 Nov 2012 14:49:05 +0000, Oscar Benjamin <oscar.j.benjamin at gmail.com> wrote:
> On 21 November 2012 03:57, Leo <sdl.web at gmail.com> wrote:
> > Sorry the python issue tracker seems broken (I cannot log in). So I am
> > posting it here.
> >
> > In the doc:
> >
> >   operator.attrgetter(attr[, args...])
> >   operator.itemgetter(item[, args...])
> >   operator.methodcaller(name[, args...])
> >
> > The signatures of these functions seem confusing. ARGS is not documented
> > and does not match the python implementation in the doc.
> 
> What documentation are you reading?

He's reading the operator module documentation.  I just ran into that
same thing the other day, but didn't think to file a bug report.  It
looks like the ``args`` stuff was incorrectly copy and pasted from the
methodcaller docs, where it is actually correct.

I've opened an issue:

    http://bugs.python.org/issue16523

--David


More information about the Python-Dev mailing list