diff --git a/toolz/curried/__init__.py b/toolz/curried/__init__.py index 20b6e2a0..356eddbd 100644 --- a/toolz/curried/__init__.py +++ b/toolz/curried/__init__.py @@ -36,7 +36,6 @@ count, curry, diff, - dissoc, first, flip, frequencies, diff --git a/toolz/functoolz.py b/toolz/functoolz.py index a68f26f8..01d3857a 100644 --- a/toolz/functoolz.py +++ b/toolz/functoolz.py @@ -26,6 +26,7 @@ def identity(x): def apply(*func_and_args, **kwargs): """ Applies a function and returns the results + >>> def double(x): return 2*x >>> def inc(x): return x + 1 >>> apply(double, 5) @@ -625,6 +626,7 @@ def pipe(data, *funcs): See Also: compose + compose_left thread_first thread_last """ diff --git a/toolz/tests/test_functoolz.py b/toolz/tests/test_functoolz.py index 63862447..4938df8a 100644 --- a/toolz/tests/test_functoolz.py +++ b/toolz/tests/test_functoolz.py @@ -1,4 +1,5 @@ import inspect +import toolz from toolz.functoolz import (thread_first, thread_last, memoize, curry, compose, compose_left, pipe, complement, do, juxt, flip, excepts, apply) @@ -627,7 +628,8 @@ def __int__(self): assert MyClass().my_static_method(0, 1) == '2' assert compose(f, h).__wrapped__ is h - assert compose(f, h).__class__.__wrapped__ is None + if hasattr(toolz, 'sandbox'): # only test this with Python version (i.e., not Cython) + assert compose(f, h).__class__.__wrapped__ is None # __signature__ is python3 only if PY3: