Skip to content

Commit

Permalink
Use for else construct
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Oct 6, 2015
1 parent 15d65c5 commit 789f9d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sympy/core/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,15 +648,13 @@ def fdiff(self, argindex=1):
raise ArgumentIndexError(self, argindex)

if self.args[argindex - 1].is_Symbol:
use_dummy = False
for i in range(len(self.args)):
if i == argindex:
continue
# See issue 8510
if self.args[argindex - 1] in self.args[i].free_symbols:
use_dummy=True
break
if not use_dummy:
else:
return Derivative(self, self.args[argindex - 1], evaluate=False)
# See issue 4624 and issue 4719 and issue 5600
arg_dummy = Dummy('xi_%i' % argindex)
Expand Down

0 comments on commit 789f9d6

Please sign in to comment.