[lxml-dev] operator.delslice() not working with 2.1beta3
Holger Joukl
jholg at gmx.de
Fri Jun 20 17:47:11 CEST 2008
Hi,
I just realized that operator.delslice() does not work with 2.1beta3:
>>> root = msg
>>> root.a = [1,2,3,4]
>>> import operator
>>> operator.delslice(msg.a, 0, 4)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: object doesn't support slice deletion
>>>
which worked in 2.0alpha
>>> root = msg
>>> root.a = [1,2,3,4]
>>> import operator
>>> operator.delslice(msg.a, 0, 4)
>>>
I suspect this was introduced with extended slicing.
operator.getslice and operator.setslice still work, btw.
Holger
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080620/1cddd1ee/attachment.htm
More information about the lxml-dev
mailing list