[Ironpython-users] How to use __ getattr__ to the current module?
Vernon Cole
vernondcole at gmail.com
Mon Sep 17 17:11:27 CEST 2012
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#more-on-defining-functions
__getattr__ is only used within classes to emulate methods which do not
actually exist. That does not appear to be what you are wanting.
--
Vernon Cole
On Mon, Sep 17, 2012 at 4:42 AM, <sepatan at sibmail.com> wrote:
> 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
> Ironpython-users at python.org
> http://mail.python.org/mailman/listinfo/ironpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120917/e6a868bc/attachment.html>
More information about the Ironpython-users
mailing list