| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | python: Avoid using 'type' as a variable name. | Ben Pfaff | 2011-08-24 | 1 | -3/+3 |
| | | | | | | | | 'type' is a Python built-in function, so it's best to avoid using it as a variable name. Reported-by: Reid Price <reid@nicira.com> | ||||
| * | python: Use getattr() and setattr() instead of __dict__. | Ben Pfaff | 2011-08-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | This leaves one use of __dict__ used for iterating through attributes. I could use dir() instead, but I was put off by this note in its documentation in the Python Library Reference: Because dir() is supplied primarily as a convenience for use at an interactive prompt, it tries to supply an interesting set of names more than it tries to supply a rigorously or consistently defined set of names, and its detailed behavior may change across releases. For example, metaclass attributes are not in the result list when the argument is a class. Suggested-by: Reid Price <reid@nicira.com> | ||||
| * | Implement initial Python bindings for Open vSwitch database. | Ben Pfaff | 2010-08-25 | 1 | -0/+39 |
| These initial bindings pass a few hundred of the corresponding tests for C implementations of various bits of the Open vSwitch library API. The poorest part of them is actually the Python IDL interface in ovs.db.idl, which has not received enough attention yet. It appears to work, but it doesn't yet support writes (transactions) and it is difficult to use. I hope to improve it as it becomes clear what semantics Python applications actually want from an IDL. | |||||
