Message233656
It is easy to make fnmatch caching thread safe without locks. Here is a patch.
The problem with fnmatch is that the caching is implicit and a user don't know that any lock are needed. So either the need of the lock should be explicitly documented, or fnmatch should be made thread safe. The second option looks more preferable to me.
In 3.x fnmatch is thread safe because thread safe lru_cache is used. |
|
Date |
User |
Action |
Args |
2015-01-08 13:49:17 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, mschmitzer |
2015-01-08 13:49:17 | serhiy.storchaka | set | messageid: <1420724957.47.0.630876402735.issue23191@psf.upfronthosting.co.za> |
2015-01-08 13:49:17 | serhiy.storchaka | link | issue23191 messages |
2015-01-08 13:49:17 | serhiy.storchaka | create | |
|