Gang Of Coders
Home
About Us
Contact Us
All Python 2.x Solutions on Gang of Coders
Total of 89 Python 2.x Solutions
Match text between two strings with regular expression
Python
Regex
Python 2.x
Using print() (the function version) in Python2.x
Python
Printing
Python 2.x
Function Call
How to send POST request?
Urllib
Python 2.x
Httplib
overriding bool() for custom class
Python
Class
Casting
Boolean
Python 2.x
Set literal gives different result from set function call
Python
Hash
Set
Python 2.x
Python Internals
How to handle a broken pipe (SIGPIPE) in python?
Python
Python 2.x
Broken Pipe
Python string to unicode
Python
String
Unicode
Python 2.x
Python Unicode
StringIO and compatibility with 'with' statement (context manager)
Python
Python 2.x
With Statement
Contextmanager
Malformed String ValueError ast.literal_eval() with String representation of Tuple
Python
Parsing
Python 2.x
Abstract Syntax-Tree
Representation
How to get string objects instead of Unicode from JSON?
Python
Json
Serialization
Unicode
Python 2.x
How can I read large text files line by line, without loading it into memory?
Python
Python 2.x
Python2: Should I use Pickle or cPickle?
Python
Serialization
Pickle
Python 2.x
How do I prevent a C shared library to print on stdout in python?
Python
Ctypes
Python 2.x
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 3-6: invalid data
Python
Unicode
Python 2.x
vcvarsall.bat needed for python to compile missing from visual studio 2015 ( v 14)
Python 3.x
Visual C++
Visual Studio-2015
Pip
Python 2.x
Uninstall python built from source?
Python
Linux
Ubuntu
Python 2.x
How to pick just one item from a generator?
Python
Iterator
Generator
Python 2.x
How to return dictionary keys as a list in Python?
Python
Python 3.x
List
Dictionary
Python 2.x
Safest way to convert float to integer in python?
Python
Math
Integer
Python 2.x
Web-scraping JavaScript page with Python
Javascript
Python
Web Scraping
Python 2.x
How to use XPath in Python?
Python
Xml
Dom
Xpath
Python 2.x
Writing Unicode text to a text file?
Python
Unicode
Character Encoding
Python 2.x
How do I keep Python print from adding newlines or spaces?
Python
Printing
Formatting
Python 2.x
How to print a percentage value in python?
Python
Python 2.x
How to run multiple Python versions on Windows
Python
Windows
Python 3.x
Compatibility
Python 2.x
What are the differences between the urllib, urllib2, urllib3 and requests module?
Python
Python Requests
Urllib2
Urllib
Python 2.x
What is __future__ in Python used for and how/when to use it, and how it works
Python
Python 2.x
What is `1..__truediv__` ? Does Python have a .. ("dot dot") notation syntax?
Python
Python 3.x
Syntax
Operators
Python 2.x
Why should we NOT use sys.setdefaultencoding("utf-8") in a py script?
Python
Encoding
Utf 8
Python 2.x
Sys
What is the difference between range and xrange functions in Python 2.X?
Python
Loops
Range
Python 2.x
Xrange
What is the difference between encode/decode?
Python
String
Unicode
Character Encoding
Python 2.x
How to check if variable is string with python 2 and 3 compatibility
Python
String
Python 3.x
Python 2.x
How does Python 2 compare string and int? Why do lists compare as greater than numbers, and tuples greater than lists?
Python
Types
Comparison
Python 2.x
Determine if 2 lists have the same elements, regardless of order?
Python
List
Equality
Python 2.x
What exactly do "u" and "r" string prefixes do, and what are raw string literals?
Python
Unicode
Python 2.x
Rawstring
How can I force division to be floating point? Division keeps rounding down to 0?
Python
Floating Point
Integer
Division
Python 2.x
Combine several images horizontally with Python
Python
Python 3.x
Python Imaging-Library
Python 2.x
Paste
Why doesn't print work in a lambda?
Python
Printing
Lambda
Python 2.x
What is the difference between dict.items() and dict.iteritems() in Python2?
Python
Dictionary
Python 2.x
What is the difference between isinstance('aaa', basestring) and isinstance('aaa', str)?
Python
Python 2.x
Built in-Types
Python: Using .format() on a Unicode-escaped string
Python
String
Unicode
Python 2.x
write() versus writelines() and concatenated strings
Python
String
File Io
Python 2.x
What is the best way to remove accents (normalize) in a Python unicode string?
Python
Python 3.x
Unicode
Python 2.x
Diacritics
Why does Python print unicode characters when the default encoding is ASCII?
Python
Unicode
Encoding
Ascii
Python 2.x
Why does the division get rounded to an integer?
Python
Math
Python 2.x
End of support for python 2.7?
Python
Python 3.x
Python 2.7
Python 2.x
raw_input function in Python
Python
Python 2.x
Why does Python give the "wrong" answer for square root? What is integer division in Python 2?
Python
Math
Python 2.x
Sqrt
Python - 'ascii' codec can't decode byte
Python
Python 2.7
Unicode
Python 2.x
Python Unicode
nonlocal keyword in Python 2.x
Python
Closures
Python 2.x
Python Nonlocal
Printing without newline (print 'a',) prints a space, how to remove?
Python
String
Printing
Python 2.x
How to add an element to the beginning of an OrderedDict?
Python
Python 3.x
Dictionary
Python 2.x
Ordereddict
Python super() raises TypeError
Python
Inheritance
Python 2.x
Super
Preserve case in ConfigParser?
Python
Configuration Files
Python 2.x
Configparser
Copy file with pathlib in Python
Python
File
Copy
Python 2.x
Pathlib
Why does Python's dict.keys() return a list and not a set?
Python
Python 2.x
No module named MySQLdb
Python
Django
Python 2.x
Is it possible to run python SimpleHTTPServer on localhost only?
Python
Http
Command Line
Python 2.x
Simplehttpserver
How do you use subprocess.check_output() in Python?
Python
Python 3.x
Python 2.x
Python exception chaining
Python
Exception
Coding Style
Python 2.x
How to read a CSV file from a URL with Python?
Python
Csv
Curl
Output
Python 2.x
How can I denote unused function arguments?
Python
Python 2.x
How do I undo True = False in python interactive mode?
Python
Boolean
Python 2.x
How to reinstall python@2 from Homebrew?
Python
Macos
Homebrew
Python 2.x
Open the file in universal-newline mode using the CSV Django module
Django
Macos
Csv
Newline
Python 2.x
How can I concatenate str and int objects?
Python
String
Python 3.x
Concatenation
Python 2.x
Python unexpected EOF while parsing
Python
Eof
Python 2.x
Python, default keyword arguments after variable length positional arguments
Python
Variadic Functions
Python 2.x
Named Parameters
Default Parameters
When is it better to use zip instead of izip?
Python 2.7
Python 2.x
Itertools
Generator as function argument
Python
Python 3.x
Syntax
Python 2.x
Generator Expression
How to pretty-print a numpy.array without scientific notation and with given precision?
Python
Numpy
Python 2.x
Pretty Print
In Python 2, how do I write to variable in the parent scope?
Python
Closures
Scope
Python 2.x
Defining "boolness" of a class in python
Python
Python 2.7
Class
Boolean
Python 2.x
How to use a multiprocessing.Manager()?
Python
Multiprocessing
Python 2.x
Convert float to string in positional format (without scientific notation and false precision)
Python
Python 3.x
Floating Point
Number Formatting
Python 2.x
Converting "yield from" statement to Python 2.7 code
Python
Generator
Python 2.x
Yield
Yield From
TypeError: super() takes at least 1 argument (0 given) error is specific to any python version?
Python
Python 2.7
Python 2.x
How to dynamically create a derived type in the Python C-API
Python
Derived Class
Python 2.x
Python C-Api
What is the advantage of the new print function in Python 3.x over the Python 2 print statement?
Python
Function
Printing
Python 3.x
Python 2.x
What do numbers starting with 0 mean in python?
Python
Python 2.x
Setting the correct encoding when piping stdout in Python
Python
Encoding
Terminal
Stdout
Python 2.x
SQLite, python, unicode, and non-utf data
Python
Sqlite
Unicode
Utf 8
Python 2.x
What does `<>` mean in Python?
Python
Syntax
Operators
Python 2.x
Why can't I use the method __cmp__ in Python 3 as for Python 2?
Python
Python 3.x
Python 2.x
Partial Ordering
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128)
Python
Unicode
Beautifulsoup
Python 2.x
Python Unicode
Tell if Python is in interactive mode
Python
Interactive
Python 2.5
Python 2.x
Pythonic way to split a list into first and rest?
Python
List
Split
Python 2.x
How can I get 2.x-like sorting behaviour in Python 3.x?
Python
Python 3.x
Sorting
Python 2.x
A good way to make long strings wrap to newline?
Python
String
Python 3.x
Python 2.x