Skip to content

ypankovych/python-class-pipelines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

python-class-pipelines

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages