mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
19 lines
476 B
Python
19 lines
476 B
Python
|
|
||
|
def __hash__(self):
|
||
|
raise AttributeError, "ConfigVariables are not immutable."
|
||
|
|
||
|
def ls(self):
|
||
|
from pandac.Notify import Notify
|
||
|
self.write(Notify.out())
|
||
|
|
||
|
def __cmp__(self, other):
|
||
|
return list(self).__cmp__(list(other))
|
||
|
|
||
|
def __len__(self):
|
||
|
return self.getNumValues()
|
||
|
|
||
|
def __getitem__(self, n):
|
||
|
if n < 0 or n >= self.getNumUniqueValues():
|
||
|
raise IndexError
|
||
|
return self.getUniqueValue(n)
|