Re: More On the Strange Problem

2009-12-29 Thread Albert van der Horst
In article <4b32881...@dnews.tpgi.com.au>, Lie Ryan wrote: >On 12/24/2009 8:00 AM, MRAB wrote: >> >> >>> print first_twin == second_twin >> True > >err... I don't think there is any situation where first_twin == >second_twin wouldn't be considered a bug. They look similar, they act >similar, and

Re: More On the Strange Problem

2009-12-23 Thread Steven D'Aprano
On Wed, 23 Dec 2009 19:03:36 +, MRAB wrote: >> if whatDo == 'insert': >> theVal = defaultVal >> val = defaultVal >> > What's the difference between theVal and val? The names don't help me! Oh MRAB! Isn't it obvious? theVal has a leading definite article while val doesn't! R

Re: More On the Strange Problem

2009-12-23 Thread Lie Ryan
On 12/24/2009 8:00 AM, MRAB wrote: >>> print first_twin == second_twin True err... I don't think there is any situation where first_twin == second_twin wouldn't be considered a bug. They look similar, they act similar, and they quack the same; though you can almost always treat them the sa

Re: More On the Strange Problem

2009-12-23 Thread MRAB
Victor Subervi wrote: On Wed, Dec 23, 2009 at 3:03 PM, MRAB > wrote: Victor Subervi wrote: I've isolated the problem in the print-out at the bottom of this post. It occurs when these values are passed: ['LastDatePrice', 'date', '10

Re: More On the Strange Problem

2009-12-23 Thread uticdmarceau2...@yahoo.ca
Victor Subervi wrote: > On Wed, Dec 23, 2009 at 2:21 PM, Victor Subervi > wrote: > >> I've isolated the problem in the print-out at the bottom of this post. It >> occurs when these values are passed: >> >> ['LastDatePrice', 'date', '10', '/mm/dd', None], >> >> Since this is the first datetime

Re: More On the Strange Problem

2009-12-23 Thread Victor Subervi
On Wed, Dec 23, 2009 at 3:03 PM, MRAB wrote: > Victor Subervi wrote: > >> I've isolated the problem in the print-out at the bottom of this post. It >> occurs when these values are passed: >> >> ['LastDatePrice', 'date', '10', '/mm/dd', None], >> >> Since this is the first datetime that is pas

Re: More On the Strange Problem

2009-12-23 Thread Emile van Sebille
On 12/23/2009 10:21 AM Victor Subervi said... printed out. This is the code: print 'printTheForm: ', descrProds, '' for value in descrProds: print 'value: ', value, '' Why not try this in a fashion more likely to succeed... import cgi for value in descrProds: print 'value: %s '

Re: More On the Strange Problem

2009-12-23 Thread Carsten Haese
Victor Subervi wrote: > [...] > If in fact the problem has to do with the None value, how can I easily > substitute a different value? I tried: > > if theVal == None: > theVal = '' > > but that didn't capture it. That indicates one of two things: * Your problem is not caused by the None value.

Re: More On the Strange Problem

2009-12-23 Thread MRAB
Victor Subervi wrote: I've isolated the problem in the print-out at the bottom of this post. It occurs when these values are passed: ['LastDatePrice', 'date', '10', '/mm/dd', None], Since this is the first datetime that is passed, it would appear to be associated with such values, which a

Re: More On the Strange Problem

2009-12-23 Thread Victor Subervi
On Wed, Dec 23, 2009 at 2:21 PM, Victor Subervi wrote: > I've isolated the problem in the print-out at the bottom of this post. It > occurs when these values are passed: > > ['LastDatePrice', 'date', '10', '/mm/dd', None], > > Since this is the first datetime that is passed, it would appear to