changeset 241:8db18f3c0fdd

created
author 127.0.0.1
date Sun, 30 Jun 2013 11:07:06 +0200
parents 1b956bcb8a50
children f7a91de3091d
files ___%2Aitem__
diffstat 1 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/___%2Aitem__	Sun Jun 30 11:06:56 2013 +0200
+++ b/___%2Aitem__	Sun Jun 30 11:07:06 2013 +0200
@@ -7,18 +7,4 @@
 
 del thing[key]
 thing.__delitem__(key)
-
-thing[start:end:step]
-def get_slice(thing, start=None, end=None, step=None):
-    if step is None and hasattr(thing.__class__, '__getslice__'):
-        if start is None:
-            start = 0
-        elif start < 0:
-            start += len(thing)
-        if end is None:
-            end = sys.maxint
-        elif end < 0:
-            end += len(thing)
-        return thing.__getslice__(start, end)
-    return thing[slice(start, end, step)]
 }}}
\ No newline at end of file