Status: Valid
Owner: ----
Labels: Type-Enhancement Priority-Medium
New issue 3885 by [email protected]: nullary functions should be allowed
http://code.google.com/p/sympy/issues/detail?id=3885
In [34]: f()
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-34-0ec059b9bfe1> in <module>()
----> 1 f()
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/function.pyc in
__new__(cls, *args, **options)
622 def __new__(cls, *args, **options):
623 args = map(sympify, args)
--> 624 result = super(AppliedUndef, cls).__new__(cls, *args,
**options)
625 result.nargs = len(args)
626 return result
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/cache.pyc in
wrapper(*args, **kw_args)
90 except KeyError:
91 pass
---> 92 func_cache_it_cache[k] = r = func(*args, **kw_args)
93 return r
94 return wrapper
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/function.pyc in
__new__(cls, *args, **options)
282 return result
283
--> 284 pr = max(cls._should_evalf(a) for a in result.args)
285 pr2 = min(cls._should_evalf(a) for a in result.args)
286 if pr2 > 0:
ValueError: max() arg is an empty sequence
It should also work with explicit subclasses of Function.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.