I want to start writing unit tests for my Python code, and the py.test framework sounds like a better bet than Python’s bundled unittest. So I added a “tests”...
I have written a module (a file my_mod.py file residing in the folder my_module). Currently, I am working in the file cool_script.py that resides in the folder cur_proj. I...
The new pycharm release (3.1.3 community edition) proposes to convert the methods that don’t work with the current object’s state to static. What is the practical reason for that?...
When initializing a dictionary with d = {} Pycharm’s code inspector generates a warning, saying This dictionary creation could be rewritten as a dictionary literal. If I rewrite it...
In PyCharm, I’ve added the Python environment /usr/bin/python. However, from gnuradio import gr fails as an undefined reference. However, it works fine in the Python interpreter from the command...
How can I enable word wrapping in PhpStorm? I need to enable it only for some of my files (with extension .txt). Is it possible? 13 Answers 13
Using PyCharm, I noticed it offers to convert a dict literal: d = { 'one': '1', 'two': '2', } into a dict constructor: d = dict(one="1", two='2') Do these...
I remember when I was using Eclipse that when holding CTRL and using left or right arrows Eclipse would navigate over the LongCamelCaseWrittenWord in several steps. One camel case...
I cannot seem to be able to find the setting to enable line numbers for all files, but I have to always right click and enable this on per...
I just switched to PyCharm and I am very happy about all the warnings and hints it provides me to improve my code. Except for this one which I...