From: Oleg B. <ph...@ma...> - 2004-09-22 14:20:43
|
Hello. On Wed, Sep 22, 2004 at 01:13:35AM -0500, Ian Bicking wrote: > To fetch objects from the database, use MyClass.get(id) (instead of > MyClass(id)). To create/insert objects, use MyClass(col=value, ...) > (instead of MyClass.new(col=value, ...)). I alway wanted to know - why?! Why not MyClass.get(id) and MyClass.new(**values)? Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |