Skip to content

Conversation

stevendes
Copy link
Owner

Completed and ready for review!

@stevendes stevendes requested a review from glpuga January 24, 2020 13:15
class Dog(object):
def bark(self):
return "WOOF"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you familiar with the concept of Monkey Patching? Could you briefly explain what it is and give an example of what it is used for?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have an understanding of what is, but I'm not that familiar with it.

What I get of Monkey Patching is a way to modify classes to add functionalities according to what you desire for that specific code.

For example, you may be importing a class from another source, but for that specific code you need some kind of test to validate a variable, so instead of creating an object to handle that testing, you just add it to the imported class, and that would be valid for that code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants