On Sun, Jan 17, 2010 at 9:44 PM, Jive Dadson <notonthe...@noisp.com> wrote: > Matt Newville wrote: >> >> On Jan 17, 7:25 pm, Jive Dadson <notonthe...@noisp.com> wrote: >>> >>> I just found another module that broke when I went to 2.6. > Gnuplot. >>> Apparently one of its routines has a parameter >>> named "with." That used to be okay, and now it's not. >> >> This was fixed in version 1.8 of Gnuplot.py >> >>> Once I get everything to work under 2.6, I am using it >>> forever or until new releases no longer break working >>> code, whichever comes first. >> >> Hey, good luck with that forever plan. > > I have source code that uses the "with" kwarg. What do I replace it with?
Rename the argument to something else that's not a Python keyword. When keyword conflicts occur, appending an underscore (i.e. with_) is a popular option, as is using a nonstandard spelling (e.g. wif) Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list