|
From: Thomas V. S. <th...@ap...> - 2009-06-27 16:31:04
|
As I'm adding opcodes, I'm wondering about what should be checked for
some of them.
For example, DELETE_SLICE3:
def func():
d = 1
del d[1:2]
When you execute func, you would get:
TypeError: 'int' object does not support item deletion
It sounds to me like pychecker should generate a warning for this code,
no ?
How should I do this ? What can I do to figure out if the object being
sliced supports item deletion and/or slicing ?
Thomas
--
Did you get older doing nothing today?
Don't you wanna stop complaining?
--
URGent, best radio on the net - 24/7 !
http://urgent.fm/
|