~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/c-api/import.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
   leaves the module in ``sys.modules``.
29
29
 
30
30
   .. versionchanged:: 2.4
31
 
      failing imports remove incomplete module objects.
 
31
      Failing imports remove incomplete module objects.
32
32
 
33
33
   .. versionchanged:: 2.6
34
 
      always use absolute imports
 
34
      Always uses absolute imports.
35
35
 
36
36
 
37
37
.. cfunction:: PyObject* PyImport_ImportModuleNoBlock(const char *name)
62
62
   unless a non-empty *fromlist* was given.
63
63
 
64
64
   .. versionchanged:: 2.4
65
 
      failing imports remove incomplete module objects.
 
65
      Failing imports remove incomplete module objects.
66
66
 
67
67
   .. versionchanged:: 2.6
68
68
      The function is an alias for :cfunc:`PyImport_ImportModuleLevel` with
95
95
   are installed in the current environment, e.g. by :mod:`rexec` or :mod:`ihooks`.
96
96
 
97
97
   .. versionchanged:: 2.6
98
 
      always use absolute imports
 
98
      Always uses absolute imports.
99
99
 
100
100
 
101
101
.. cfunction:: PyObject* PyImport_ReloadModule(PyObject *m)
167
167
   *path*, possibly by fetching it from the :data:`sys.path_importer_cache`
168
168
   dict.  If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
169
169
   is found that can handle the path item.  Return ``None`` if no hook could;
170
 
   this tells our caller it should fall back to the builtin import mechanism.
 
170
   this tells our caller it should fall back to the built-in import mechanism.
171
171
   Cache the result in :data:`sys.path_importer_cache`.  Return a new reference
172
172
   to the importer object.
173
173