[issue4678] Unicode: multiple chars for high code points

2008-12-16 Thread Eric Eisner
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') #

[issue6433] multiprocessing: pool.map hangs on empty list

2009-07-07 Thread Eric Eisner
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

[issue6433] multiprocessing: pool.map hangs on empty list

2009-07-07 Thread Eric Eisner
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.

[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread Eric Eisner
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

[issue6433] multiprocessing: pool.map hangs on empty list

2009-07-13 Thread Eric Eisner
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

[issue1023290] proposed struct module format code addition

2009-08-15 Thread Eric Eisner
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.