[Django] #20771: importlib: more verbosity please

3 views
Skip to first unread message

Django

unread,
Jul 19, 2013, 3:58:50 AM7/19/13
to django-...@googlegroups.com
#20771: importlib: more verbosity please
-------------------------------+--------------------
Reporter: lu.nemec@… | Owner: nobody
Type: Uncategorized | Status: new
Component: Utilities | Version: 1.5
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Hello, I recently debugged some code where relative imports were used
Importlib threw an error "relative imports require the 'package' argument"

But, it would be really handy to have it also write what is it trying to
import...

So I edited the file locally to this:

importlib.py
{{{
#27 if not package:
#28 raise TypeError("relative imports require the 'package' argument,
package: %s" % name)
}}}

And I found the place where I forgot to look in seconds....

Cheers!

--
Ticket URL: <https://code.djangoproject.com/ticket/20771>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 25, 2013, 11:36:06 AM7/25/13
to django-...@googlegroups.com
#20771: importlib: more verbosity please
--------------------------------------+------------------------------------
Reporter: lu.nemec@… | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Utilities | Version: 1.5
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timo):

* needs_better_patch: => 0
* needs_tests: => 0
* easy: 0 => 1
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/20771#comment:1>

Django

unread,
Jul 29, 2013, 11:44:04 AM7/29/13
to django-...@googlegroups.com
#20771: importlib: more verbosity please
--------------------------------------+------------------------------------
Reporter: lu.nemec@… | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Utilities | Version: 1.5
Severity: Normal | Resolution: wontfix

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timo):

* status: new => closed
* resolution: => wontfix


Comment:

This is actually a copy of what's implemented in Python 2.7+ and the copy
in Django has been deprecated as of
fdd7a355bf053217d25b8d2189e37069c1304283.

--
Ticket URL: <https://code.djangoproject.com/ticket/20771#comment:2>

Reply all
Reply to author
Forward
0 new messages