[issue30011] HTMLParser class is not thread safe
Alessandro Vesely
report at bugs.python.org
Sat Apr 15 04:21:05 EDT 2017
Alessandro Vesely added the comment:
Serhiy's analysis is correct. If anything more than a comment is going
to make its way to the code, I'd suggest to move dictionary building to
its own function, so that it can be called either on first use --like
now-- or before threading if the user is concerned.
I agree there is nothing wrong with multiple builds. My point is just a
minor, bearable inefficiency. It can be neglected. Its most annoying
case is probably with test suites, which are more likely to shoot up a
bunch of new threads all at once.
Greetings
Ale
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30011>
_______________________________________
More information about the Python-bugs-list
mailing list