[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| 
[sumo-dev] Changing the result types in TraCI / libsumo
 | 
- From: Michael Behrisch <oss@xxxxxxxxxxx>
 
- Date: Tue, 17 Jul 2018 15:24:47 +0200
 
- Autocrypt: addr=oss@xxxxxxxxxxx; prefer-encrypt=mutual; keydata=	xsDiBFLSvucRBACGsasS4GeIWs1CFNTOYmp3ScQ2ZTJLJWQxhPliwtHTzLsErYu9Y7e8qDov	iHFviYyaNuceUNoACm1e4MT4eu0DmM2Wk3y/jjD6hfm7L0EZNPxQhj+CJf2oZAm2ezCe7/si	xZ2d7TCO8yWavOGbF0EVi/ZDIJqVgupu6WBpv/NCewCg65HQiS1wm+1w1MdFYxKCmXzbv08D	/iWXX3tzabbCrLlUum8hBgBpJEHRtlic2uaGsKm8Fize4tfLZkTBbTYLYXfcx2Oq9+lINPTW	h9jnbCjAjErRWLTjNTQjel0JnDryCnqabub/R3wScR/EHRDBeS9L6YRj0xdVd2qIaArtSYRR	auKPNc4M2qZNEFSM37cXC7avhpdeA/99oJf4qyVly4RxHmekAmj9UJjRx17x9xX8t9uzUuSt	AeTh+kQ3o5jK7veU6/F/+pPyi96EOzym9BJA8pgXC8hLWNjOajI10filkdQ26QsfHOpUdPSZ	4Duyw9Ayj8loagEnnAONmU/xE0QlyVBANIut0W+SNqPScYXfnBbVOaG3Hc0mTWljaGFlbCBC	ZWhyaXNjaCA8bWljaGFlbEBiZWhyaXNjaC5kZT7CZgQTEQIAJgIbIwcLCQgHAwIBBhUIAgkK	CwQWAgMBAh4BAheABQJS0sKXAhkBAAoJEDwQ/pbRcKYp+SEAoMJSvUzfk3u6EA1nMlMVSk85	nHhoAJ0VE5xLi2ni8j9wdx+uga7XGLtjhs7ATQRS0r7nEAQAkQLdzlu3i/Ddziadm2c/60ZX	bcY3FYhHHfsKUHC/QING+lu3uHG0nPaElPTAHTr8UdFMbmpXkRs9+1v1RAvHBWW95BbUXZeu	oBsoCm+4Jdktu+PeVxGKhOwQRdR30A4y/bIeRn7iMzkZKoQh0lE3ZEbs0T8TUHBGBUqwEhIv	Y0MAAwUD/RXrkwtUiR61/bT96eMaxGtO15AqvlM8DYQ3Xs6EH09QlGzr/i0+usi01wGoh13p	YGjzEDtTqO+lNs9AtS7nZAHA3cCWzLmdEXw6EY7IH4X7zOpKoj+JtLNjUd2Nzvhyl48LT217	g8GmCACL6Wo/G+fZ+30Mny+gWbDtEGXNIv7fwkkEGBECAAkFAlLSvucCGwwACgkQPBD+ltFw	pimNZQCgnN5oibnjl7r2SVle6hgUMcckfN4AoMYRjy/Tqz9tq8TSUqNcOTjlMR7D
 
- Delivered-to: sumo-dev@xxxxxxxxxxx
 
- List-archive: <https://dev.eclipse.org/mailman/private/sumo-dev>
 
- List-help: <mailto:sumo-dev-request@eclipse.org?subject=help>
 
- List-subscribe: <https://dev.eclipse.org/mailman/listinfo/sumo-dev>,	<mailto:sumo-dev-request@eclipse.org?subject=subscribe>
 
- List-unsubscribe: <https://dev.eclipse.org/mailman/options/sumo-dev>,	<mailto:sumo-dev-request@eclipse.org?subject=unsubscribe>
 
- Openpgp: preference=signencrypt
 
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101	Thunderbird/52.8.0
 
Hi,
as you might have noticed we are in the process of restructuring TraCI
to make its functionality available also when linking directly to sumo
(aka libsumo). To facilitate this we make use of SWIG
http://www.swig.org/ which generates the wrapper code for different
languages (for instance Python and Java). A major problem here is the
translation of data types and here comes my question to the community:
The current python TraCI client always returns lists of objects (for
instance vehicle ids) whenever an ordered sequence is being asked for.
Swig on the other hand currently translates a C++ std::vector into a
Python tuple. While it is possible to change that, it seems quite
cumbersome and in fact I like the idea of returning a non modifiable
item much better. Since this changes the Python API in many places
(although with probably only minor impact), I would like to ask you in
advance. Any objections to this change? Will this break all of your work?
Best regards,
Michael
Attachment:
signature.asc
Description: OpenPGP digital signature