Theano/Theano — pull request #1709 by yosinski (2014-01-24 22:12:16+00:00)
Title: Fix for string substitution / implicity tuple bug.

The current code produces an error on reaching lines 795 or 802, because of incorrect assumptions about the relative priority of string substitution and implicit tuple creation (string substitution happens first).

/s/Theano/theano/scalar/basic.pyc in make_node(self, *inputs)
800 if len(inputs) != self.nin:
801 raise TypeError("Wrong number of inputs for
%s.make_node (got %i(%s), expected %i)" %
--> 802 self, len(inputs),
str(inputs), self.nin)
803 inputs = [as_scalar(input) for input in inputs]
804 outputs = [t() for t in self.output_types([input.type

TypeError: not enough arguments for format string

The fix was simply to enclose the intended implicit tuple in a set of parentheses.