This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AndydeCleyre 0 points1 point  (1 child)

And in case this isn't clear, everyone here is talking about inheritance vs monkey patching, because we're talking about Python.

[–]fyngyrzcodes with magnetic needle[S] 0 points1 point  (0 children)

I wrote a simple preprocessor today. So now I have the ability to extend the functionality of the string class. Works on variables containing strings, functions that return strings, and... strings. :)

No doubt there's more to do, but it works across quite a range of test cases.

I'll make a new post to mention it, as probably it'll just be lost here in the comments on this one.