On Dec 2, 2007, at 4:50 AM, Lele Gaifax wrote:

>
> On Fri, 30 Nov 2007 21:28:32 -0800 (PST)
> Michael Bayer <[EMAIL PROTECTED]> wrote:
>
>>
>> yes...add type_=DateTime to your coalesce() call -
>> func.coalesce(date1, date2, type_=DateTime)
>
> OOC, why "type_" and not simply "type"? That is not a Python keyword
> like say "class", just a builtin function (er, type! :-) and thus can
> be reused freely...
>

only because def foo(type=None), now you have a local variable named  
"type" in the body of your foo() function, which conflicts with the  
"type" builtin (a pretty widely used builtin).  i will grant that  
TextMate syntax highlighting has played a role in this decision :) .




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to