I recently tried to start learning GUI for python, and reverted back to python 2.6.4
my question:
in python 3.1.1,:
>>>import title
>>>title.class. function()
>>>running program
in python 2.6.4:
>>>import title #working fine
>>>title.class. function()
then I get this:
unbound method must be called with class...
Search Result
Collapse
3 results in 0.0014 seconds.
Keywords
Members
Tags
-
calling a function from a module in a class
-
Unbound method? What's that?
Can someone give me a quick rundown on the difference between bound and unbound methods? I ran into an error regarding an unbound method, and found lots of discussions about changing Python behavior regarding them, but haven't come across these descriptions in any of my reading material so far.
Thanks! -
Guest started a topic TypeError: unbound method PrintInput() must be called with test instance as first argument (got test instance instead)in PythonTypeError: unbound method PrintInput() must be called with test instance as first argument (got test instance instead)
Hi,
I am trying to call an unbound method (PrintInput) with the object
instance as the first argument but getting the following error:
"TypeError: unbound method PrintInput() must be called with test
instance as first argument (got test instance instead)"
Below is the sample code (test) for this purpose (two files).
Any help is greatly appreciated.
Thanks in Advance,...