#27173: Permit import statements to be longer than 80 characters -------------------------------------+------------------------------------- Reporter: cjerdonek | Owner: nobody Type: | Status: closed Cleanup/optimization | Component: Core (Other) | Version: 1.10 Severity: Normal | Resolution: wontfix Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by cjerdonek): My main concern is that it will make it difficult to sort imports manually as people who have a right margin at 80 characters would need to change it just for this. I'm not sure I understand this argument. It seems like this just shifts the problem from "people who have a right margin at 80 characters" to "everyone" since now the lines that need to be sorted always get broken across more than one line, regardless of how one's right margin is set. Here is one example from the code base (in `sessions_tests.tests`): {{{#!python from django.contrib.sessions.backends.cache import SessionStore as CacheSession from django.contrib.sessions.backends.cached_db import \ SessionStore as CacheDBSession from django.contrib.sessions.backends.db import SessionStore as DatabaseSession from django.contrib.sessions.backends.file import SessionStore as FileSession from django.contrib.sessions.backends.signed_cookies import \ SessionStore as CookieSession from django.contrib.sessions.exceptions import InvalidSessionKey from django.contrib.sessions.middleware import SessionMiddleware from django.contrib.sessions.models import Session from django.contrib.sessions.serializers import ( JSONSerializer, PickleSerializer, ) from django.core import management }}} -- Ticket URL: <https://code.djangoproject.com/ticket/27173#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.0b33064979415585322d2dd011f8a6bd%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.