Re: staticmethod and namespaces

2010-04-07 Thread Дамјан Георгиевски
> Having an odd problem that I solved, but wondering if its the best > solution (seems like a bit of a hack). > > First off, I'm using an external DLL that requires static callbacks, > but because of this, I'm losing instance info. It could be import > related? It will make more sense after I di

Re: staticmethod and namespaces

2010-02-27 Thread Gregory Ewing
darnzen wrote: Well, I got around this mess by putting all those static callbacks into a separate module in a new class. I set them up to call a bound method of that class which passes the arguments to the appropriate bound methods of other class instances. I just have to keep a little dict of t

Re: staticmethod and namespaces

2010-02-26 Thread darnzen
On Feb 26, 10:20 am, "Diez B. Roggisch" wrote: > Am 26.02.10 17:08, schrieb Diez B. Roggisch: > > > > > > > Am 26.02.10 16:57, schrieb darnzen: > >> On Feb 26, 9:41 am, "Diez B. Roggisch" wrote: > >>> Am 26.02.10 16:32, schrieb darnzen: > > On Feb 26, 3:15 am, "Diez B. Roggisch" wrote: >

Re: staticmethod and namespaces

2010-02-26 Thread Diez B. Roggisch
Am 26.02.10 17:08, schrieb Diez B. Roggisch: Am 26.02.10 16:57, schrieb darnzen: On Feb 26, 9:41 am, "Diez B. Roggisch" wrote: Am 26.02.10 16:32, schrieb darnzen: On Feb 26, 3:15 am, "Diez B. Roggisch" wrote: Am 26.02.10 06:07, schrieb darnzen: Having an odd problem that I solved, but

Re: staticmethod and namespaces

2010-02-26 Thread Diez B. Roggisch
Am 26.02.10 16:57, schrieb darnzen: On Feb 26, 9:41 am, "Diez B. Roggisch" wrote: Am 26.02.10 16:32, schrieb darnzen: On Feb 26, 3:15 am, "Diez B. Roggisch"wrote: Am 26.02.10 06:07, schrieb darnzen: Having an odd problem that I solved, but wondering if its the best solution (seems

Re: staticmethod and namespaces

2010-02-26 Thread darnzen
On Feb 26, 9:41 am, "Diez B. Roggisch" wrote: > Am 26.02.10 16:32, schrieb darnzen: > > > > > > > On Feb 26, 3:15 am, "Diez B. Roggisch"  wrote: > >> Am 26.02.10 06:07, schrieb darnzen: > > >>> Having an odd problem that I solved, but wondering if its the best > >>> solution (seems like a bit of a

Re: staticmethod and namespaces

2010-02-26 Thread darnzen
On Feb 26, 9:41 am, "Diez B. Roggisch" wrote: > Am 26.02.10 16:32, schrieb darnzen: > > > > > > > On Feb 26, 3:15 am, "Diez B. Roggisch"  wrote: > >> Am 26.02.10 06:07, schrieb darnzen: > > >>> Having an odd problem that I solved, but wondering if its the best > >>> solution (seems like a bit of a

Re: staticmethod and namespaces

2010-02-26 Thread darnzen
On Feb 26, 1:12 am, Steven D'Aprano wrote: > On Thu, 25 Feb 2010 21:07:55 -0800, darnzen wrote: > > Having an odd problem that I solved, but wondering if its the best > > solution (seems like a bit of a hack). > > > First off, I'm using an external DLL that requires static callbacks, but > > becau

Re: staticmethod and namespaces

2010-02-26 Thread Diez B. Roggisch
Am 26.02.10 16:32, schrieb darnzen: On Feb 26, 3:15 am, "Diez B. Roggisch" wrote: Am 26.02.10 06:07, schrieb darnzen: Having an odd problem that I solved, but wondering if its the best solution (seems like a bit of a hack). First off, I'm using an external DLL that requires static call

Re: staticmethod and namespaces

2010-02-26 Thread darnzen
On Feb 26, 3:15 am, "Diez B. Roggisch" wrote: > Am 26.02.10 06:07, schrieb darnzen: > > > > > > > Having an odd problem that I solved, but wondering if its the best > > solution (seems like a bit of a hack). > > > First off, I'm using an external DLL that requires static callbacks, > > but because

Re: staticmethod and namespaces

2010-02-26 Thread Diez B. Roggisch
Am 26.02.10 06:07, schrieb darnzen: Having an odd problem that I solved, but wondering if its the best solution (seems like a bit of a hack). First off, I'm using an external DLL that requires static callbacks, but because of this, I'm losing instance info. It could be import related? It will ma

Re: staticmethod and namespaces

2010-02-25 Thread Steven D'Aprano
On Thu, 25 Feb 2010 21:07:55 -0800, darnzen wrote: > Having an odd problem that I solved, but wondering if its the best > solution (seems like a bit of a hack). > > First off, I'm using an external DLL that requires static callbacks, but > because of this, I'm losing instance info. [...] > How ca

staticmethod and namespaces

2010-02-25 Thread darnzen
Having an odd problem that I solved, but wondering if its the best solution (seems like a bit of a hack). First off, I'm using an external DLL that requires static callbacks, but because of this, I'm losing instance info. It could be import related? It will make more sense after I diagram it: #Mo

staticmethod and namespaces

2010-02-25 Thread darnzen
Having an odd problem that I solved, but wondering if its the best solution (seems like a bit of a hack). First off, I'm using an external DLL that requires static callbacks, but because of this, I'm losing instance info. It will make more sense after I diagram it: #Module main.py class App: