This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
SOAPpy
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
PEEK-1406 Fix TypeError due to slice input from a Github contributor
main
Louis Lu
2 years ago
committed by
Jarrod Chesney
parent
245a8e7004
commit
434f6ca00d
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/SOAPpy/Types.py
+ 2
- 0
src/SOAPpy/Types.py
View File
@@ -1451,6 +1451,8 @@ class arrayType(collections.UserList, compoundType):
def __getitem__(self, item):
try:
return self.data[int(item)]
except TypeError:
return self.data[item]
except ValueError:
return getattr(self, item)
Write
Preview
Loading…
Cancel
Save