Re: Replace a module variable with a function call

2006-02-06 Thread gabriel . becedillas
Tim and Carsten, Thank you very much for your replies. I'm afraid this is not going to work for me (but I'm not 100% sure), coz if I access those modules from the Python's C API (PyModule_* functions), the PyModule_Check() calls will fail. Thanks again. -- http://mail.python.org/mailman/listinfo/

Re: Replace a module variable with a function call

2006-02-06 Thread Carsten Haese
On Mon, 2006-02-06 at 14:38, [EMAIL PROTECTED] wrote: > Your post didn't provide any help at all, it was a useless sarcastic > post and I'm a very sensible person. Your original question didn't provide enough detail to offer an answer, which is why I asked the question what the dynamic return valu

Re: Replace a module variable with a function call

2006-02-06 Thread gabriel . becedillas
Your post didn't provide any help at all, it was a useless sarcastic post and I'm a very sensible person. -- http://mail.python.org/mailman/listinfo/python-list

Re: Replace a module variable with a function call

2006-02-06 Thread Carsten Haese
On Mon, 2006-02-06 at 14:19, [EMAIL PROTECTED] wrote: > I'm not going to waste my time with more > examples coz probably you won't understand them either. Fine, I won't waste my time trying to help you. -Carsten. -- http://mail.python.org/mailman/listinfo/python-list

Re: Replace a module variable with a function call

2006-02-06 Thread Tim Hochberg
[EMAIL PROTECTED] wrote: > I have a module that defines a variable with a constant value and now I > need to make that value dynamic, without affecting module clients. In > other words, I need to call a function witout using parenthesis. > Example: > > mymod.py-- > > def value

Re: Replace a module variable with a function call

2006-02-06 Thread gabriel . becedillas
There are modules (like os) that define some stuff that depends on the platform (for example linesep). This platform dependent constants gets their values assigned when the module gets loaded, but in our application, different threads might run on different computers (by proxying syscalls).. and we

Re: Replace a module variable with a function call

2006-02-06 Thread Carsten Haese
On Mon, 2006-02-06 at 13:54, [EMAIL PROTECTED] wrote: > I have a module that defines a variable with a constant value and now I > need to make that value dynamic, without affecting module clients. In > other words, I need to call a function witout using parenthesis. > Example: > > mymod.py