Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c39553a

Browse files
committed
Note a few tasks that are done now.
1 parent 808eea7 commit c39553a

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

PLAN.txt

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ Project: core implementation
44
Still to do
55
-----------
66

7-
Fix comparisons. There's some nasty stuff here: when two types are
8-
not the same, and they're not instances, the fallback code doesn't
9-
account for the possibility that they might be subtypes of a common
10-
base type that defines a comparison.
11-
127
Check for conflicts between base classes. I fear that the rules used
138
to decide whether multiple bases have conflicting instance variables
149
aren't strict enough. I think that sometimes two different classes
@@ -21,24 +16,33 @@ order should the base classes X and Y be searched? This is an order
2116
conflict, and should be disallowed; currently the test for this is not
2217
implemented.
2318

24-
Allow __class__ assignment (and __bases__ and __dict__?).
19+
Allow assignment to __bases__ and __dict__?
2520

2621
Make __dynamic__ the default.
2722

2823
Add __del__ handlers.
2924

3025
Add __coerce__?
3126

32-
Support pickling (via __reduce__?)
27+
Support pickling (via __reduce__)
3328

3429
Support mixed multiple inheritance from classic and new-style classes?
3530

36-
Change __getattr__ to be more like classic __getattr__, and introduce
37-
a new name for new-style __getattr__?
38-
3931
Done (mostly)
4032
-------------
4133

34+
Fix comparisons. There's some nasty stuff here: when two types are
35+
not the same, and they're not instances, the fallback code doesn't
36+
account for the possibility that they might be subtypes of a common
37+
base type that defines a comparison. *** I believe this is now done,
38+
but it's a bit of a mess. ***
39+
40+
Allow __class__ assignment. *** done ***
41+
42+
Change __getattr__ to be more like classic __getattr__, and introduce
43+
a new name for new-style __getattr__. *** Done. The new-style method
44+
is called __getattribute__. ***
45+
4246
Make inspect and pydoc do the right thing for new-style classes. ***
4347
done ***
4448

0 commit comments

Comments
 (0)