|
Boost : |
From: David Abrahams (abrahams_at_[hidden])
Date: 2001-03-28 13:58:06
The undocumented member function of module_builder and class_builder called
def_raw() can allow you to do that.
Please see the comments in the code for def_raw in
boost/python/[module_builder|class_builder].hpp
and search for "def_raw" in
libs/python/test/comprehensive.[py|cpp]
HTH,
Dave
----- Original Message -----
From: <boost_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, March 28, 2001 8:06 AM
Subject: [boost] Boost.Python: keyword arguments
>
> Hi!
>
> I am new to this group and I would like to ask how to use keyword
> arguments in Boost.Python? That is, how to write a BPL function that
> models the following Python function:
>
> def foo(a,b=1):
> # do something
>
> or
>
> def fun(*args, *kwds):
> # do something
>
> May be this question is already answered but I could not find out how to
> access to the archives of this list. I appreciate any hints.
>
> Thanks in advance,
> Pearu
>
>
>
> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk