Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/six.html
Дата изменения: Wed Sep 24 13:46:35 2014
Дата индексирования: Mon Apr 11 02:47:16 2016
Кодировка:

Поисковые слова: molecular cloud
Python: module six
 
 
six (version 1.2.0)
index
/data/scheduling/spss_tools/com/six.py

Utilities for writing code that runs on Python 2 and 3

 
Modules
       
moves
operator
sys
types

 
Classes
       
__builtin__.object
Iterator
X
_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 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)

 
class X(__builtin__.object)
    # It's possible to have sizeof(long) != sizeof(Py_ssize_t).
 
  Methods defined here:
__len__(self)

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

 
Functions
       
add_move(move)
Add an item to six.moves.
advance_iterator(it)
b(s)
Byte literal
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.
exec_(code, globs=None, locs=None)
Execute code in a namespace.
get_unbound_function(unbound)
Get the function out of a possibly unbound function
int2byte = chr(...)
chr(i) -> character
 
Return a string of one character with ordinal i; 0 <= i < 256.
iteritems(d)
Return an iterator over the (key, value) pairs of a dictionary.
iterkeys(d)
Return an iterator over the keys of a dictionary.
itervalues(d)
Return an iterator over the values of a dictionary.
next = advance_iterator(it)
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
with_metaclass(meta, base=<type 'object'>)
Create a base class with a metaclass.

 
Data
        MAXSIZE = 2147483647
PY3 = False
__author__ = 'Benjamin Peterson <benjamin@python.org>'
__version__ = '1.2.0'
class_types = (<type 'type'>, <type 'classobj'>)
get_function_code = <operator.attrgetter object at 0x3dedd0>
get_function_defaults = <operator.attrgetter object at 0x3dedf0>
get_method_function = <operator.attrgetter object at 0x3ded90>
get_method_self = <operator.attrgetter object at 0x3dedb0>
integer_types = (<type 'int'>, <type 'long'>)
string_types = (<type 'basestring'>,)

 
Author
        Benjamin Peterson <benjamin@python.org>