Changes between Initial Version and Version 2 of Ticket #2968


Ignore:
Timestamp:
Oct 30, 2006, 2:45:08 PM (17 years ago)
Author:
Adrian Holovaty
Comment:

Fixed formatting in description.

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  
    11According 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.
    33It's not fatal because current CPython implementation does not care what type those argument are,
    44however, 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, '', '', [''])}}}).
    66
    7 Relevant files include: conf/__init__.py, core/management.py, core/urlresolvers.py, db/__init__.py,
     7Relevant files include: {{{conf/__init__.py, core/management.py, core/urlresolvers.py, db/__init__.py,
    88template/__init__.py, template/context.py, template/loader.py, templatetags/__init__.py, test/doctest.py,
    99test/simple.py, views/debug.py, contrib/auth/__init__.py, core/cache/__init__.py, core/handlers/base.py,
    1010core/serializers/__init__.py, db/models/loading.py, template/loaders/app_directories.py,
    11 contrib/admin/views/doc.py, and contrib/admin/views/template.py.
     11contrib/admin/views/doc.py}}}, and {{{contrib/admin/views/template.py}}}.
Back to Top