#921 [python]typo in pycontainer.swg

closed
python (259)
5
2008-05-28
2008-05-25
Haoyu Bai
No

In SVN trunk r10487, Lib/python/pycontainer.swg, around line 741 you can find this:

#ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS
swig_type_info *desc = swig::type_info<sequence>();
if (desc && desc->clientdata) {
return SWIG_NewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN);
}
#endif

I think these #ifdef and %#endif should be %#ifdef and %#endif. Because SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS is defined in the generated code by run SWIG with '-extranative' option.

However, I don't know what this option means and what it did.

Discussion

  • Haoyu Bai

    Haoyu Bai - 2008-05-28
    • status: open --> closed
     
  • Haoyu Bai

    Haoyu Bai - 2008-05-28

    Logged In: YES
    user_id=2044815
    Originator: YES

    I've committed a fix to CVS.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks