Tag Archives: python

Python: Get Indices of List Elements According to Filter Condition

Python (without additional libraries or toolkits like numpy) is still lacking a convenient method to access indices of list elements according to a manually defined filter. We know this functionality from Matlab or numpy. This function makes these toolkits very … Continue reading

Posted in Computer Pragmatics | Tagged , , , | Leave a comment

Python: Execute shell command and get command line output as string

Sometimes you may want to execute a shell command via Python. Then, the shell prints out several data that you may want to process further within your Python script. I rarely found reasonable solutions, so I want to post mine … Continue reading

Posted in Computer Pragmatics | Tagged , , , | Leave a comment

Debugging in Python

Originally posted on Python Conquers The Universe:
As a programmer, one of the first things that you need for serious program development is a debugger. Python has a debugger, which is available as a module called pdb (for “Python DeBugger”,…

Posted in Computer Pragmatics | Tagged , | Leave a comment