Changes between Initial Version and Version 2 of Ticket #2968
- Timestamp:
- Oct 30, 2006, 2:45:08 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2968
- Property Summary 2nd/3rd arguments for __import__ are '' (empty string) instead of {} (empty dictionary) → [patch] 2nd/3rd arguments for __import__ are '' (empty string) instead of {} (empty dictionary)
-
Ticket #2968 – Description
initial v2 1 1 According to Python library reference, the 2nd/3rd arguments of __import__ should be a dictionary 2 (whatever globals() or locals() returns), but ''(empty strings) are used instead in some part of the code.2 (whatever globals() or locals() returns), but {{{''}}} (empty strings) are used instead in some part of the code. 3 3 It's not fatal because current CPython implementation does not care what type those argument are, 4 4 however, it may change in future, or in alternative Python implementation such as IronPython or Jython 5 (actually, Jython raises ValueError for __import__(mod, '', '', [''])).5 (actually, Jython raises ValueError for {{{__import__(mod, '', '', [''])}}}). 6 6 7 Relevant files include: conf/__init__.py, core/management.py, core/urlresolvers.py, db/__init__.py,7 Relevant files include: {{{conf/__init__.py, core/management.py, core/urlresolvers.py, db/__init__.py, 8 8 template/__init__.py, template/context.py, template/loader.py, templatetags/__init__.py, test/doctest.py, 9 9 test/simple.py, views/debug.py, contrib/auth/__init__.py, core/cache/__init__.py, core/handlers/base.py, 10 10 core/serializers/__init__.py, db/models/loading.py, template/loaders/app_directories.py, 11 contrib/admin/views/doc.py , and contrib/admin/views/template.py.11 contrib/admin/views/doc.py}}}, and {{{contrib/admin/views/template.py}}}.