New submission from Eric Eisner :
I discovered this when trying to splice a string containing unicode
codepoints higher than U+
all examples on 32-bit Ubuntu Linux
python 2.5.2 (for comparison):
sys.maxunicode # 1114111
len(unichr(66674)) # 1
len(u'\U00010472') #
New submission from Eric Eisner :
In multiprocessing, if you give a pool.map a zero-length iterator and
specify a nonzero chunksize, the process hangs indefinitely. Example:
import multiprocessing
pool = multiprocessing.Pool()
pool.map(len, [], chunksize=1)
# hang forever
Attached simple
Eric Eisner added the comment:
A few lines before this patch the code turns iterable into a list if it
does not hasattr('__len__') for the purpose of calculating the chunksize.
--
___
Python tracker
<http://bugs.python.
New submission from Eric Eisner :
string.maketrans has been deprecated in 3.x in favor of the more
specific bytes.maketrans and str.maketrans (see issue5675). It would be
nice if 2to3 would automatically translate this to one of those two
(probably str.maketrans).
I briefly looked at lib2to3
Eric Eisner added the comment:
Can anyone review this patch? It is a very simple fix to catch this one
edge case. As this can cause multiprocessing to enter a state where it
needs to be externally killed, it would be good if this made 2.6.3
Eric Eisner added the comment:
Is there some pre-existing naming convention of as_X and fromX? It seems
strange that two related functions would have a different use of
underscores.
--
nosy: +ede
___
Python tracker
<http://bugs.python.