Issue 1171: (x**2).evalf(subs={x:0}) raises TypeError: NoneType is not iterable http://code.google.com/p/sympy/issues/detail?id=1171
New issue report by greg.sidier: system config: sympy-0.6.2 python-2.5.2 sample code causing bug: >>> import sympy >>> from sympy.abc import x >>> print (x**2).evalf(subs={x:0.0}) <ipython console> in <module>() /lib/python2.5/site-packages/sympy/core/evalf.pyc in Basic_evalf(x, n, **options) 954 options['maxprec'] = max(prec, DEFAULT_MAXPREC) 955 try: --> 956 result = evalf(x, prec+4, options) 957 except NotImplementedError: 958 # Fall back to the ordinary evalf /lib/python2.5/site-packages/sympy/core/evalf.pyc in evalf(x, prec, options) 894 def evalf(x, prec, options): 895 try: --> 896 r = evalf_table[x.func](x, prec, options) 897 except KeyError: 898 #r = finalize_complex(x._eval_evalf(prec)._mpf_, fzero, prec) /lib/python2.5/site-packages/sympy/core/evalf.pyc in evalf_pow(v, prec, options) 406 if case == 3: return None, fneg(z), None, target_prec 407 # General complex number to arbitrary integer power --> 408 re, im = libmpc.mpc_pow_int((re, im), p, prec) 409 # Assumes full accuracy in input 410 return finalize_complex(re, im, target_prec) /lib/python2.5/site-packages/sympy/mpmath/libmpc.pyc in mpc_pow_int(z, n, prec, rnd) 176 if n == 0: return mpc_one 177 if n == 1: return mpc_pos(z, prec, rnd) --> 178 if n == 2: return mpc_mul(z, z, prec, rnd) 179 if n == -1: return mpc_div(mpc_one, z, prec, rnd) 180 if n < 0: return mpc_div(mpc_one, mpc_pow_int(z, -n, prec+4), prec, rnd) /lib/python2.5/site-packages/sympy/mpmath/libmpc.pyc in mpc_mul((a, b), (c, d), prec, rnd) 51 imaginary parts separately.""" 52 ---> 53 asign, aman, aexp, abc = a 54 bsign, bman, bexp, bbc = b 55 csign, cman, cexp, cbc = c TypeError: 'NoneType' object is not iterable Issue attributes: Status: New Owner: ---- Labels: Type-Defect Priority-Medium -- 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 sympy-issues@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---