Arrrrgh! Another module broken

J

Jive Dadson

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.

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.
 
C

Chris Rebert

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.

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.

The latter ain't gonna happen. Going 2.x --> 3.x *will* break code,
and no future 3.x version will change that fact.

Cheers,
Chris
 
M

Matt Newville

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.

--Matt
 
J

Jive Dadson

Matt said:
Hey, good luck with that forever plan.

--Matt

Yeah, I know. I'm just glad I don't have to get new executables and
dll's from all my software vendors every Tuesday when the MS Window XP
updates come out.

2.6 FOREVER!
 
J

Jive Dadson

Matt said:
This was fixed in version 1.8 of Gnuplot.py


Hey, good luck with that forever plan.

--Matt


Thanks. I also had to install a new version of numpy. Have I kvetched
enough about have to track down new versions of all my third party stuff
every time I up-rev Python? I guess so. :)

2.6 FOREVER!
 
J

Jive Dadson

Matt said:
This was fixed in version 1.8 of Gnuplot.py


Hey, good luck with that forever plan.

--Matt

I have source code that uses the "with" kwarg. What do I replace it with?
 
C

Chris Rebert

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
 
G

Grant Edwards

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.

I remember seeing depreicated warnings about that _years_ ago,
and I would have sworn it's been fixed for at least a couple
years.
 
N

nn

I remember seeing depreicated warnings about that _years_ ago,
and I would have sworn it's been fixed for at least a couple
years.

FWIW, "with" deprecation warnings exist since September 19, 2006 when
Python 2.5 was released.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,177
Messages
2,570,953
Members
47,507
Latest member
codeguru31

Latest Threads

Top