six (version 1.4.1)
index
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.py

Utilities for writing code that runs on Python 2 and 3

 
Modules
       
six.moves
operator
sys
types

 
Classes
       
__builtin__.module(__builtin__.object)
Module_six_moves_urllib
Module_six_moves_urllib_error
Module_six_moves_urllib_parse
Module_six_moves_urllib_request
Module_six_moves_urllib_response
Module_six_moves_urllib_robotparser
__builtin__.object
Iterator
_LazyDescr(__builtin__.object)
MovedAttribute
MovedModule

 
class Iterator(__builtin__.object)
     Methods defined here:
next(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Module_six_moves_urllib(__builtin__.module)
    Create a six.moves.urllib namespace that resembles the Python 3 namespace
 
 
Method resolution order:
Module_six_moves_urllib
__builtin__.module
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
error = <module 'six.moves.urllib_error' (built-in)>
parse = <module 'six.moves.urllib_parse' (built-in)>
request = <module 'six.moves.urllib_request' (built-in)>
response = <module 'six.moves.urllib_response' (built-in)>
robotparser = <module 'six.moves.urllib_robotparser' (built-in)>

Methods inherited from __builtin__.module:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data descriptors inherited from __builtin__.module:
__dict__

Data and other attributes inherited from __builtin__.module:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Module_six_moves_urllib_error(__builtin__.module)
    Lazy loading of moved objects in six.moves.urllib_error
 
 
Method resolution order:
Module_six_moves_urllib_error
__builtin__.module
__builtin__.object

Methods defined here:
ContentTooShortError
HTTPError
URLError

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from __builtin__.module:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data descriptors inherited from __builtin__.module:
__dict__

Data and other attributes inherited from __builtin__.module:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Module_six_moves_urllib_parse(__builtin__.module)
    Lazy loading of moved objects in six.moves.urllib_parse
 
 
Method resolution order:
Module_six_moves_urllib_parse
__builtin__.module
__builtin__.object

Methods defined here:
ParseResult
parse_qs
parse_qsl
quote
quote_plus
unquote
unquote_plus
urldefrag
urlencode
urljoin
urlparse
urlsplit
urlunparse
urlunsplit

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from __builtin__.module:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data descriptors inherited from __builtin__.module:
__dict__

Data and other attributes inherited from __builtin__.module:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Module_six_moves_urllib_request(__builtin__.module)
    Lazy loading of moved objects in six.moves.urllib_request
 
 
Method resolution order:
Module_six_moves_urllib_request
__builtin__.module
__builtin__.object

Methods defined here:
AbstractBasicAuthHandler
AbstractDigestAuthHandler
BaseHandler
CacheFTPHandler
FTPHandler
FancyURLopener
FileHandler
HTTPBasicAuthHandler
HTTPCookieProcessor
HTTPDefaultErrorHandler
HTTPDigestAuthHandler
HTTPErrorProcessor
HTTPHandler
HTTPPasswordMgr
HTTPPasswordMgrWithDefaultRealm
HTTPRedirectHandler
HTTPSHandler
OpenerDirector
ProxyBasicAuthHandler
ProxyDigestAuthHandler
ProxyHandler
Request
URLopener
UnknownHandler
build_opener
getproxies
install_opener
pathname2url
url2pathname
urlcleanup
urlopen
urlretrieve

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from __builtin__.module:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data descriptors inherited from __builtin__.module:
__dict__

Data and other attributes inherited from __builtin__.module:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Module_six_moves_urllib_response(__builtin__.module)
    Lazy loading of moved objects in six.moves.urllib_response
 
 
Method resolution order:
Module_six_moves_urllib_response
__builtin__.module
__builtin__.object

Methods defined here:
addbase
addclosehook
addinfo
addinfourl

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from __builtin__.module:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data descriptors inherited from __builtin__.module:
__dict__

Data and other attributes inherited from __builtin__.module:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Module_six_moves_urllib_robotparser(__builtin__.module)
    Lazy loading of moved objects in six.moves.urllib_robotparser
 
 
Method resolution order:
Module_six_moves_urllib_robotparser
__builtin__.module
__builtin__.object

Methods defined here:
RobotFileParser

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from __builtin__.module:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data descriptors inherited from __builtin__.module:
__dict__

Data and other attributes inherited from __builtin__.module:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class MovedAttribute(_LazyDescr)
    
Method resolution order:
MovedAttribute
_LazyDescr
__builtin__.object

Methods defined here:
__init__(self, name, old_mod, new_mod, old_attr=None, new_attr=None)

Methods inherited from _LazyDescr:
__get__(self, obj, tp)

Data descriptors inherited from _LazyDescr:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MovedModule(_LazyDescr)
    
Method resolution order:
MovedModule
_LazyDescr
__builtin__.object

Methods defined here:
__init__(self, name, old, new=None)

Methods inherited from _LazyDescr:
__get__(self, obj, tp)

Data descriptors inherited from _LazyDescr:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
add_metaclass(metaclass)
Class decorator for creating a class with a metaclass.
add_move(move)
Add an item to six.moves.
advance_iterator = next(...)
next(iterator[, default])
 
Return the next item from the iterator. If default is given and the iterator
is exhausted, it is returned instead of raising StopIteration.
b(s)
Byte literal
byte2int(bs)
callable(...)
callable(object) -> bool
 
Return whether the object is callable (i.e., some kind of function).
Note that classes are callable, as are instances with a __call__() method.
create_bound_method(func, obj)
exec_(_code_, _globs_=None, _locs_=None)
Execute code in a namespace.
get_unbound_function(unbound)
Get the function out of a possibly unbound function
indexbytes(buf, i)
int2byte = chr(...)
chr(i) -> character
 
Return a string of one character with ordinal i; 0 <= i < 256.
iterbytes(buf)
iteritems(d, **kw)
Return an iterator over the (key, value) pairs of a dictionary.
iterkeys(d, **kw)
Return an iterator over the keys of a dictionary.
iterlists(d, **kw)
Return an iterator over the (key, [values]) pairs of a dictionary.
itervalues(d, **kw)
Return an iterator over the values of a dictionary.
next(...)
next(iterator[, default])
 
Return the next item from the iterator. If default is given and the iterator
is exhausted, it is returned instead of raising StopIteration.
print_(*args, **kwargs)
The new-style print function.
remove_move(name)
Remove item from six.moves.
reraise(tp, value, tb=None)
Reraise an exception.
u(s)
Text literal
unichr(...)
unichr(i) -> Unicode character
 
Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff.
with_metaclass(meta, *bases)
Create a base class with a metaclass.

 
Data
        MAXSIZE = 9223372036854775807
PY2 = True
PY3 = False
__author__ = 'Benjamin Peterson <benjamin@python.org>'
__version__ = '1.4.1'
class_types = (<type 'type'>, <type 'classobj'>)
get_function_closure = <operator.attrgetter object>
get_function_code = <operator.attrgetter object>
get_function_defaults = <operator.attrgetter object>
get_function_globals = <operator.attrgetter object>
get_method_function = <operator.attrgetter object>
get_method_self = <operator.attrgetter object>
integer_types = (<type 'int'>, <type 'long'>)
string_types = (<type 'basestring'>,)

 
Author
        Benjamin Peterson <benjamin@python.org>