A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-February/002198.html below:

[Python-Dev] non-integer slice indices?

[Python-Dev] non-integer slice indices? [Python-Dev] non-integer slice indices?Finn Bock bckfnn@worldonline.dk
Sat, 12 Feb 2000 19:38:43 GMT
[Skip asks about noninteger slices]

>     foo['a':'abc'] = some_sequence
>

[Greg writes]
>Now... altering the syntax and semantic restrictions (to make it easier)  
>is surely possible, but yah: let's hear some motivations from Viorel.

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
>>>

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