Łukasz Langa added the comment:

I have a pretty minimal repro. You'll have to download both `mod1.py` and 
`mod2.py` and execute `python3.6 mod1.py`. You'll see:

Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 
0x7fcb56b09400>
Traceback (most recent call last):
  File "/usr/local/fbcode/gcc-4.9-glibc-2.20-fb/lib/python3.6/weakref.py", line 
117, in remove
TypeError: 'NoneType' object is not callable

I can reproduce this both on CentOS 7 and macOS Sierra. I don't quite 
understand what makes this particular combination of instructions in the 
modules trigger the problem, I'd appreciate some explanation. AFAICT any 
additional simplification to the two modules makes it stop producing the spew.

Note: the spew doesn't happen with 3.6.0, only with master because it's 
directly caused by the missing global after the change in #28427.

----------
Added file: http://bugs.python.org/file46617/mod1.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29519>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to