Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
python #6
c32team
Jun 13th, 2024
405
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
extender
(
cls
)
:
cls.
hello
=
lambda
self
,
name:
print
(
f
'Hello, {name}'
)
return
cls
@
extender
class
Client:
pass
c
=
Client
(
)
c.
hello
(
'Tom'
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
OoT rando seed 4/16
11 min ago | 67.81 KB
Untitled
36 min ago | 8.21 KB
Untitled
1 hour ago | 8.46 KB
Untitled
2 hours ago | 7.62 KB
Web Maintenance Kickoff [POST REDESIGN]
3 hours ago | 0.98 KB
Untitled
3 hours ago | 7.43 KB
Untitled
4 hours ago | 6.56 KB
Untitled
5 hours ago | 16.10 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!