[issue35672] Error on divide

2019-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: For reference, the OP reported the issue initially at https://github.com/python/psf-infra-meta/issues/17 (but it was closed because that's not the right tracker). The y1y2y3y4 etc. are multiplications (mangled by not quoting the code in GitHub and then co

[issue35672] Error on divide

2019-01-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: There is no need to call int() on a literal int: 103 is already an int, calling int() on it is just wasting time and making confusing code. print (int(y1y2y3y4)) gives a NameError, since you don't have a variable "y1y2y3y4" defined. Please don't retype

[issue35672] Error on divide

2019-01-06 Thread Jorge Teran
Jorge Teran added the comment: Thanks El dom., 6 de ene. de 2019 08:53, Yash Aggarwal escribió: > > Yash Aggarwal added the comment: > > @Jorge Teran > The division operator was changed in python 3. Now, if you use '/' for > division between ints, the result would still be float. To get the

[issue35672] Error on divide

2019-01-06 Thread Yash Aggarwal
Yash Aggarwal added the comment: @Jorge Teran The division operator was changed in python 3. Now, if you use '/' for division between ints, the result would still be float. To get the same effect as python 2.x, you will have to use '//', i.e. floor division -- nosy: +FR4NKESTI3N ___

[issue35672] Error on divide

2019-01-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I got: NameError: name 'y1y2y3y4' is not defined. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue35672] Error on divide

2019-01-06 Thread Jorge Teran
New submission from Jorge Teran : The following code produces an error in the diivision in python 3.5, 3.7 works in python 2.7 import math import sys x=int(1000112004278059472142857) y1=int(103) y2=int(133) y3=int(137) y4=int(139) print (int(y1y2y3y4)) print (x) #this product