I have to get the Linux distribution name from a Python script. There is a dist method in the platform module: import platform platform.dist() But under my Arch Linux it returns: >>> ...

I have to get the Linux distribution name from a Python script. There is a dist method in the platform module: import platform platform.dist() But under my Arch Linux it returns: >>> ...

I would like to spider a few blogs and programmatically analyze their html and css-based layouts to see e.g. if the sidebar is to the left or right of the main content, how many columns and how wide ...

I would like to spider a few blogs and programmatically analyze their html and css-based layouts to see e.g. if the sidebar is to the left or right of the main content, how many columns and how wide ...

I realized there is a memory leak in one python script. Which occupied around 25MB first, and after 15 days it is more than 500 MB. I followed many different ways, and not able to get into the root ...

I realized there is a memory leak in one python script. Which occupied around 25MB first, and after 15 days it is more than 500 MB. I followed many different ways, and not able to get into the root ...

I've written a simple echo request/reply test for zeromq using node.js, Python, and Java. The code runs a loop of 100K requests. The platform is a 5yo MacBook Pro with 2 cores and 3G of RAM running ...

I've written a simple echo request/reply test for zeromq using node.js, Python, and Java. The code runs a loop of 100K requests. The platform is a 5yo MacBook Pro with 2 cores and 3G of RAM running ...

I've written Python bindings using ctypes for the units library. The bindings themselves are only ~100 lines of Python. The library has an unnecessary (for the purposes of the Python bindings) ...

I've written Python bindings using ctypes for the units library. The bindings themselves are only ~100 lines of Python. The library has an unnecessary (for the purposes of the Python bindings) ...

I am using this sql for performance reason sql_tmpl = """delete from Data where id_data in (:iddata) """ params = { 'iddata':[1, 2,3 4], } # session is a ...

I am using this sql for performance reason sql_tmpl = """delete from Data where id_data in (:iddata) """ params = { 'iddata':[1, 2,3 4], } # session is a ...

I'm working with large, sparse matrices (document-feature matrices generated from text) in python. It's taking quite a bit of processing time and memory to chew through these, and I imagine that ...

I'm working with large, sparse matrices (document-feature matrices generated from text) in python. It's taking quite a bit of processing time and memory to chew through these, and I imagine that ...

Does anyone know a way to bring a scatter plot to the foreground in matplotlib? I have to display the scatter plotting on top of the contour, but by default it is plotted underneath... Thanks in ...

Does anyone know a way to bring a scatter plot to the foreground in matplotlib? I have to display the scatter plotting on top of the contour, but by default it is plotted underneath... Thanks in ...

I'm wondering if there's a way to "install" single-file python modules using pip (i.e. just have pip download the specified version of the file and copy it to site-packages). I have a Django project ...

I'm wondering if there's a way to "install" single-file python modules using pip (i.e. just have pip download the specified version of the file and copy it to site-packages). I have a Django project ...