#346 Wrong Python exception if an object attribute does not exist

None
closed
None
5
2014-03-02
2014-01-30
No

In 'swig_varlink_getattr' a wrong exception will be thrown if the attribute was not found. The right exception is an 'AttributeError' exception instead of a 'NameError' exception.

1 Attachments

Discussion

  • William Fulton

    William Fulton - 2014-03-02

    A similar change for swig_varlink_setattr will also be required.

     
  • William Fulton

    William Fulton - 2014-03-02

    Applied for SWIG-3.0.0. Also modified swig_varlink_setattr to use AttributeError.

     
  • William Fulton

    William Fulton - 2014-03-02
    • status: open --> closed
    • assigned_to: William Fulton
    • Group: -->
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks