Comment #1 on issue 1536 by ondrej.certik: one test failure in Sage
http://code.google.com/p/sympy/issues/detail?id=1536

Here is the core of the problem:

sage: import sympy
sage: sympy.bernoulli(1000)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)

/home/ondrej/<ipython console> in <module>()

/home/ondrej/ext/sage-4.0.1-linux-Ubuntu_9.04-sse2-x86_64-Linux/local/lib/python2.5/site-packages/sympy/core/multidimensional.pyc
in wrapper(*args, **kwargs)
     125                     result = apply_on_element(wrapper, args,  
kwargs, n)
     126                     return result
--> 127             return f(*args, **kwargs)
     128         wrapper.__doc__ = f.__doc__
     129         wrapper.__name__ = f.__name__

/home/ondrej/ext/sage-4.0.1-linux-Ubuntu_9.04-sse2-x86_64-Linux/local/lib/python2.5/site-packages/sympy/core/cache.pyc
in wrapper(*args, **kw_args)
      83         except KeyError:
      84             pass
---> 85         func_cache_it_cache[k] = r = func(*args, **kw_args)
      86         return r
      87

/home/ondrej/ext/sage-4.0.1-linux-Ubuntu_9.04-sse2-x86_64-Linux/local/lib/python2.5/site-packages/sympy/core/function.pyc
in __new__(cls, *args, **options)
     137         if options.get('evaluate') is False:
     138             return Basic.__new__(cls, *args, **options)
--> 139         evaluated = cls.eval(*args)
     140         if evaluated is not None: return evaluated
     141         # Just undefined functions have nargs == None

/home/ondrej/ext/sage-4.0.1-linux-Ubuntu_9.04-sse2-x86_64-Linux/local/lib/python2.5/site-packages/sympy/functions/combinatorial/numbers.pyc
in eval(cls, n, sym)
     257                     if n > 500:
     258                         p, q = bernfrac(n)
--> 259                         return Rational(int(p), q)
     260                     case = n % 6
     261                     highest_cached = cls._highest[case]

/home/ondrej/ext/sage-4.0.1-linux-Ubuntu_9.04-sse2-x86_64-Linux/local/lib/python2.5/site-packages/sympy/core/cache.pyc
in wrapper(*args, **kw_args)
     266                 pass
     267             self.fix_allowed_types()
--> 268             new_args = tuple([template.process(a,func,i) for (a,  
template, i)
in zip(args, self.arg_templates, range(len(args)))])
     269             assert len(args)==len(new_args)
     270             new_kw_args = {}

/home/ondrej/ext/sage-4.0.1-linux-Ubuntu_9.04-sse2-x86_64-Linux/local/lib/python2.5/site-packages/sympy/core/cache.pyc
in process(self, obj, func, index)
     188             raise ValueError('%s return value must be of type %r  
but got %r'
% (func_src, self.allowed_types, obj))
     189         if isinstance(index, (int,long)):
--> 190             raise ValueError('%s %s-th argument must be of type %r  
but got
%r' % (func_src, index, self.allowed_types, obj))
     191         if isinstance(index, str):
     192             raise ValueError('%s %r keyword argument must be of  
type %r but
got %r' % (func_src, index, self.allowed_types, obj))

ValueError:
/home/ondrej/ext/sage-4.0.1-linux-Ubuntu_9.04-sse2-x86_64-Linux/local/lib/python2.5/site-packages/sympy/core/numbers.py:493:function
__new__ 2-th argument must be of type (<type 'int'>, <type 'long'>, <class
'sympy.core.numbers.Integer'>, <type 'NoneType'>) but got 342999030


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to