Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3938457
dunder.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
547 B
Referenced Files
None
Subscribers
None
dunder.py
View Options
class
dunder
:
def
__init__
(
self
):
self
.
data
=
{}
def
get
(
self
,
key
,
default
=
None
):
if
key
in
self
.
data
:
return
self
.
data
[
key
]
return
default
def
set
(
self
,
key
,
value
):
self
.
data
[
key
]
=
value
def
__iter__
(
self
):
for
key
,
value
in
self
.
data
.
items
():
yield
[
key
,
value
]
def
__getitem__
(
self
,
key
):
if
key
not
in
self
.
data
:
raise
KeyError
return
self
.
data
[
key
]
def
__setitem__
(
self
,
key
,
value
):
self
.
data
[
key
]
=
value
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Dec 26, 02:17 (17 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2261200
Default Alt Text
dunder.py (547 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment