[C++-sig] Re: Boost.Python V2: list implementation

David Abrahams david.abrahams at rcn.com
Wed Jul 3 20:48:41 CEST 2002


From: "Dave Hawkes" <daveh at cadlink.com>


> What about the other built-in types that are already implemented such as
> modules and functions, should those now be re-written in terms of object?

I think we're safe <wink>:

>>> function
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'function' is not defined


OTOH, I would like to have an object derived class called 'callable'.

>>> module
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'module' is not defined>


Seriously, though, when we adopt your module interface changes, your idea
of making an object-derived class for module might be a good one.

-Dave







More information about the Cplusplus-sig mailing list