Message 339767 - Python tracker

Message339767

Author 孑影
Recipients 孑影
Date 2019-04-09.15:54:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554825279.75.0.461430616172.issue36578@roundup.psfhosted.org>
In-reply-to
Content
== output ==
python2 /tmp/demo.py 
31749 task#1 result:(False, 'ls: cannot access alksdfjalkdsfadsfk: No such file or directoryn') 
31751 task#2 result:(False, 'ls: cannot access alksdfjalkdsfadsfk: No such file or directoryn') 
31752 task#3 result:(False, '3n') 
31750 task#4 result:(False, '4n') 
31749 task#6 result:(False, '6n') 
31752 task#7 result:(False, '7n') 
31750 task#8 result:(False, '8n') 
31751 task#9 result:(False, '9n') 
Traceback (most recent call last):
  File "/tmp/demo.py", line 74, in <module>
    runner()
  File "/tmp/demo.py", line 64, in runner
    rc_orig = value.get()
  File "/usr/lib64/python2.7/multiprocessing/pool.py", line 554, in get
    raise self._value
ValueError: empty range for randrange() (1,1, 0)

== The python2.7 demo ==
http://paste.ubuntu.org.cn/4379593

== More ==
The interesting thing is if you modify demo.py like this .

http://paste.ubuntu.org.cn/4379595

Almost the code can be run normal.
History
Date User Action Args
2019-04-09 15:54:39孑影setrecipients: + 孑影
2019-04-09 15:54:39孑影setmessageid: <1554825279.75.0.461430616172.issue36578@roundup.psfhosted.org>
2019-04-09 15:54:39孑影linkissue36578 messages
2019-04-09 15:54:39孑影create