Staging
v0.5.1
https://github.com/python/cpython
Revision 37a309db7086381da6ae176cec8817cdd75de872 authored by Tim Peters on 04 September 2001, 01:20:04 UTC, committed by Tim Peters on 04 September 2001, 01:20:04 UTC
of PyMapping_Keys because we know we have a real dict.  Tolerate that
objects may have an attr named "__dict__" that's not a dict (Py_None
popped up during testing).

test_descr.py, test_dir():  Test the new classic-class behavior; beef up
the new-style class test similarly.

test_pyclbr.py, checkModule():  dir(C) is no longer a synonym for
C.__dict__.keys() when C is a classic class (looks like the same thing
that burned distutils! -- should it be *made* a synoym again?  Then it
would be inconsistent with new-style class behavior.).
1 parent a8aefe5
History
Tip revision: 37a309db7086381da6ae176cec8817cdd75de872 authored by Tim Peters on 04 September 2001, 01:20:04 UTC
builtin_dir(): Treat classic classes like types. Use PyDict_Keys instead
Tip revision: 37a309d
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.1 KB
LICENSE -rw-r--r-- 12.0 KB
Makefile.pre.in -rw-r--r-- 25.4 KB
PLAN.txt -rw-r--r-- 12.2 KB
README -rw-r--r-- 38.1 KB
acconfig.h -rw-r--r-- 6.8 KB
configure -rwxr-xr-x 198.1 KB
configure.in -rw-r--r-- 47.0 KB
install-sh -rwxr-xr-x 5.5 KB
pyconfig.h.in -rw-r--r-- 18.3 KB
setup.py -rw-r--r-- 29.6 KB

README

back to top