#19 Cannot call Object (call_handler bug)

closed
nobody
None
5
2007-01-06
2006-05-09
Anonymous
No

call_handler fails in
pycxx_5_3_5/Src/cxx_extensions.cxx because of a
spurious early return. The expression in this return
does not handle the case of kw==NULL (no keywords), and
so most calls fail because NULL cannot be converted to
Object and TypeError is thrown. The bug is fixed by
deleting the first return statement, which duplicates
the block in the if clause. Patch attached.

Kind regards,

--
Ben Caradoc-Davies
<ben.caradoc-davies@metoceanengineers.com>
Software Development Manager
MetOcean Engineers Pty Ltd, 31 Bishop St, Jolimont WA
6014, Australia
T +61 8 9387 7955 - F +61 8 9387 6686 -
http://metoceanengineers.com/

Discussion

  • Nobody/Anonymous

    Patch for pycxx_5_3_5/Src/cxx_extensions.cxx

     
    Attachments
  • Barry Alan Scott

    Logged In: YES
    user_id=28665
    Originator: NO

    Thanks for the patch. Applied as r92.

     
  • Barry Alan Scott

    • status: open --> closed
     

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

Sign up for the SourceForge newsletter:





No, thanks