summaryrefslogtreecommitdiffstats
path: root/Python/import.c
Commit message (Collapse)AuthorAgeFilesLines
* One last rename glitch: import_modules -> _PyImport_Modules.Guido van Rossum1997-05-141-15/+15
|
* Instead of importing graminit.h whenever one of the three grammar 'root'Guido van Rossum1997-05-071-4/+1
| | | | symbols is needed, define these in Python.h with a Py_ prefix.
* Oops, forgot one: inittab.Guido van Rossum1997-04-291-7/+7
|
* Quickly renamed the remaining files -- this directory is done.Guido van Rossum1997-04-291-270/+282
|
* Keep gcc -Wall and Microsoft VC happy.Guido van Rossum1997-04-111-5/+6
|
* When -O is given, use ".pyo" instead of ".pyc".Guido van Rossum1997-03-111-1/+9
|
* New magin number (because of linenumber table).Guido van Rossum1997-01-241-1/+1
|
* New MAGIC number (code objects have one more item when marshalled).Guido van Rossum1997-01-171-1/+2
|
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-1/+5
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* PYTHONWIN -> MS_COREDLLGuido van Rossum1996-08-221-1/+1
|
* Added casts from unsigned char to char when calling rds_object() onGuido van Rossum1996-08-081-2/+2
| | | | frozen code.
* Changes for slice and ellipsesGuido van Rossum1996-07-301-1/+1
|
* new .pyc magic number (** operator)Guido van Rossum1996-07-211-1/+1
|
* Slightly different Windows ifdefsGuido van Rossum1996-06-281-3/+2
|
* Cosmetic change to the dox_8x3 hack.Guido van Rossum1996-06-201-4/+3
|
* struct frozen is now struct _frozen and comes from import.h.Guido van Rossum1996-06-171-11/+5
|
* moved verbose decl to pydebug.h; added dos_8x3 featureGuido van Rossum1996-05-231-2/+18
|
* Remember source filename as <module>.__file__.Guido van Rossum1996-05-161-0/+3
|
* Under NT, interface to mysterious module registry. (Mark H.)Guido van Rossum1996-04-091-0/+8
|
* Change Mac creator from 'PYTH' to 'Pyth' -- 'PYTH' was already takenGuido van Rossum1996-02-211-1/+1
| | | | by someone else, 'Pyth' is now officially registered by the PSA.
* Removed unused variablesJack Jansen1995-10-031-3/+1
|
* add imp.get_frozen_object()Guido van Rossum1995-08-041-13/+54
|
* Undef 'argument' before including mac headersJack Jansen1995-07-281-0/+2
|
* never close the file in imp.load_...Guido van Rossum1995-07-261-6/+0
|
* keyword arguments and faster callsGuido van Rossum1995-07-181-2/+2
|
* new MAGIC; some changes to default files for imp.load_... functionsGuido van Rossum1995-07-071-8/+19
|
* Added PY_RESOURCE (mac only) to imp moduleJack Jansen1995-06-181-0/+7
|
* Check if we've already loaded a dynamic module under a different name.Sjoerd Mullender1995-06-121-2/+2
|
* magic number changes of CR/LF are swappedGuido van Rossum1995-02-191-1/+3
|
* Added hooks to support importing pyc code from a resource on the mac.Jack Jansen1995-02-151-7/+43
|
* init_frozen non-static, frozenmain.c not in Makefile any moreGuido van Rossum1995-02-071-1/+3
|
* fix glaring bug in get_magicGuido van Rossum1995-01-301-2/+2
|
* don't dictclear deleted modules in doneimportGuido van Rossum1995-01-261-17/+22
|
* fix import related leaksGuido van Rossum1995-01-201-12/+22
|
* use getbuiltins() everywhere, it defaults to getbuiltidict()Guido van Rossum1995-01-121-1/+1
|
* __builtins__ mods (and sys_checkinterval for ceval.c)Guido van Rossum1995-01-091-0/+5
|
* 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-568/+681
| | | | | | 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.
* Added comment symbols around word after #endif.Sjoerd Mullender1994-12-141-1/+1
|
* Fix various potential buffer overrun problems.Guido van Rossum1994-09-261-9/+18
|
* * Import/pythonrun.h, Python/{import,pythonrun}.c,Guido van Rossum1994-09-141-0/+11
| | | | | | mac/macsetfiletype.c: changes by Jack to execute .pyc file passed as command line argument. On the Mac .pyc files are given a special type so they can be double-clicked
* Mods for HP-UX dynamic loading.Guido van Rossum1994-09-121-1/+42
|
* * Python/import.c: support *.o/*.so as alternative forGuido van Rossum1994-08-291-68/+332
| | | | | | | | | | | | | | *module.o/*module.so * Python/import.c: if initializing a module did not enter the module into sys.modules, it may have raised an exception -- don't override this exception. Merged NT changes * Python/import.c: add lost NT-specific code back in Fixed NT changes
* * import.c (get_module): pass .py filename to parse_file, not .pyc filename!Guido van Rossum1993-11-301-3/+5
| | | | | | | | | | | * funcobject.c (func_repr): don't call getstringvalue(None) for anonymous functions. * bltinmodule.c: removed lambda (which is now a built-in function); removed implied lambda for string arg to filter/map/reduce. * Grammar, graminit.[ch], compile.[ch]: replaced lambda as built-in function by lambda as grammar entity: instead of "lambda('x: x+1')" you write "lambda x: x+1". * Xtmodule.c (checkargdict): return 0, not NULL, for error.
* * import.c (get_module): total rewrite, to ensure proper search order: forGuido van Rossum1993-11-171-172/+185
| | | | | | | | | | | | | each dir in sys.path, try each possible extension. (Note: C extensions are loaded before Python modules in the same directory, to allow having a C version used when dynamic loading is supported and a Python version as a back-up.) * import.c (reload_module): test for error from getmodulename() * moduleobject.c: implement module name as dict entry '__name__' instead of special-casing it in module_getattr(); this way a module (or function!) can access its own module name, and programs that know what they are doing can rename modules. * stdwinmodule.c (initstdwin): strip ".py" suffix of argv[0].
* * filemodule.c: added writelines() -- analogous to readlines()Guido van Rossum1993-10-251-1/+2
| | | | * import.c: fixed core dump when out-of-date .pyc file encountered (again!)
* import.c: When something is wrong with the .pyc, properly open the .pySjoerd Mullender1993-10-251-26/+31
| | | | | file. object.c: Write allocation statistics to stderr.
* * import.c (MAGIC): Changed magic word to avoid confusion about execGuido van Rossum1993-10-221-1/+1
| | | | | | | function vs. exec statement * bltinmodule.c: renamed the module to __builtin__. * posixmodule.c (posix_execv): renamed exec --> execv since it is now a reserved word.
* * stdwinmodule.c (stdwin_done): interface to shutdown stdwin (now this isGuido van Rossum1993-10-181-6/+8
| | | | | | | | | no longer done by config.c). * stdwinmodule.c (initstdwin), config.c (initall): get command line arguments from sys.argv instead of special-casing stdwin in config.c * import.c (get_module): fix core dump when foomodule.o does not define initfoo(). * ChangeLog: documented changes by Sjoerd.