[issue38399] Error message persists when reimporting library

2019-10-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Importing the second and subsequent times reloads the module from the system cache. Instead, you can: - run ``del sys.modules['hexdump']`` and then ``import hexdump``; - call ``importlib.reload(hexdump)``; or - restart the REPL. Remember that reloading th

[issue38399] Error message persists when reimporting library

2019-10-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is due to str bytes concatenation error on line number 19. Editing and reimporting doesn't give you new code in repl. Try the changes in new repl after changing it in file. Python will just use unchanged code and will use line number 1

[issue38399] Error message persists when reimporting library

2019-10-07 Thread AwesomeCronk
New submission from AwesomeCronk : I am working on a hexdump library in Python 3.7.4. Whenever an issue is triggered, the error message shows up. I can usually edit and correct the file(library), but when I reimport the library and rerun the function, it throws the same error on the same line