2 Reusable Code Snippet Topics

Remove Filter
Member Avatar for
Member Avatar for Gribouillis

This small script named `sourcecode.py` is a command line tool to open a python module's source file with the default editor. For example the line $ python sourcecode.py xml.dom.minidom opens the file minidom.py from the python distribution with the default editor. The same works with user-defined modules having a python …

2
628
Member Avatar for Gribouillis

This snippet shows how to find the complex roots of a polynomial using python (tested with python 2.6). You need the scipy or numpy module.

Member Avatar for Gribouillis
2
3K

The End.