[C++-sig] Static public variable definition not working
s_sourceforge at nedprod.com
Sat Feb 11 23:42:09 CET 2006
On 10 Feb 2006 at 16:06, David Abrahams wrote:
> > The offending line is in boost\libs\python\src\object\class.cpp in
> > BPL where class_base::setattr() calls PyObject_SetAttrString().
> I object. What evidence do you have that this line is offending?
That it throws an exception surely!
> > Is it possible that because FXGLContext has a base of FXId that the
> > wrapper for FXId has already set "metaClass" to its own metaClass?
> It is normally never a problem to call setattr to rebind an attribute
> that already exists. Why do you think this would make a difference?
If not, then it's some other cause.
> > In other words, if you set an attribute for a second time in BPL, you
> > overwrite the old one rather than generate an error.
> That's the normal behavior of Python; there's no reason any of these
> contortions should be necessary.
Hmm, looks like a testcase example will be required.
More information about the Cplusplus-sig