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 diagram

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

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

Re: staticmethod and namespaces

2010-02-26 Thread darnzen
On Feb 26, 3:15 am, Diez B. Roggisch de...@nospam.web.de 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

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. Roggischde...@nospam.web.de 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

Re: staticmethod and namespaces

2010-02-26 Thread darnzen
On Feb 26, 1:12 am, Steven D'Aprano st...@remove-this- cybersource.com.au 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

Re: staticmethod and namespaces

2010-02-26 Thread darnzen
On Feb 26, 9:41 am, Diez B. Roggisch de...@nospam.web.de wrote: Am 26.02.10 16:32, schrieb darnzen: On Feb 26, 3:15 am, Diez B. Roggischde...@nospam.web.de  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 de...@nospam.web.de wrote: Am 26.02.10 16:32, schrieb darnzen: On Feb 26, 3:15 am, Diez B. Roggischde...@nospam.web.de  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 Diez B. Roggisch
Am 26.02.10 16:57, schrieb darnzen: On Feb 26, 9:41 am, Diez B. Roggischde...@nospam.web.de wrote: Am 26.02.10 16:32, schrieb darnzen: On Feb 26, 3:15 am, Diez B. Roggischde...@nospam.web.dewrote: 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 17:08, schrieb Diez B. Roggisch: Am 26.02.10 16:57, schrieb darnzen: On Feb 26, 9:41 am, Diez B. Roggischde...@nospam.web.de wrote: Am 26.02.10 16:32, schrieb darnzen: On Feb 26, 3:15 am, Diez B. Roggischde...@nospam.web.de wrote: Am 26.02.10 06:07, schrieb darnzen:

Re: staticmethod and namespaces

2010-02-26 Thread darnzen
On Feb 26, 10:20 am, Diez B. Roggisch de...@nospam.web.de 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. Roggischde...@nospam.web.de wrote: Am 26.02.10 16:32, schrieb darnzen: On Feb 26, 3:15 am, Diez B.

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:

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:

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 can I