Message341420
These lines fail on Windows in a surprising way:
# -*- coding: utf8 -*-
import threading
print("threading %s" % threading)
Normally they would throw this:
```File "C:\Python36\Lib\site-packages\missinglink_kernel\callback\log_monitor.py", line 1
SyntaxError: encoding problem: utf8```
But attached is a file that throws this instead:
```
Traceback (most recent call last):
File "C:\Python36\Lib\site-packages\missinglink_kernel\callback\log_monitor.py", line 2, in <module>
import threading
NameError: name 'threading' is not defined
```
It seems that the amount of lines in the file will cause the exception hiding bug to manifest.
This issue did reproduce on my Windows machine here:
* Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32
* Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
* Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
It did NOT reproduce on my Mac at all:
It does not repro on my mac at all:
* Python 3.7.1 (default, Dec 14 2018, 13:28:58) [Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
* Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin |
|
Date |
User |
Action |
Args |
2019-05-05 06:32:07 | ubershmekel | set | recipients:
+ ubershmekel, paul.moore, tim.golden, zach.ware, steve.dower |
2019-05-05 06:32:07 | ubershmekel | set | messageid: <1557037927.09.0.679611511238.issue36800@roundup.psfhosted.org> |
2019-05-05 06:32:07 | ubershmekel | link | issue36800 messages |
2019-05-05 06:32:06 | ubershmekel | create | |
|