Author Bharatsolanki
Recipients Bharatsolanki, eric.smith
Date 2020-03-18.20:42:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAByGuj_Sx9uO9j757nDMOiNwfzfGKzXE8G_hgn7_AttoSAzMHQ@mail.gmail.com>
In-reply-to <1584563969.11.0.923424457201.issue40005@roundup.psfhosted.org>
Content
u1 is global variable. So I can use it any where. Rigth!

Thanks
Bharat

On Thu, Mar 19, 2020, 2:09 AM Bharat Solanki <report@bugs.python.org> wrote:

>
> Bharat Solanki <bharatslnk02@gmail.com> added the comment:
>
> When you run this test.py in 2.7. you will get output (10 11 20), But in
> 3.7, Its getting failed. Its showing below error:
>
> "Traceback (most recent call last):
>   File "test.py", line 14, in function
>     process_pool.map(add, l1, 1)
>   File "C:\Users\Bharat Solanki\Anaconda3\lib\multiprocessing\pool.py",
> line 268, in map
>     return self._map_async(func, iterable, mapstar, chunksize).get()
>   File "C:\Users\Bharat Solanki\Anaconda3\lib\multiprocessing\pool.py",
> line 657, in get
>     raise self._value
> NameError: name 'u1' is not defined"
>
> Please let me know if you need any other information.
>
> Thanks
> Bharat
>
> ----------
> Added file: https://bugs.python.org/file48979/test.py
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue40005>
> _______________________________________
>
History
Date User Action Args
2020-03-18 20:42:31Bharatsolankisetrecipients: + Bharatsolanki, eric.smith
2020-03-18 20:42:31Bharatsolankilinkissue40005 messages
2020-03-18 20:42:31Bharatsolankicreate