Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaseData_getAttr_value unsupported native type returning string value #4

Open
matthieu-nesme opened this issue Jul 5, 2017 · 4 comments
Assignees

Comments

@matthieu-nesme
Copy link
Member

remplacer tous les accès aux Data qui génèrent ces warnings par
moncomposant.findData('madata').getValueString()
dans tous nos scripts python

@thomas-lemaire
Copy link

Un jour on pourra utiliser la fonction repr() standard de python, utiliser automatiquement lors de la serialization json par exemple

@matthieu-nesme
Copy link
Member Author

@thomas-lemaire @maxime-tournier

une contre-indication à remplacer (ou ajouter) Data.str par Data.repr dans Binding_Data.cpp ? qui fait un data->getValueString()

Du coup tous les accès aux data générant un warning (du genre "not bound returning string") pourraient être remplacés par repr(moncomposant.findData('madata')) afin d'avoir du code pérenne (qui ne pète pas dès qu'on règle le binding de la data).

@thomas-lemaire
Copy link

thomas-lemaire commented Sep 18, 2017 via email

@matthieu-nesme
Copy link
Member Author

Oui actuellement faut mettre str() et pas repr(), tant qu'à faire, on finit de nettoyer.
En fait je ne sais pas ce que fait repr() actuellement :)

C'est quoi l'histoire de arduino ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants