Michael Bayer wrote:
> On Jun 1, 2007, at 5:58 PM, Mike Orr wrote:
>
>   
>> Returning None is a Python standard, see list.sort().  Making select
>> generative is OK, but it should either modify the select in place or
>> return a new one, not modify it and return it.  That's a Perlism.
>> "There should be one-- and preferably only one --obvious way to do
>> it."
>>     
>
> i am glad to see someone take a position on this.  but the "modify in  
> place and return it" thing is also how Hibernate criteria queries work
I think they do this so they can do

criterita.append().append().append()

java doesn't allow criteria.append(*args) like python, so I don't see 
why we need to return it either, unless we were copying it which I don't 
see why we should unless we explicitly do it using something like 
select.copy().

Huy



--~--~---------~--~----~------------~-------~--~----~
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