[Ironpython-users] How to use __ getattr__ to the current module?

2012-09-17 Thread sepatan
Hello. For example in the text of the module meets the command: ttt(4, x = 7) where and how to define __ getattr__ to handle it? Thank you. ___ Ironpython-users mailing list [email protected] http://mail.python.org/mailman/listinfo/ironpython-u

[Ironpython-users] WG: Re:Example Sources

2012-09-17 Thread Markus Schaber
Hi, Kelvin and Chris, Do you know whether we have some chinese documentation about softmotion? I'm already researching whether we have some documentation in English.. Best regards Markus Schaber -- ___ We software Automation. 3S-Smart Software Solutions GmbH Markus Sch

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-17 Thread Vernon Cole
Dear Sir: Sorry, your question does not seem to make sense. Your example appears to be a simple function call with one keyword argument. To use it, you simply define the optional arguments when you define the function. See the documentation at: http://docs.python.org/tutorial/controlflow.html#m

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-17 Thread sepatan
Hello, Vernon Cole. Or you probably do not understand the question, or I did not properly posed the question. I know I can define a function (ttt). And if I'm interested in __ getattr__, so in this case it can not be determined, or its name and parameters are defined at run time. Thank you. > Dear

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-17 Thread Jeff Hardy
The short answer is that you can't, in any version of Python. The longer answers can be found at http://stackoverflow.com/questions/2447353/getattr-on-a-module. - Jeff On Mon, Sep 17, 2012 at 10:17 AM, wrote: > Hello, Vernon Cole. > Or you probably do not understand the question, or I did not

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-17 Thread Vernon Cole
On Mon, Sep 17, 2012 at 11:17 AM, wrote: > Hello, Vernon Cole. > Or you probably do not understand the question, or I did not properly > posed the question. > I know I can define a function (ttt). And if I'm interested in __ > getattr__, so in this case it can not be determined, or its name and >

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-17 Thread Vernon Cole
Jeff: Why are your answers always so much better than mine? Vernon On Mon, Sep 17, 2012 at 2:27 PM, Jeff Hardy wrote: > The short answer is that you can't, in any version of Python. > > The longer answers can be found at > http://stackoverflow.com/questions/2447353/getattr-on-a-module. > > - J

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-17 Thread sepatan
Hello, Jeff Hardy ). 1) It is a good reference. But the methods must be defined in advance (class A). If I write ttt ('i') without defining it in the class A, I get an error. Use __getattr__ in class A does not work. class A(object): def salutation(self, accusative): # code def fa