- **Milestone**: 5.19.07 --> future


---

** [tickets:#2471] pyosaf: Generate the AIS Python bindings from the C header 
files**

**Status:** accepted
**Milestone:** future
**Created:** Tue May 30, 2017 10:21 AM UTC by Anders Widell
**Last Updated:** Wed Jul 03, 2019 06:28 AM UTC
**Owner:** Anders Widell


The existing Python bindings have been created by hand. This causes several 
problems:

* The python bindings have not (always) been updated when the C header files 
have been modified, for example when adding a new OpenSAF extension. It is also 
difficult to know if the python bindings are complete or if some function is 
missing
* There is a risk for typos and copy-paste bugs when manually translating the C 
header files to Python
* Because of the risk for typos, all API functions and structure definitions 
must be tested individually
* Due to the manual effort, there is a risk for inconsistencies in how 
different C functions are mapped to Python - especially over time if different 
people are working with the bindings

To solve the above mentioned probelms, the suggestion is to instead translate 
the C header files to Python automatically at build time.



---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to