Re: [dabo-users] Interesting read.

2009-09-18 Thread Roger Gammans
On Thu, Sep 17, 2009 at 08:43:53PM -0700, Paul McNett wrote: On a more serious note, rest assured if something practical were affected by our gratuitous use of isinstance(), we'd change it. Usually, we don't care if an object supports an interface, we care if the object is an instance

Re: [dabo-users] Interesting read.

2009-09-18 Thread Paul McNett
Paul McNett wrote: Roger Gammans wrote: It is a difficult issue, and isinstance is a easy crutch to fall into using , and I'm sure parts of my own code suffer from this as well. Patches are welcome! :) Specifically, if someone wanted to take this on, I'd want to see some functions added

Re: [dabo-users] Interesting read.

2009-09-18 Thread John
On Friday 18 September 2009 06:46:49 am Paul McNett wrote: Paul McNett wrote: Roger Gammans wrote: It is a difficult issue, and isinstance is a easy crutch to fall into using , and I'm sure parts of my own code suffer from this as well. Patches are welcome! :) Specifically, if

Re: [dabo-users] Interesting read.

2009-09-18 Thread Paul McNett
John wrote: If the developer is moving from VFP it maybe easier to understand or read. But as the developer becomes used to reading python I see the opposite effect. Why does VFP have anything to do with this? Shorter strings, where each communicates the same meaning, are going to be

Re: [dabo-users] Interesting read.

2009-09-18 Thread John
On Friday 18 September 2009 07:54:55 am Paul McNett wrote: John wrote: If the developer is moving from VFP it maybe easier to understand or read. But as the developer becomes used to reading python I see the opposite effect. Why does VFP have anything to do with this? Shorter strings,

Re: [dabo-users] Interesting read.

2009-09-18 Thread Paul McNett
John wrote: I disagree with the last statement of easier to read. I've spent more time on this already than my interest level in it. If someone wants to pursue replacing isinstance() with better code that is more interface-based, then they can take this argument up with you. Paul

[dabo-users] scope on replace.

2009-09-18 Thread JpoorRandP
Dabo Folk: We have a form with two grids. The left grid displays test batches, and the right grid displays the tubes in the test batches. We'd like to have a button change the values of a field on the tubes table (the child of the batch table) for just the rows that belong to the currently

[dabo-users] Background Problem

2009-09-18 Thread Jeff Johnson
Greetings: I added a panel to the main form and then an image to the panel. It kind of works. The first form comes up funny and any forms opened erase the picture in the background. Here is the code for my main form and a jpg of what I am seeing. Seems I'm close but I can't light the cigar

Re: [dabo-users] Interesting read.

2009-09-18 Thread Ed Leafe
On Sep 18, 2009, at 1:30 PM, Paul McNett wrote: I've spent more time on this already than my interest level in it. I got turned off by the considered harmful tone of the article. If it had been simply stated that you should support duck typing wherever possible, or use try/except

Re: [dabo-users] Background Problem

2009-09-18 Thread Ed Leafe
On Sep 18, 2009, at 4:05 PM, Jeff Johnson wrote: Greetings: I added a panel to the main form and then an image to the panel. It kind of works. The first form comes up funny and any forms opened erase the picture in the background. Here is the code for my main form and a jpg of what I

Re: [dabo-users] Background Problem

2009-09-18 Thread Jeff Johnson
Ed: The code is in the text file at that url. Thanks, Ed Leafe wrote: On Sep 18, 2009, at 4:05 PM, Jeff Johnson wrote: Greetings: I added a panel to the main form and then an image to the panel. It kind of works. The first form comes up funny and any forms opened erase the picture