-__doc__ = """
+__doc__ = u"""
>>> A().test(3)
9
"""
-__doc__ = """
+__doc__ = u"""
>>> test1()
2
>>> test2()
-__doc__ = """
+__doc__ = u"""
>>> a = A()
>>> a.foo()
(True, 'yo')
-
-__doc__ = """
+__doc__ = u"""
>>> test(1, 2)
4 1 2 2 0 7 8
"""
-__doc__ = """
+__doc__ = u"""
>>> single_py(1, 2)
True
>>> single_py(2, 1)
-__doc__ = """
+__doc__ = u"""
>>> s = Spam()
>>> s.e = s
>>> s.e = 1
-__doc__ = """
+__doc__ = u"""
>>> fmod(7, 1.25)
0.75
"""
from __future__ import division
-__doc__ = """
+__doc__ = u"""
>>> from future_division import doit
>>> doit(1,2)
(0.5, 0)
import sys
if sys.version_info[0] >= 3:
- __doc__ = """
+ __doc__ = u"""
>>> u == 'test'
True
>>> isinstance(u, str)
True
"""
else:
- __doc__ = """
+ __doc__ = u"""
>>> u == u'test'
True
>>> isinstance(u, unicode)
-__doc__ = """
+__doc__ = u"""
>>> c_longs()
(1, 1L, -1L, 18446744073709551615L)
>>> py_longs()
(1, 1L, 100000000000000000000000000000000L, -100000000000000000000000000000000L)
"""
+import sys
+
+if sys.version_info[0] >= 3:
+ __doc__ = __doc__.replace(u'L', u'')
+
def c_longs():
cdef long a = 1L
cdef unsigned long ua = 1UL
-__doc__ = """
+__doc__ = u"""
>>> f()
"""
-__doc__ = """
+__doc__ = u"""
>>> test_ints(100)
(100, 100, 100)
>>> test_chars("yo")
-__doc__ = """
+__doc__ = u"""
>>> D = set_longlong(2**40, 2**50, 2, "yelp")
>>> D[2**40]
'yelp'
-__doc__ = """
+__doc__ = u"""
>>> test_sizeof()
True
True
-__doc__ = """
- >>> do_slice("abcdef", 2, 3)
+__doc__ = u"""
+ >>> do_slice("abcdef".encode(u"ASCII"), 2, 3)
('c', 'cdef', 'ab', 'abcdef')
- >>> do_slice("abcdef", 0, 5)
+ >>> do_slice("abcdef".encode(u"ASCII"), 0, 5)
('abcde', 'abcdef', '', 'abcdef')
"""
-__doc__ = """
+__doc__ = u"""
>>> test_constructor(1,2,255)
{'y': 2.0, 'x': 1.0, 'color': 255}
>>> test_constructor(1,None,255)
-__doc__ = """
+__doc__ = u"""
>>> B().coeffs_bitsize()
[2]
"""
-__doc__ = """
+__doc__ = u"""
>>> test_signed()
3 <type 'int'>
9 <type 'long'>