[karmic][regression] def_readonly on static property results in AttributeError at import time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
boost-defaults (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Compiling simple module wrapping static data member results in AttributeError when importing the module:
$ cat foo.cc
#include<
struct Foo{
static int bar;
};
int Foo::bar=3;
BOOST_PYTHON_
boost:
}
$ g++ -o foo.so -I/usr/
$ PYTHONPATH=. python -c 'import foo'
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'Boost.
This bug (?) was described first at c++-sig in the http://
Karmic only; no other tested distribution (hardy,
Installed version libboost-
tags: | added: karmic regression-release |
Renato found a workaround for the issue:
http:// thread. gmane.org/ gmane.comp. python. c++/13979/ focus=14000
Can you try that with your testcase?