Software reliability
-
Can anyone explain to me why
from network import LTE; lte=LTE()would be more reliable & less like to generate a
NameError: name 'lte' is not definedlater in the program than
import network; lte=network.LTE() -
@kjm There is no difference between the two options. If you see one, check whether there is a difference in the scope of lte symbol, like global vs. local. A global symbol can be seen everywhere in the code, but creation or assignment in a function or class is local, unless you define it explicitly as global.
-
Hard to tell without more details.
Do you import all your stuff at the beginning or somewhere inside the script?
- do you really reach the declaraiont path?
- have you checked for try/catch?
- checked memory fragmentation?
- checked that callbacks will be handeled only after the declaration
- ...
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login