Techniques to extend code without modifying it? (besides modules and decorators)

Christian Seberino cseberino at gmail.com
Wed Apr 29 09:56:29 EDT 2020


I have some code I'd like to extend without modifying it.
I'm sure this is a common pattern.  I wondered what the
options were for "extending without modifying (much)".

I'm aware one can import a module and add functions to decorators.

Are there other ways?

Thanks!

chris


More information about the Python-list mailing list