Package PyFoam :: Package ThirdParty :: Module six
[hide private]
[frames] | no frames]

Module six

source code

Utilities for writing code that runs on Python 2 and 3


Version: 1.2.0

Author: Benjamin Peterson <benjamin@python.org>

Classes [hide private]
  Iterator
  MovedAttribute
  MovedModule
  _LazyDescr
  _MovedItems
Lazy loading of moved objects
Functions [hide private]
 
_add_doc(func, doc)
Add documentation to a function.
source code
 
_import_module(name)
Import module, returning the module after the last dot.
source code
 
add_move(move)
Add an item to six.moves.
source code
 
b(s)
Byte literal
source code
 
exec_(code, globs=None, locs=None)
Execute code in a namespace.
source code
 
get_unbound_function(unbound)
Get the function out of a possibly unbound function
source code
 
iteritems(d)
Return an iterator over the (key, value) pairs of a dictionary.
source code
 
iterkeys(d)
Return an iterator over the keys of a dictionary.
source code
 
itervalues(d)
Return an iterator over the values of a dictionary.
source code
 
print_(*args, **kwargs)
The new-style print function.
source code
 
remove_move(name)
Remove item from six.moves.
source code
 
reraise(tp, value, tb=None)
Reraise an exception.
source code
 
u(s)
Text literal
source code
 
with_metaclass(meta, base=<type 'object'>)
Create a base class with a metaclass.
source code
Variables [hide private]
  MAXSIZE = 9223372036854775807
  PY3 = False
  __package__ = 'PyFoam.ThirdParty'
  _func_code = 'func_code'
  _func_defaults = 'func_defaults'
  _iteritems = 'iteritems'
  _iterkeys = 'iterkeys'
  _itervalues = 'itervalues'
  _meth_func = 'im_func'
  _meth_self = 'im_self'
  _moved_attributes = [<PyFoam.ThirdParty.six.MovedAttribute obj...
  class_types = (<type 'type'>, <type 'classobj'>)
  get_function_code = <operator.attrgetter object at 0x110383190>
  get_function_defaults = <operator.attrgetter object at 0x11038...
  get_method_function = <operator.attrgetter object at 0x110383110>
  get_method_self = <operator.attrgetter object at 0x110383150>
  integer_types = (<type 'int'>, <type 'long'>)
  string_types = (<type 'basestring'>)

Imports: BytesIO, StringIO, advance_iterator, binary_type, callable, int2byte, moves, next, operator, sys, text_type, types


Variables Details [hide private]

_moved_attributes

Value:
[<PyFoam.ThirdParty.six.MovedAttribute object at 0x110380610>,
 <PyFoam.ThirdParty.six.MovedAttribute object at 0x110380650>,
 <PyFoam.ThirdParty.six.MovedAttribute object at 0x110380690>,
 <PyFoam.ThirdParty.six.MovedAttribute object at 0x1103806d0>,
 <PyFoam.ThirdParty.six.MovedAttribute object at 0x110380710>,
 <PyFoam.ThirdParty.six.MovedAttribute object at 0x110380750>,
 <PyFoam.ThirdParty.six.MovedAttribute object at 0x110380790>,
 <PyFoam.ThirdParty.six.MovedAttribute object at 0x1103807d0>,
...

get_function_defaults

Value:
<operator.attrgetter object at 0x1103831d0>