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


Groups > comp.lang.python > #45530 > unrolled thread

Re: TypeError: unbound method add() must be called with BinaryTree instance as first argument (got nothing instead)

Started byTerry Jan Reedy <tjreedy@udel.edu>
First post2013-05-18 17:05 -0400
Last post2013-05-18 17:05 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: TypeError: unbound method add() must be called with BinaryTree instance as first argument (got nothing instead) Terry Jan Reedy <tjreedy@udel.edu> - 2013-05-18 17:05 -0400

#45530 — Re: TypeError: unbound method add() must be called with BinaryTree instance as first argument (got nothing instead)

FromTerry Jan Reedy <tjreedy@udel.edu>
Date2013-05-18 17:05 -0400
SubjectRe: TypeError: unbound method add() must be called with BinaryTree instance as first argument (got nothing instead)
Message-ID<mailman.1819.1368911165.3114.python-list@python.org>
On 5/18/2013 3:46 PM, Peter Otten wrote:
> Dan Stromberg wrote:
>
>> python 2.x, python 3.x and pypy all give this same error, though jython
>> errors out at a different point in the same method.
>
> By the way, 3.x doesn't have unbound methods, so that should work.

It does for this example (3.3.1)
 >>> c = C()
 >>> c.m()
<__main__.C object at 0x00000000033FC5F8>
 >>> C.m(c)
<__main__.C object at 0x00000000033FC5F8>
 >>> C.m(self=c)
<__main__.C object at 0x00000000033FC5F8>


[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web