Package netaddr :: Module compat
[hide private]
[frames] | no frames]

Module compat

Compatibility wrappers providing uniform behaviour for Python code required to run under both Python 2.x and 3.x.

All operations emulate 2.x behaviour where applicable.

Functions [hide private]
 
_is_str(x)
 
_is_int(x)
 
_callable(x)
 
_dict_keys(x)
 
_dict_items(x)
 
_iter_dict_keys(x)
 
_bytes_join(*args)
 
_zip(*args)
 
_range(*args, **kwargs)
 
_func_name(f, name=None)
 
_func_doc(f, docstring=None)
Variables [hide private]
  _sys_maxint = 2147483647
  _int_type = (<type 'int'>, <type 'long'>)
  _str_type = (<type 'str'>, <type 'unicode'>)
  __package__ = 'netaddr'