On Wednesday 10 September 2008, Oleg Broytmann wrote:
> > The second fix is for incorrectly interpretted boolean values passed
> > via arguments to connectionForURI or via dburi parameters.
>
>    Why Boolean is a class and not just a function? It never creates any
> instance of the class.

No particular reason. I guess it comes from the habit of doing it that way 
because it looks more like a data type with a class. Of course a function 
would do just fine, but there is no big difference since with the class 
the __new__ method will do exactly what that function would do.

-- 
Dan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to