On Sun, 13 Feb 2000 00:34:24 -0800 (PST), you wrote: >On Sat, 12 Feb 2000, Finn Bock wrote: >>... >> What about getting full compatibility with jpython <wink> as motivation: >> >> JPython 1.1 on java1.3.0rc1 (JIT: null) >> Copyright (C) 1997-1999 Corporation for National Research Initiatives >> >>> class A: >> ... def __setitem__(self, idx, value): >> ... print "__setitem__", `idx`, value >> ... >> >>> A()['a':'d'] = '1234' >> __setitem__ slice('a', 'd', 1) 1234 >> >>> >Typically, CPython is the reference platform. I think your are confusing a large and rich legacy with beeing the reference <0.7 wink>. >This would indicate that JPython has a bug. At worst, I would call it an overgeneralization. >Second, section 5.3.3 of the Language Reference states that the upper and >lower bound of a slice must be integers. Again, this would indicate that >JPython has a bug. Is it not only "simple slicing" which calls for integer expressions? So IMHO, it seems that JPython does follows the text of 5.3.3. regards, finn
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4