Menu

#8 Update Gpib.py to use new-style class

closed-fixed
None
5
2012-01-28
2011-11-13
No

This changes the object-oriented version of the python binding (Gpib.py) to use a new-style class rather than an old-style class. This is a useful enhancement for subclassing Gpib in user code - e.g., modifying the read() method to strip termination characters using python's super() builtin.

New-style classes were introduced in python 2.2 - so they're not so new anymore.

Discussion

  • Thomas Baldwin

    Thomas Baldwin - 2011-11-13

    Patch

     
  • Frank Mori Hess

    Frank Mori Hess - 2012-01-28
    • assigned_to: nobody --> fmhess
    • status: open --> closed-fixed
     
  • Frank Mori Hess

    Frank Mori Hess - 2012-01-28

    Thanks, patch applied to svn.

     

Log in to post a comment.