summaryrefslogtreecommitdiffstats
path: root/Python/importdl.h
Commit message (Collapse)AuthorAgeFilesLines
* #16135: Removal of OS/2 support (I)Jesus Cea2012-10-041-5/+0
|
* Issue #13959: Move module type constants to Lib/imp.py.Brett Cannon2012-05-041-15/+0
|
* Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.Brett Cannon2012-05-041-7/+2
| | | | | | This introduces a new function, imp.extension_suffixes(), which is currently undocumented. That is forthcoming once issue #14657 is resolved and how to expose file suffixes is decided.
* Issue #3080: _PyImport_LoadDynamicModule() uses Unicode for name and pathVictor Stinner2011-03-141-1/+1
| | | | Document also that dynamic module names are ASCII only
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-14/+14
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* PEP 302 + zipimport:Just van Rossum2002-12-301-1/+2
| | | | | | | | | | | | | - new import hooks in import.c, exposed in the sys module - new module called 'zipimport' - various changes to allow bootstrapping from zip files I hope I didn't break the Windows build (or anything else for that matter), but then again, it's been sitting on sf long enough... Regarding the latest discussions on python-dev: zipimport sets pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as /path/to/Archive.zip/subdir/ are supported again.
* OS/2 EMX port changes (Python part of patch #450267):Andrew MacIntyre2002-02-261-1/+1
| | | | | | | | | Python/ dynload_shlib.c // EMX port emulates dlopen() etc. for DL extensions import.c // changes to support 8.3 DLL name limit (VACPP+EMX) // and case sensitive import semantics importdl.h thread_os2.h
* SF patch 473749 compile under OS/2 VA C++, from Michael Muller.Tim Peters2001-11-051-0/+1
| | | | Changes enabling Python to compile under OS/2 Visual Age C++.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters2000-07-091-2/+2
|
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-21/+6
|
* For Windows, need to add #include <windows.h>.Guido van Rossum1999-12-201-0/+1
|
* Some rearrangements for the importdl.c restructuring.Guido van Rossum1999-12-201-2/+27
| | | | This is part of a set of patches by Greg Stein.
* Added declarations for Mac code resource modules (Jack Jansen).Guido van Rossum1998-08-061-1/+2
|
* First part of package support.Guido van Rossum1997-09-051-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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!
* Removed some variables that are used to exchange data between import.c andGuido van Rossum1997-07-211-3/+2
| | | | | | | | 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.
* One last rename glitch: import_modules -> _PyImport_Modules.Guido van Rossum1997-05-141-1/+1
|
* Quickly renamed the remaining files -- this directory is done.Guido van Rossum1997-04-291-4/+5
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Check if we've already loaded a dynamic module under a different name.Sjoerd Mullender1995-06-121-1/+1
|
* Added hooks to support importing pyc code from a resource on the mac.Jack Jansen1995-02-151-1/+4
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | | 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().
* Lots of changes, most minor (fatal() instead of abort(), use ofGuido van Rossum1995-01-021-0/+39
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.
fl$cyJǹ۸]87{!K.]!o6,D 8QilmaV>RrNLELp^;mņc 5!!I]Ɯ|MQvo*:LJ# )LK N|ĨZqpdť ʉ[Y@{U v@ bP^ܨ )6*|Yl'jElW1/ ԝ@)N6⪯<kv DI)CL@bNmf^1}惲9)-hNH 6݇x DlUEtÄFogN&5Ĝ҉ A4p\-A=XGl32,G<ϕYCJ)pDAxL;WBFpę&:̜ױ$Xͥ;yo9U((\Z-Hh@q5,2fd ru< ꃅfB#"78`+ jNL\A,3y:]W "4ݡV\lq9Yh[Onm7ÕuW{ / m 6TDg*NÆerC8M՚w:aj1"Z!cG(%D#35w's:(隦f5p+CHŝ`٬aQ$Z{:lzOa~"1dE\tc;%"b3oY4(3NPMŊK2V1KEd^*^ӼAG9p -vMZC4"s]H! Q/fTtf Kڄhzs**ҧR.;,2c YCJG # 5e"lvj*$&Ow܄/oT_,_xWmϸNjr{ KH錍K`E-`zkO#}IJz=ofcwLk@zisz)q8%O6}DRQckr&mA33Wy h) 3g7WA}<D1D/D8HVU^ :q"mY,g @< lE4 EI"ḶPɌc $<uP%6HWTB7bI3V:LcM8(PU٩؍ƨjr㻎FWu Rp!z?\p3%wbD_Uw6()4dp 6vp;:}LJ#y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