In Python 3 one can use super() instead of super(MyClass, self), but this only works in methods that were defined inside the class. As described in Michele Simionato\'s article the following example d
I\'m looking for design ideas about creating dynamic forms. What I currently have is a bunch of models with a few properties / variables for example:
I don\'t know if this will make sense, but... I\'m trying to dynamically assign methods to an object. #translate this
Under what circumstances is it possible, and when is it impossible, to assign to an instance\'s __class__ attribute in Python?
I would like to do some magic in the moment instance and class methods are added to some class. Therefore I tried the following:
Let\'s pretend I have some items in Stuff table. The names are: RedBaloon, SmallBall, BigShoe, ShoeString
As part of some testing, I\'m looking to, temporarily, replace the contents of a message with one that will return a predictable set of test values. What is the standard Smalltalk-y way to do this typ
is it possible to refer to a column/table name by using a string? Something like SELECT * FROM \'my_table\'::table_name_t?
For user convenience and more clean code I would like to write a class that can be used like this: Encoder::Theora.encode do
So I was looking for ways to check whether a function with a particular argument exists. I have a templated method which relies on an external function (external from the class) to do the job: