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

replace asserts with ValueError or TypeError #709

Open
wants to merge 3 commits into
base: ev3dev-stretch
Choose a base branch
from

Conversation

dwalton76
Copy link
Collaborator

No description provided.

@dwalton76
Copy link
Collaborator Author

For #707

@dlech
Copy link
Member

dlech commented Jan 12, 2020

Although this is "more correct", it is a breaking change for anyone catching the existing exceptions - something to consider.

@WasabiFan
Copy link
Member

On one hand, these are errors that should be considered programmer error (i.e., a caller's bug) rather than a signal, and thus people shouldn't be catching them. On the other hand, it is a breaking change, and we've been having this discussion already with other slight breaking changes which we have not yet released.

I am leaning toward including this, calling the next release v3.0, and making a breaking changes page in the docs for v3. But I'm not yet entirely sure that's what I want to do. Certainly, it breaks the nice "v1.0 is Jessie, v2.0 is Stretch" rule we have so far, but I'm not sure that really matters.

@dlech
Copy link
Member

dlech commented Jan 12, 2020

There is ev3dev-buster if you want to go crazy with breaking changes 😉

I would be very cautious about releasing any breaking changes to ev3dev-stretch, no matter how small. My experience has always been that it breaks more than you would think. And there are lots of people using ev3dev-lang-python.

@dwalton76
Copy link
Collaborator Author

I would be game for creating an ev3dev-buster branch and putting this there instead.

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

Successfully merging this pull request may close these issues.

3 participants