I'm definitely +1 on this - I have a few codebases I want to start converting but also want to keep running on 1.4, and the patch looks sensible to me. There is precedent for this, and even if there wasn't, this is a nice way to get the migration cycle started.
Andrew On Thu, Sep 6, 2012 at 3:05 PM, Donald Stufft <[email protected]>wrote: > Just as an additional aside, the apps can also depend on the actual six > library itself instead of Django's embedded version (It could be an > optional dependency on Django < 1.5). The major things I think would be > anything Django specific that don't come from six. > > On Thursday, September 6, 2012 at 2:09 PM, Aymeric Augustin wrote: > > Hello, > > Several people have started porting their apps for Python 3, but they're > running into trouble when they try to support both Django 1.4 and > master. They end up with regrettable patterns such as: > > try: > from django.utils.six import PY3 > except ImportError: > PY3 = False > > Authors of pluggable apps generally chose to support the current and the > previous version of Django. Thus their users can alternatively upgrade > Django and their apps, which makes upgrades less scary. > > Now we have two alternatives: > 1) tell them to roll their own compat or wait until they can target 1.5 + > 1.6 — quite a downer, > 2) add some forwards compatibility tools to 1.4. > > We generally don't add features to minor releases, but there's a precedent > (csrf_noop), and the patch is as harmless as they come (see attachment). > > What do you think? > > -- > Aymeric. > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to [email protected]. > 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. > > Attachments: > - python3-forwards-compat-for-django-14.diff > > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to [email protected]. > 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. > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. 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.
