On Jan 29, 2008 2:13 PM, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> I'd like to deprecate initializing models using positional arguments
> (i.e. ``p = Person(1, 'Joe Somebody')``) in favor of only allowing
> keyword-argument initialization (i.e. ``p = Person(id=1, name='Joe
> Somebody')``).

I'm late to the party!

I'm +1 on this, despite the fact that this is a backwards
incompatibility that we haven't mentioned in our discussions of final
1.0 features.

Like some others have pointed out, this would make custom SQL queries
a bit more painful, but if we introduce a custom_query() method as
Jacob suggested, that would solve it. Personally I tend to use the
*args syntax in custom queries, but it's not a huge change to rewrite
code to use custom_query().

Adrian

-- 
Adrian Holovaty
holovaty.com | everyblock.com | djangoproject.com

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

Reply via email to