On 12/23/2010 10:13 AM, Alan Gauld wrote:
"Rasjid Wilcox" wrote
I've been playing with dynamically generated classes. In particular:
class ClassMaker(object):
def __init__(maker_self, name):
maker_self.name = name
#
class Foo(object):
def __init__(self):
On 23 December 2010 20:13, Alan Gauld wrote:
> I think it will do what you want but I wouldn't bother putting the class
> definitions inside the init - unless there is a good reason. At the very
> least I would create two factory methods which are called by init.
> That would allow you to reset th
Thanks for the link.
I use Adapter already for java to align to different interface.
I was curious about the facade implementation.
Regards
Karim
On 12/23/2010 01:25 PM, Alan Gauld wrote:
"Karim" wrote
You mentioned the facade pattern. Could you please provide a basic
simple implementatio
"Karim" wrote
You mentioned the facade pattern. Could you please provide a basic
simple implementation of this pattern in python?
Not without spending more time than I have available.
But you can read about it on wikipedia, including Java example code.
However I think I actually should ha
Hello Alan,
You mentioned the facade pattern. Could you please provide a basic
simple implementation
of this pattern in python?
Regards
Karim
On 12/23/2010 10:13 AM, Alan Gauld wrote:
"Rasjid Wilcox" wrote
I've been playing with dynamically generated classes. In particular:
class Clas
"Rasjid Wilcox" wrote
I've been playing with dynamically generated classes. In
particular:
class ClassMaker(object):
def __init__(maker_self, name):
maker_self.name = name
#
class Foo(object):
def __init__(self):
self.parent = maker_self