Commit bcb92075 authored by Robert Bradshaw's avatar Robert Bradshaw

merge

parent 7199b302
......@@ -16,7 +16,7 @@ setup(
# 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"]),
......@@ -24,6 +24,7 @@ setup(
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/"
......
......@@ -2,8 +2,12 @@
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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment