Issue532168

classification
Title: Type/Class Unification for lists
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: bgrus, pedronis
Priority: normal Keywords: patch

Created on 2002-03-19.22:05:05 by bgrus, last changed 2005-01-09.19:23:35 by pedronis.

Files
File name Uploaded Description Edit Remove
py22-descr-lists-patch bgrus, 2002-03-19.22:05:05 py22-descr-lists-patch
Messages
msg2230 (view) Author: Boris Gruschke (bgrus) Date: 2002-03-19.22:05:05
This patch adds some Python 2.2 features, just enough 
to meet the first few test cases from test_descr.py, 
which contains the test cases for the Type/Class 
Unification of Python2.2. test_descr.py is included 
as Lib/test/test_descr_lists.py (test cases not 
implemented commented out).

With this patch you can
- compare builtin methods (more correctly, I hope), 
e.g.
>>> a=[1]
>>> b=[2]
>>> type(a).append == type(b).append
1             # was 0

- call methods with no implicit parameter, i.e.
>>> import types
>>> a=[1]
>>> m=types.ListType.append   # m=list.append not yet 
possible
>>> m(a,2)
# was "TypeError: append(): expected 1 args; got 2" 
before
>>> a
[1, 2]

- do some more things with lists

See test_descr_lists.py for details on what can be 
done now.

Apart from test_descr_lists I tested with bugtests. 
By applying the patch I had the same twelve tests 
failing than before. Hmmm.

If the direction is right I can spend some more time 
on implementing more of the tests for the Type/Class 
Unification.
msg2231 (view) Author: Samuele Pedroni (pedronis) Date: 2002-03-19.22:26:50
Logged In: YES 
user_id=61408

There is no direction to be seen, I'm serious,
I see some micro-patching, no big picture.

You'll better explain your plans on jython-dev,
what you should have done in the first place.








msg2232 (view) Author: Samuele Pedroni (pedronis) Date: 2005-01-09.19:23:35
Logged In: YES 
user_id=61408

whoa, I was grumpy at the time, anyway this is superceded by
new-style classes branch work.
History
Date User Action Args
2002-03-19 22:05:05bgruscreate