Adding Dynamically Named Methods to Python Classes

Adding Dynamically Named Methods to Python Classes

I recently wanted to dynamically add methods to a Python class based on a list of relationships. The model class, Animal, was related to a number of description classes like Color and Sound. For a given animal, I wanted to be able to easily get the values for its...
2014 Review: Day 9

2014 Review: Day 9

Taking an opportunity to look back at some of our most-read posts from this year, in case you missed them the first time, as the last few days of the year slip by us… In our penultimate look back at 2014’s developer blog, Fran Bull talks about using interactive...

2014 Review: Day 8

Taking an opportunity to look back at some of our most-read posts from this year, in case you missed them the first time, as the last few days of the year slip by us…   My turn! Earlier this year I wrote about a little Twitterbot that I wrote to...

2014 Review: Day 4

As 2014 winds down, we’re taking an opportunity to look back at some of our most-read posts from this year, in case you missed them the first time.  Vlad Orlenko wrote a couple of great posts on integrating social logins and posting with web apps written using the...