python Programming Glossary: stdlib
Finding local IP addresses using Python's stdlib http://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib local IP addresses using Python's stdlib How can I find local IP addresses i.e. 192.168.x.x or 10.0.x.x..
List all the modules that are part of a python package? http://stackoverflow.com/questions/1707709/list-all-the-modules-that-are-part-of-a-python-package is the package we are inspecting for example 'email' from stdlib import email package email for importer modname ispkg in pkgutil.iter_modules.. is the package we are inspecting for example 'email' from stdlib import email package email prefix package.__name__ . for importer..
A clean, lightweight alternative to Python's twisted? http://stackoverflow.com/questions/1824418/a-clean-lightweight-alternative-to-pythons-twisted on libevent so it's got a solid backend. asyncore From the stdlib Ă¼ber low level seems like a lot of legwork involved just to..
Python's standard library - is there a module for balanced binary tree? http://stackoverflow.com/questions/2298165/pythons-standard-library-is-there-a-module-for-balanced-binary-tree question No there is not a balanced binary tree in the stdlib. However from your comments it sounds like you may have some..
Use subprocess to send a password http://stackoverflow.com/questions/2387731/use-subprocess-to-send-a-password solution. Is there anyway with subprocess and or any other stdlib What am I forgetting above python subprocess sftp share improve..
list python package dependencies without loading them? http://stackoverflow.com/questions/2875232/list-python-package-dependencies-without-loading-them library you could use sfood fuq package.py sfood filter stdlib sfood target files As you've already noted if there are other..
Creating a simple XML file using python http://stackoverflow.com/questions/3605680/creating-a-simple-xml-file-using-python of how to generate your example document using the in stdlib cElementTree import xml.etree.cElementTree as ET root ET.Element.. that. It may be an LXML specific option. I don't use the stdlib implementation much For further reading here are some useful..
Multiple (asynchronous) connections with urllib2 or other http library? http://stackoverflow.com/questions/4119680/multiple-asynchronous-connections-with-urllib2-or-other-http-library import gevent from gevent import monkey # patches stdlib including socket and ssl modules to cooperate with other greenlets..
Problem with multi threaded Python app and socket connections http://stackoverflow.com/questions/4783735/problem-with-multi-threaded-python-app-and-socket-connections Pool from gevent import monkey monkey.patch_all # patches stdlib import sys import logging from httplib import HTTPSConnection..
nose, unittest.TestCase and metaclass: auto-generated test_* methods not discovered http://stackoverflow.com/questions/5176396/nose-unittest-testcase-and-metaclass-auto-generated-test-methods-not-discove arg if __name__ '__main__' unittest.main This works using stdlib 's framework. Expected and actual output C Users santa4nt Desktop.. improve this question So after sleuthing through both stdlib's unittest and nose's loader and selector source code it turns..
Is it possible to override Sphinx autodoc for specific functions? http://stackoverflow.com/questions/5365684/is-it-possible-to-override-sphinx-autodoc-for-specific-functions nicer funcname arg1 arg2 ... style that the Python stdlib docs use. Is it possible to override the autodoc output for..
IronPython: EXE compiled using pyc.py cannot import module “os” http://stackoverflow.com/questions/6195781/ironpython-exe-compiled-using-pyc-py-cannot-import-module-os My typical solution is the following I copy all of the stdlib modules I need into a folder usually all of them just for completeness..
Why does pip freeze report some packages in a fresh virtualenv created with --no-site-packages? http://stackoverflow.com/questions/6627035/why-does-pip-freeze-report-some-packages-in-a-fresh-virtualenv-created-with-no egg info to wsgiref lib and pip does not know if it stdlib or 3rd party package . It seems to be solved on Python3.3 http..
What are the differences between json and simplejson Python modules? http://stackoverflow.com/questions/712791/what-are-the-differences-between-json-and-simplejson-python-modules improve this question json is simplejson added to the stdlib. Since json was only added in 2.6 simplejson has the advantage..
Strip HTML from strings in Python http://stackoverflow.com/questions/753052/strip-html-from-strings-in-python function to strip HTML tags as it requires only the Python stdlib from HTMLParser import HTMLParser class MLStripper HTMLParser..
Calling an external command in Python http://stackoverflow.com/questions/89228/calling-an-external-command-in-python this question Look at the subprocess module in the stdlib from subprocess import call call ls l The advantage of subprocess..
Using Python's Multiprocessing module to execute simultaneous and separate SEAWAT/MODFLOW model runs http://stackoverflow.com/questions/9874042/using-pythons-multiprocessing-module-to-execute-simultaneous-and-separate-seawa requires 3rd party dependency on Python 2.x it is in the stdlib since Python 3.2 . # usr bin env python import os import concurrent.futures..
|