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
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
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
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
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,
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 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
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
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
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
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
11 matches
Mail list logo