[issue28969] fnmatch is not threadsafe

2016-12-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka keywords: +3.5regression stage: -> needs patch versions: +Python 3.6, Python 3.7 ___ Python tracker ___ _

[issue28969] fnmatch is not threadsafe

2016-12-15 Thread Peter Otten
Peter Otten added the comment: Here's another way to reproduce the error. The problem seems to be in the C implementation of _lru_cache_wrapper() / bounded_lru_cache_wrapper(). $ cat test.py import functools import threading import time @functools.lru_cache(maxsize=2) def f(v): time.sleep(

[issue28969] fnmatch is not threadsafe

2016-12-14 Thread Nicolas Savoire
New submission from Nicolas Savoire: With python3.5, fnmatch appears not to be thrad safe. It fails with the following exception: Traceback (most recent call last): File "test.py", line 18, in f.result() File "/opt/anaconda3/lib/python3.5/concurrent/futures/_base.py", line 405, in res