mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
SF patch #474590 -- RISC OS support
This commit is contained in:
parent
c6ac8a78f6
commit
e2ae77b8b8
33 changed files with 256 additions and 188 deletions
|
@ -1,4 +1,4 @@
|
|||
"""A more or less complete user-defined wrapper around dictionary objects."""
|
||||
"""A more or less complete dictionary like interface for the RISC OS environment."""
|
||||
|
||||
import riscos
|
||||
|
||||
|
@ -8,8 +8,7 @@ class _Environ:
|
|||
def __repr__(self):
|
||||
return repr(riscos.getenvdict())
|
||||
def __cmp__(self, dict):
|
||||
if isinstance(dict, UserDict):
|
||||
return cmp(riscos.getenvdict(), dict)
|
||||
return cmp(riscos.getenvdict(), dict)
|
||||
def __len__(self):
|
||||
return len(riscos.getenvdict())
|
||||
def __getitem__(self, key):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue