summaryrefslogtreecommitdiff
path: root/Objects/moduleobject.c
AgeCommit message (Collapse)AuthorLines
1995-01-07initialize __doc__ to NoneGuido van Rossum-0/+2
1995-01-04Added 1995 to copyright message.Guido van Rossum-2/+2
floatobject.c: fix hash(). methodobject.c: support METH_FREENAME flag bit.
1994-08-30Merge back to main trunkGuido van Rossum-5/+5
1993-11-17* import.c (get_module): total rewrite, to ensure proper search order: forGuido van Rossum-21/+30
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].
1993-05-25* classobject.c: in instance_getattr, don't make a method out of aGuido van Rossum-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.)
1993-05-20Access checks now work, at least for instance data (not for methodsGuido van Rossum-2/+3
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.
1993-05-19Several changes in one:Guido van Rossum-5/+16
(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.)
1993-03-29* Changed all copyright messages to include 1993.Guido van Rossum-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
1992-09-17* Makefile: added IMGFILE; moved some stuff around.Guido van Rossum-12/+1
* flmodule.c: added some missing functions; changed readonly flags of some data members based upon FORMS documentation. * listobject.c: fixed int/long arg lint bug (bites PC compilers). * several: removed redundant print methods (repr is good enough). * posixmodule.c: added (still experimental) process group functions.
1992-09-04classobject.c moduleobject.c stdwinmodule.c xxobject.c:Guido van Rossum-3/+8
raise AttributeError, not KeyError, when attribute deletion fails. sunaudiodevmodule.c: check for deletion before calling setmember.
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1992-03-27LintGuido van Rossum-1/+2
1991-12-10Use new exceptions.Guido van Rossum-2/+2
1991-06-07printobject now returns an error codeGuido van Rossum-1/+2
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-12-20Return -1 for errors.Guido van Rossum-1/+1
1990-12-20"Compiling" versionGuido van Rossum-47/+22
1990-10-26Added getmodulename() public interface.Guido van Rossum-0/+11
1990-10-21Added __dict to module getattr.Guido van Rossum-6/+21
New errors.
1990-10-14New error handling in getattr().Guido van Rossum-4/+3
1990-10-14Initial revisionGuido van Rossum-0/+130