Re: Singleton and C extensions

2005-11-25 Thread Neal Norwitz
Emmanuel Briot wrote: > > I am not really good at python, but I was trying to implement the > singleton design pattern in C, so that for instance calling the constructor > >ed = Editor ("foo") > > would either return an existing instance of Editor currently editing > "foo", or would create a ne

Re: Singleton and C extensions

2005-11-25 Thread Scott David Daniels
Emmanuel Briot wrote: > I am participating in the development of a GPL IDE >https://libre2.adacore.com/gps/ > I am not really good at python, but I was trying to implement the > singleton design pattern in C, so that for instance calling the constructor >ed = Editor ("foo") Fredrik's advic

Re: Singleton and C extensions

2005-11-25 Thread Fredrik Lundh
Emmanuel Briot wrote: > I am participating in the development of a GPL IDE > https://libre2.adacore.com/gps/ > > It is written in Ada, but provides an extensive extensibility through > Python. > > I am not really good at python, but I was trying to implement the > singleton design pattern in C,

Singleton and C extensions

2005-11-25 Thread Emmanuel Briot
I am participating in the development of a GPL IDE https://libre2.adacore.com/gps/ It is written in Ada, but provides an extensive extensibility through Python. I am not really good at python, but I was trying to implement the singleton design pattern in C, so that for instance calling the co