FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Design-Patterns-in-Python/wrapper.py at master · MovingAverage/Design-Patterns-in-Python · GitHub
MovingAverage
/
Design-Patterns-in-Python
Public
forked from
gennad/Design-Patterns-in-Python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Design-Patterns-in-Python
/
wrapper.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
8 lines (8 loc) · 246 Bytes
Breadcrumbs
Design-Patterns-in-Python
/
wrapper.py
Copy path
File metadata and controls
8 lines (8 loc) · 246 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
class
RestrictingWrapper
(
object
):
def
__init__
(
self
,
w
,
block
):
self
.
_w
=
w
self
.
_block
=
block
def
__getattr__
(
self
,
n
):
if
n
in
self
.
_block
:
raise
AttributeError
,
n
return
getattr
(
self
.
_w
,
n
)
Back
|
FazBrowse Home
|
New Git URL