-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've set up a new project, and populated it with simple models. (Essentially I'm following the tut.)
When I run python manage.py shell on the command line, it works fine:
>python manage.py shell
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on
win32
Type "help"…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I downloaded Pydev plugin for Eclipse (3.5.2) today on Mac OSX 10.5.8. To be able to use Pydev, I need to configure the interpreter in Eclipse. I am not clear what exactly I need to do here, or what this step does. I want to make sure that when I run programs from Eclipse using Pydev, it uses the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I just downloaded wxPython, and was running some of the sample programs from here. However, on every line that uses a variable from wx.*, I get a "Undefined variable from import error"
For example, the following program generates five errors on lines 1,4,8, and two on line 5:
import wx
class MyFrame(wx…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
when generating python wrappers with swig the python wrapper classes in the generated python file do not have an explicit self parameter, for example see below:
class PySwigIterator(_object):
def value(*args): return _spatiotemporalnmf.PySwigIterator_value(*args)
def incr(*args): return…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have installed pylint via easy_install. I can run lint.py <filename> with success. But pydev refuses to use it.
I checked "use pylint"
I configured correct path
I updated my python interpreter in eclipse to have pylit in pythonpath
I use Eclipse Galileo
I have build automatically checked
I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I would very much like to integrate pylint into the build process for
my python projects, but I have run into one show-stopper: One of the
error types that I find extremely useful--:E1101: *%s %r has no %r
member*--constantly reports errors when using common django fields,
for example:
E1101:125:get_user_tags:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have installed pylint via easy_install. I can run lint.py <filename> with success. But pydev refuses to use it.
I checked "use pylint"
I configured correct path
I updated my python interpreter in eclipse to have pylit in pythonpath
I use Eclipse Galileo
I have build automatically checked
I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Being new to Python, I decided to get some feedback on a class I'd written ASAP so I ran it against pylint. Is the message it gave "Warning: Method could be a function" telling me that it would be better to move this method out of the class because it doesn't use any instance variables? In c# I would…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Following is from pylint docs:
--ignore=<file>
Add <file or directory> to the black list. It should be a base name, not a path. You may set this option multiple times. [current: %default]
Yet I'm not having luck getting the directory part work.
I have directory called migrations…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
I recently upgraded versions of pylint, a popular Python style-checker.
It has gone ballistic throughout my code, pointing out places where I import modules in the same package, without specifying the full package path.
The new error message is W0403.
W0403: Relative import %r, should be…
>>> More