<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/importdl.h, branch v1.5</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/importdl.h?h=v1.5</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/importdl.h?h=v1.5'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>1997-09-05T07:33:22Z</updated>
<entry>
<title>First part of package support.</title>
<updated>1997-09-05T07:33:22Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-09-05T07:33:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=aee0bad0a50f9f533267d241bea97a0b2118f238'/>
<id>urn:sha1:aee0bad0a50f9f533267d241bea97a0b2118f238</id>
<content type='text'>
This doesn't yet support "import a.b.c" or "from a.b.c import x", but
it does recognize directories.  When importing a directory, it
initializes __path__ to a list containing the directory name, and
loads the __init__ module if found.

The (internal) find_module() and load_module() functions are
restructured so that they both also handle built-in and frozen modules
and Mac resources (and directories of course).  The imp module's
find_module() and (new) load_module() also have this functionality.
Moreover, imp unconditionally defines constants for all module types,
and has two more new functions: find_module_in_package() and
find_module_in_directory().

There's also a new API function, PyImport_ImportModuleEx(), which
takes all four __import__ arguments (name, globals, locals, fromlist).
The last three may be NULL.  This is currently the same as
PyImport_ImportModule() but in the future it will be able to do
relative dotted-path imports.

Other changes:

- bltinmodule.c: in __import__, call PyImport_ImportModuleEx().

- ceval.c: always pass the fromlist to __import__, even if it is a C
function, so PyImport_ImportModuleEx() is useful.

- getmtime.c: the function has a second argument, the FILE*, on which
it applies fstat().  According to Sjoerd this is much faster.  The
first (pathname) argument is ignored, but remains for backward
compatibility (so the Mac version still works without changes).

By cleverly combining the new imp functionality, the full support for
dotted names in Python (mini.py, not checked in) is now about 7K,
lavishly commented (vs. 14K for ni plus 11K for ihooks, also lavishly
commented).

Good night!
</content>
</entry>
<entry>
<title>Removed some variables that are used to exchange data between import.c and</title>
<updated>1997-07-21T14:54:36Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-07-21T14:54:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ef3d02ebb955d01b2a8484d7c25f5ced4bf2036d'/>
<id>urn:sha1:ef3d02ebb955d01b2a8484d7c25f5ced4bf2036d</id>
<content type='text'>
importdl.c: the MAXSUFFIXSIZE macro is now defined in importdl.h, and
the modules dictionary is now passed using PyImport_GetModuleDict().

Also undefine USE_SHLIB for AIX -- in AIX 4.2 and up, dlfcn.h exists
but we don't want to use it.
</content>
</entry>
<entry>
<title>One last rename glitch: import_modules -&gt; _PyImport_Modules.</title>
<updated>1997-05-14T17:36:12Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-05-14T17:36:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=af5dfb4cebd670679612ddb0a0520fe711830a1d'/>
<id>urn:sha1:af5dfb4cebd670679612ddb0a0520fe711830a1d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Quickly renamed the remaining files -- this directory is done.</title>
<updated>1997-04-29T20:08:16Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-04-29T20:08:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=79f25d9a7b853a9f491a0cfe4b81eeb9e2d19569'/>
<id>urn:sha1:79f25d9a7b853a9f491a0cfe4b81eeb9e2d19569</id>
<content type='text'>
</content>
</entry>
<entry>
<title>New permission notice, includes CNRI.</title>
<updated>1996-10-25T14:44:06Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1996-10-25T14:44:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d266eb460e20ded087d01a29da0a230e235afc40'/>
<id>urn:sha1:d266eb460e20ded087d01a29da0a230e235afc40</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Check if we've already loaded a dynamic module under a different name.</title>
<updated>1995-06-12T15:51:34Z</updated>
<author>
<name>Sjoerd Mullender</name>
<email>sjoerd@acm.org</email>
</author>
<published>1995-06-12T15:51:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fbe6d33ffd64ce1b31b2dab332c617f96b5e3fbf'/>
<id>urn:sha1:fbe6d33ffd64ce1b31b2dab332c617f96b5e3fbf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added hooks to support importing pyc code from a resource on the mac.</title>
<updated>1995-02-15T22:57:06Z</updated>
<author>
<name>Jack Jansen</name>
<email>jack.jansen@cwi.nl</email>
</author>
<published>1995-02-15T22:57:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9c96a923fb3be046489ff486d41194658c9b015a'/>
<id>urn:sha1:9c96a923fb3be046489ff486d41194658c9b015a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added 1995 to copyright message.</title>
<updated>1995-01-04T19:12:13Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1995-01-04T19:12:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6d023c98b06e8b4558f3558335433f371a89cc9b'/>
<id>urn:sha1:6d023c98b06e8b4558f3558335433f371a89cc9b</id>
<content type='text'>
bltinmodule.c: fixed coerce() nightmare in ternary pow().
modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
pythonrun.c: move flushline() into and around print_error().
</content>
</entry>
<entry>
<title>Lots of changes, most minor (fatal() instead of abort(), use of</title>
<updated>1995-01-02T19:04:15Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1995-01-02T19:04:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1ae940a5870df2f706fa884afd533847f6b0b1a8'/>
<id>urn:sha1:1ae940a5870df2f706fa884afd533847f6b0b1a8</id>
<content type='text'>
err_fetch/err_restore and so on).  But...
NOTE: import.c has been rewritten and all the DL stuff is now in the
new file importdl.c.
</content>
</entry>
</feed>
