pydev

Pydev Perspective Not Showing After Install For Eclipse

Pydev Perspective Not Showing After Install For Eclipse Question: After installing the latest version of Pydev on eclipse it is not showing under the list of available perspectives. Eclipse does however list pydev as being installed which seems weird to me. I would also like to add that I installed pydev through the standard method …

Total answers: 18

pep8 warning on regex string in Python, Eclipse

pep8 warning on regex string in Python, Eclipse Question: Why is pep8 complaining on the next string in the code? import re re.compile(“d{3}”) The warning I receive: ID:W1401 Anomalous backslash in string: ‘d’. String constant might be missing an r prefix. Can you explain what is the meaning of the message? What do I need …

Total answers: 2

Can Pylint error checking be customized?

Can Pylint error checking be customized? Question: I am using pydev where I have set up pylint. The problem is that even inside the comments, pylint reports warnings. I was looking to disable any sort of checking inside any line or a block comment. Also, I wish to follow camelCase naming convention instead of underscores …

Total answers: 6

Is there a quick way to decrease the indentation of multiple lines in Python?

Is there a quick way to decrease the indentation of multiple lines in Python? Question: I am a newbie to python programming. I find that decreasing the indentation of a block of codes in python is quite annoying. For example, given the following code snippet for i in range(density): if i < 5: x, y …

Total answers: 4

Python main call within class

Python main call within class Question: I haven’t done much python – coming from a C/Java background – so excuse me for asking such a simple question. I am using Pydev in Eclipse to write this simple program, and all I want it to do is to execute my main function: class Example(): if __name__ …

Total answers: 3

How to remove trailing whitespace in PyDev plugin for Eclipse

How to remove trailing whitespace in PyDev plugin for Eclipse Question: Ideally, eclipse should remove all trailing whitespace when I save the file. I know there is option for this in C++/Java plugins for eclipse, but I couldnt find one for PyDev. Is there one? If not, whats the easiest way to achieve this? Asked …

Total answers: 2

pydev: find all references to a function

pydev: find all references to a function Question: This has probably been asked before but I can’t seem to find the answer. I’ve moved from windows to Linux and started using PyDev (Aptana) recently but what I cannot seem to find is how to find all references to a function. Asked By: DDecoene || Source …

Total answers: 2

PyDev unittesting: How to capture text logged to a logging.Logger in "Captured Output"

PyDev unittesting: How to capture text logged to a logging.Logger in "Captured Output" Question: I am using PyDev for development and unit-testing of my Python application. As for unit-testing, everything works great except the fact that no content is logged to the logging framework. The logger is not captured by the “Captured output” of PyDev. …

Total answers: 8

How to organize a Python Project?

How to organize a Python Project? Question: I’m new to Python and I’m starting a mini Project, but I have some doubts on how to organize the folders in the "Python Way". I’m using PyDev in my Development Environment, and when I create a new project a folder is created called src + src Now, …

Total answers: 8

Unresolved Import Issues with PyDev and Eclipse

Unresolved Import Issues with PyDev and Eclipse Question: I am very new to PyDev and Python, though I have used Eclipse for Java plenty. I am trying to work through some of the Dive Into Python examples and this feels like an extremely trivial problem that’s just becoming exceedingly annoying. I am using Ubuntu Linux …

Total answers: 12