Commits

Ben Spaulding committed 6e9200a

Add long_type constant for handling long/int.

Comments (0)

Files changed (2)

documentation/index.rst

    :func:`py2:int`, and in Python 3, just :func:`py3:int`.
 
 
+.. data:: long_type
+
+   Type for representing long data.  This is :func:`py2:long` in Python 2 and
+   :func:`py3:long` in Python 3.
+
+
 .. data:: string_types
 
    Possible types for text data.  This is :func:`py2:basestring` in Python 2 and
     class_types = type,
     text_type = str
     binary_type = bytes
+    long_type = int
 
     MAXSIZE = sys.maxsize
 else:
     class_types = (type, types.ClassType)
     text_type = unicode
     binary_type = str
+    long_type = long
 
     if sys.platform.startswith("java"):
         # Jython always uses 32 bits.