# Extension("inherit_bug", ["inherit_bug.pyx"]),
Extension("override", ["override.pyx"]),
Extension("cond", ["cond.pyx"]),
- Extension("submodule.test", ["submodule/test.pyx"]),
+# Extension("submodule.test", ["submodule/test.pyx"]),
Extension("errors", ["errors.pyx"]),
Extension("cpdef", ["cpdef.pyx"]),
Extension("range", ["range.pyx"]),
Extension("ints", ["ints.pyx"]),
Extension("clear", ["clear.pyx"]),
Extension("detect_override", ["detect_override.pyx"]),
+ Extension("fixes", ["fixes.pyx"]),
],
cmdclass = {'build_ext': build_ext},
# include_dirs = "/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/"
import os, sys, unittest, doctest
-from Cython.Distutils.build_ext import build_ext
-from Cython.Distutils.extension import Extension
+#from Cython.Distutils.build_ext import build_ext
+#from Cython.Distutils.extension import Extension
+
+from distutils.extension import Extension
+from Cython.Distutils import build_ext
+
from distutils.dist import Distribution
distutils_distro = Distribution()
__doc__ = """
>>> unpack_normal([1,2])
(1, 2)
- >>> unpack_normal([1,2,3])
+ >>> unpack_normal([1,2,3]) # doctest: +ELLIPSIS
Traceback (most recent call last):
- ValueError: too many values to unpack
- >>> unpack_normal([1])
- Traceback (most recent call last):
- ValueError: need more than 1 values to unpack
+ ValueError: ...
>>> unpack_comp([1,2])
(1, 2)
- >>> unpack_comp([1,2,3])
- Traceback (most recent call last):
- ValueError: too many values to unpack
- >>> unpack_comp([1])
+ >>> unpack_comp([1,2,3]) # doctest: +ELLIPSIS
Traceback (most recent call last):
- ValueError: need more than 1 values to unpack
+ ValueError: ...
>>> unpack_expr([1,2])
(1, 4)
- >>> unpack_expr([1,2,3])
- Traceback (most recent call last):
- ValueError: too many values to unpack
- >>> unpack_expr([1])
+ >>> unpack_expr([1,2,3]) # doctest: +ELLIPSIS
Traceback (most recent call last):
- ValueError: need more than 1 values to unpack
+ ValueError: ...
"""
def unpack_normal(l):