Commit bcb92075 authored by Robert Bradshaw's avatar Robert Bradshaw

merge

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