trouble running Grail

Andrew Dalke dalke at dalkescientific.com
Fri Sep 7 19:33:22 EDT 2001


Lance E Sloan:
>        massaged.append((g, c), v % fparms_dict)
>    TypeError: append requires exactly 1 argument; 2 given
>
>Why would the Grail author give two arguments to append?  Was
>there an old version of Python that allowed two arguments?

Old, old Python would append all arguments, and if there's
more than one would put them in a tuple.  Newer (1.2?) Pythons
deprecated it.  Newest Pythons (2.x) make it illegal.

Things should work if you change
>        massaged.append((g, c), v % fparms_dict)
to append a tuple explicitly, as in
>        massaged.append(((g, c), v % fparms_dict))

                    Andrew






More information about the Python-list mailing list