-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
alloc_emergency_exception_buf on esp8266 do not exist #2431
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
Comments
I guess it can be added, it's a useful function to have. Would be nice to have a shorter name though, |
How about just |
I would agree that "emergency" is not as helpful, but would vote for expanding the "exc" to |
It needs the word "emergency" because otherwise you'd think it was allocating a general buffer for use by all exceptions. |
Normally I would agree that spelling out "exception" is a good idea, however, with the limited memory and with "exc" being used to mean "exception" in Python's standard library already (like here https://docs.python.org/2/library/traceback.html#traceback.print_exc), this is not so painful. How about using a more meaningful word than "emergency" to indicate when that buffer is used? Perhaps |
What about |
I think that |
Given that I have (and going to have) bunch of proposals of what to change in uPy API(s), I'd compensate that by being conservative with changing something which could be not changed (IMHO of course), like this case, and give my -0.01 on it. However, I'd say that if there's pressure to cut whole words out, then "exception buffer" already gives enough hints that it's a special helper for exceptions (we don't buffer exception normally, so if we talk about exception buffer, that's already something for exceptional conditions, d'oh). That naturally contracts to exc_buf. And if there's future desire to cut chars from alloc_exc_buf(), can be made set_exc_buf(). |
If there's no consensus on renaming the function, I guess it still should be enabled for 1.8.5. |
Ok, let's defer discussion about changing the name. Enabled in ed87827. |
define board.VOLTAGE_MONITOR for feather_stm32f405_express
The text was updated successfully, but these errors were encountered: