For questions about Python programming that are specific to version 2.x of the language.
I'm trying to read in a string representation of a Tuple from a file, and add the tuple to a …
python parsing python-2.x abstract-syntax-tree representationI am using Python 2.6.5. My code requires the use of the "more than or equal to" sign. Here it goes: &…
python string unicode python-2.xIf I try to do the following: things = 5 print("You have " + things + " things.") I get the following error in Python 3.…
python string python-3.x concatenation python-2.xI need to get the text inside the two elements into a string: source_code = """<span class="UserName">&…
python html python-2.x html-parserI have a vpn connection and when I'm running python -m SimpleHTTPServer, it serves on 0.0.0.0:8000, which means it can be …
python http command-line python-2.x simplehttpserverI'm getting this error TypeError: super() takes at least 1 argument (0 given) using this code on python2.7.11: class Foo(object): def __…
python python-2.7 python-2.xI've written a simple multi-threaded game server in python that creates a new thread for each client connection. I'm finding …
python python-2.x broken-pipeI'm aware that I can use: isinstance(x, str) in python-3.x but I need to check if something is …
python string python-3.x python-2.xThe following snippet is annotated with the output (as seen on ideone.com): print "100" < "2" # True print "5" > "9" # False print "100" &…
python types comparison python-2.xFrom the Python 2.6 shell: >>> import sys >>> print sys.getdefaultencoding() ascii >>> print …
python unicode encoding ascii python-2.x