[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-20 Thread Tim Peters
Change by Tim Peters : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-20 Thread Eric V. Smith
Eric V. Smith added the comment: I agree it's not a bug. It's a known difference between Windows and Linux, due to fork() semantics. -- ___ Python tracker ___

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bharat, when responding by email, *please* delete from your response the the post you are responding to. Your response is added below that message, and including it is duplicate noise. Tim, you seem to be saying that this should be closed as 'not a bug'.

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-19 Thread Bharat Solanki
Bharat Solanki added the comment: Hi Tim, Thank you for clearing that up. I ran the same code in 2.7 and 3.7 on Windows, Its showing the same error. Yes, Its running in Linux-y systems. It depends on OS. Regards, Bharat On Thu, Mar 19, 2020 at 2:25 AM Tim Peters wrote: > > Tim Peters

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Tim Peters
Tim Peters added the comment: u1 is a global _only_ in a process that runs `function()`, which declares u1 global and assigns it a value. You have no sane expectation that a worker process (none of which run `function()`) will know anything about it. Are you sure you're running 2.7 and 3.7

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Bharat Solanki
Bharat Solanki added the comment: u1 is global variable. So I can use it any where. Rigth! Thanks Bharat On Thu, Mar 19, 2020, 2:09 AM Bharat Solanki wrote: > > Bharat Solanki added the comment: > > When you run this test.py in 2.7. you will get output (10 11 20), But in > 3.7, Its

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Bharat Solanki
Bharat Solanki 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

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Eric V. Smith
Eric V. Smith added the comment: Note that 2.7 is no longer supported. If you think you found a bug in 3.7, then please: - Reformat your code so that we can understand it. - Show us what output you actually get. - Show us what output you expect, and why. -- nosy: +eric.smith

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Bharat Solanki
New submission from Bharat Solanki : Hi Team, Below code is giving different result in python 2.7 and 3.7 version. Code is running fine when i am using 2.7 but in 3.7, it is showing error. from multiprocessing import Pool import traceback class Utils: def __init__(self): self.count = 10