-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
inconsistence between traci and libsumo for vehicle.getLeader #7013
Comments
@behrisch I think traci should also return ("", -1), what do you think? |
None is more self explanatory but the libsumo solution is better for all the people who do automated unpacking. The problem is that such an API change can easily go unnoticed if you just check the boolean value of the result, so |
Generally, I agree with our rule but in this case I would be in favor of braking it (for automatic unpacking and general consistency with the internal libsumo API). |
OK, you are right, currently we never return None except for this one function. |
After seeing that several tests including simpla break, I think a more gradual approach is needed. |
if there is no leader, traci returns None whereas libsumoe always returns ("", -1)
The text was updated successfully, but these errors were encountered: