from pipelined import Pipelined
class Foo(Pipelined):
def __init__(self, initial):
self.initial = initial
def say(self):
return self.initial + " fucking"
def say(self, text):
return text + " world"
def say(self, text):
return text + "!"
def say(self, text):
return text.title()
obj = Foo("hello")
print(obj.say()) # Hello Fucking World!
Foo.say.add(lambda self, text: text + " (from lambda)")
print(obj.say()) # Hello Fucking World! (from lambda)
-
Notifications
You must be signed in to change notification settings - Fork 0
ypankovych/python-class-pipelines
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published