This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lukasz.langa
Recipients lukasz.langa, pitrou
Date 2017-02-10.07:36:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486712191.67.0.55971781502.issue29519@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-02-10 07:36:31lukasz.langasetrecipients: + lukasz.langa, pitrou
2017-02-10 07:36:31lukasz.langasetmessageid: <1486712191.67.0.55971781502.issue29519@psf.upfronthosting.co.za>
2017-02-10 07:36:31lukasz.langalinkissue29519 messages
2017-02-10 07:36:31lukasz.langacreate