Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

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

None
closed
None
5
2014-03-02
2014-01-30
Jens Krueger
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: -->