splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

__delitem__()

Open parhamfh opened this issue 14 years ago • 1 comments

Hi guys!

Just curious about what your thoughts are on using the 'del' keyword in Python. It could for instance be used with Inputs and Input instances. Have you guys looked into using for example delitem(..) ?

Cheers

  • Pizza

parhamfh avatar Dec 03 '11 02:12 parhamfh

I did consider this when we did the original design and decided that although perhaps a clever use of the language feature, that it would likely violate the principle of least surprise if a feature generally associated with operating on a local data structure had such a significant remote side effect, and so ultimately decided to stay with the explicit delete method.

blovering avatar Feb 28 '12 03:02 blovering