Re: Borg vs Singleton vs OddClass

2008-09-28 Thread Lie
On Sep 28, 9:45 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Sat, 27 Sep 2008 11:12:00 -0700, Lie wrote: > > This is probably unrelated to Python, as this is more about design > > pattern. I'm asking your comments about this design pattern that is > > similar in functional

Re: Borg vs Singleton vs OddClass

2008-09-28 Thread Lie
On Sep 28, 7:22 am, Miles <[EMAIL PROTECTED]> wrote: > Lie wrote: > > This is probably unrelated to Python, as this is more about design > > pattern. I'm asking your comments about this design pattern that is > > similar in functionality to Singleton and Borg: to share states. > > > I'm thinking ab

Re: Borg vs Singleton vs OddClass

2008-09-28 Thread Carl Banks
On Sep 27, 2:12 pm, Lie <[EMAIL PROTECTED]> wrote: > I'm thinking about this design pattern (I don't know if anyone has > ever thought of this pattern before): > > class OddClass(object): >     def __init__(self): >         global OddClass >         OddClass = self >     def __call__(): >         r

Re: Borg vs Singleton vs OddClass

2008-09-27 Thread Steven D'Aprano
On Sat, 27 Sep 2008 11:12:00 -0700, Lie wrote: > This is probably unrelated to Python, as this is more about design > pattern. I'm asking your comments about this design pattern that is > similar in functionality to Singleton and Borg: to share states. > > I'm thinking about this design pattern (

Re: Borg vs Singleton vs OddClass

2008-09-27 Thread Miles
Lie wrote: > This is probably unrelated to Python, as this is more about design > pattern. I'm asking your comments about this design pattern that is > similar in functionality to Singleton and Borg: to share states. > > I'm thinking about this design pattern (I don't know if anyone has > ever thou

Borg vs Singleton vs OddClass

2008-09-27 Thread Lie
This is probably unrelated to Python, as this is more about design pattern. I'm asking your comments about this design pattern that is similar in functionality to Singleton and Borg: to share states. I'm thinking about this design pattern (I don't know if anyone has ever thought of this pattern be