Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > PyChecker "self is argument in staticmethod"

Reply
Thread Tools

PyChecker "self is argument in staticmethod"

 
 
Olaf Meding
Guest
Posts: n/a
 
      11-18-2004
What does the below PyChecker warning mean?

More importantly, is there a way to suppress it?

PyChecker warning:
..\src\phaseid\integration.py:21: self is argument in staticmethod


My best guess is that the warning is related to PyChecker not
supporting C++ extensions.


Thanks much for your help.

Olaf
 
Reply With Quote
 
 
 
 
Peter Hansen
Guest
Posts: n/a
 
      11-18-2004
Olaf Meding wrote:
> What does the below PyChecker warning mean?
>
> More importantly, is there a way to suppress it?
>
> PyChecker warning:
> ..\src\phaseid\integration.py:21: self is argument in staticmethod
>
> My best guess is that the warning is related to PyChecker not
> supporting C++ extensions.


Sounds like a pretty wild guess to me.

c:\>c:\a\python23\python.exe
c:\a\python23\Lib\site-packages\pychecker\checker.py test.py
Processing test...

Warnings...

test.py:2: self is argument in staticmethod

c:\>type test.py
class A:
def func(self, blah):
pass

func = staticmethod(func)


Does your code look anything like the above? The warning message
is very explicit about what is wrong here... a staticmethod
should not really have a "self" parameter.

-Peter
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PyChecker lives! Version 0.8.13 released. Neal Norwitz Python 1 12-02-2003 03:09 PM
[pychecker] Reporting uncaught exceptions F. GEIGER Python 0 10-19-2003 02:57 PM
Emacs python-mode,py-pychecker-run problem. Pedro Werneck Python 0 08-18-2003 01:08 PM
PyChecker work with Python 2.3? achrist@easystreet.com Python 16 08-05-2003 07:04 AM
RE: PyChecker work with Python 2.3? Tim Peters Python 1 08-04-2003 10:33 PM



Advertisments