summaryrefslogtreecommitdiffstats
path: root/Python/import.c
Commit message (Collapse)AuthorAgeFilesLines
...
* * classobject.c: in instance_getattr, don't make a method out of aGuido van Rossum1993-05-251-2/+2
| | | | | | | | | | function found as instance data. * socketmodule.c: added 'flags' argument sendto/recvfrom, rewrite argument parsing in send/recv. * More changes related to access (terminology change: owner instead of class; allow any object as owner; local/global variables are owned by their dictionary, only class/instance data is owned by the class; "from...import *" now only imports objects with public access; etc.)
* Access checks now work, at least for instance data (not for methodsGuido van Rossum1993-05-201-2/+2
| | | | | | | yet). The class is now passed to eval_code and stored in the current frame. It is also stored in instance method objects. An "unbound" instance method is now returned when a function is retrieved through "classname.funcname", which when called passes the class to eval_code.
* Several changes in one:Guido van Rossum1993-05-191-31/+12
| | | | | | | | | | | | | | | | (1) dictionaries/mappings now have attributes values() and items() as well as keys(); at the C level, use the new function mappinggetnext() to iterate over a dictionary. (2) "class C(): ..." is now illegal; you must write "class C: ...". (3) Class objects now know their own name (finally!); and minor improvements to the way how classes, functions and methods are represented as strings. (4) Added an "access" statement and semantics. (This is still experimental -- as long as you don't use the keyword 'access' nothing should be changed.)
* Support for frozen scripts; added -i option.Guido van Rossum1993-04-011-2/+40
|
* Changes to speed up local variables enormously, by avoiding dictionaryGuido van Rossum1993-03-301-1/+1
| | | | | | lookup (opcode.h, ceval.[ch], compile.c, frameobject.[ch], pythonrun.c, import.c). The .pyc MAGIC number is changed again. Added get_menu_text to flmodule.
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-291-2/+2
| | | | | | | | | | | | | | | | | * Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
* * Added Fixcprt.py: script to fix copyright message.Guido van Rossum1993-01-261-7/+2
| | | | | | | | | | | * various modules: added 1993 to copyright. * thread.c: added copyright notice. * ceval.c: minor change to error message for "+" * stdwinmodule.c: check for error from wfetchcolor * config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h) * Add declaration of inittab to import.h * sysmodule.c: added sys.builtin_module_names * xxmodule.c, xxobject.c: fix minor errors
* * Makefile: cosmeticsGuido van Rossum1992-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* Print messages about where from modules are imported when -v is given.Guido van Rossum1992-03-271-2/+27
|
* Move SEP to osdefs.h. Use MAXPATHLEN from osdefs.h.Guido van Rossum1992-02-261-15/+2
|
* getbinaryname is now part of dl_loadmod.Guido van Rossum1992-01-261-63/+2
|
* Support for dynamic loading added.Guido van Rossum1992-01-191-5/+132
|
* Use IOError and ImportError when import fails.Guido van Rossum1991-12-241-4/+8
|
* Change RuntimeError into IOError when module file not found on reload.Guido van Rossum1991-12-161-1/+1
|
* New magic word; and check it.Guido van Rossum1991-12-161-3/+8
|
* Use more dict2 functions./Guido van Rossum1991-08-161-4/+6
|
* Generalize to macintosh.Guido van Rossum1991-06-241-5/+1
|
* Support ".pyc" files: cached compilation results.Guido van Rossum1991-06-041-5/+72
| | | | (Similar to Emacs ".elc" files.)
* Pre-define MS-DOS separatorGuido van Rossum1991-05-051-0/+4
|
* Added forward declaration (to satisfy Standard C).Guido van Rossum1991-04-031-0/+3
|
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|
* Call the init function of a built-in module here.Guido van Rossum1991-02-191-2/+31
| | | | ,
* "Compiling" versionGuido van Rossum1990-12-201-191/+99
|
* Add extra DECREF.Guido van Rossum1990-11-181-0/+1
|
* Added reload() functionality.Guido van Rossum1990-10-261-21/+66
|
* Initial revisionGuido van Rossum1990-10-141-0/+252