[issue42053] fwalk: incorrect boolean test for non-fd arguments

2020-10-16 Thread dubiousjim
New submission from dubiousjim : `Lib/os.py` has at line 464, in definition of `fwalk`: ``` if not isinstance(top, int) or not hasattr(top, '__index__'): ``` If I understand this test correctly, it should be requiring that the name/fd is NEITHER an int NOR has an __index__ method.

[issue28427] WeakValueDictionary next bug (with multithreading)

2017-08-02 Thread dubiousjim
dubiousjim added the comment: In response to Issue #7105, self._pending_removals was added to WeakValueDictionaries (and also WeakKeyDictionaries, but they're not relevant to what I'm about to discuss). This was in changesets 58194 to tip and 58195 to 3.1, back in Jan 2010