Message70381
The comment gives a wrong impression: The problem is not (only) that a
codec might by evil, it's the fact that a codec may well execute Python
code and thus allow the list to be changed by other threads during the
operation.
Now, since in Python 3.x codecs are no longer being invoked, it is
probably safe to assume that Python code is not being executed while
PyUnicode_Join() is running, but please double-check.
It's also wise to apply a sanity check at the end of the loop to check
whether the sequence length has indeed not changed (as assert maybe). |
|
Date |
User |
Action |
Args |
2008-07-29 09:06:29 | lemburg | set | recipients:
+ lemburg, pitrou |
2008-07-29 09:06:29 | lemburg | set | messageid: <1217322389.19.0.197006026422.issue3460@psf.upfronthosting.co.za> |
2008-07-29 09:06:28 | lemburg | link | issue3460 messages |
2008-07-29 09:06:27 | lemburg | create | |
|