[issue22532] A suggested change

2014-10-01 Thread Padmanabhan Tr
Padmanabhan Tr added the comment: Dear Mr SpearThanks for the prompt response & clarification.(in Python) If the real & imaginary parts of numbers you deal with are integers, results of operations (except division)  - like +, -, *, **, - appear with respective integers as real & imginary parts

[issue22532] A suggested change

2014-10-01 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue22532] A suggested change

2014-10-01 Thread Geoffrey Spear
Changes by Geoffrey Spear : -- components: +Interpreter Core type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-li

[issue22532] A suggested change

2014-10-01 Thread Geoffrey Spear
Geoffrey Spear added the comment: >From the documentation: "Complex numbers have a real and imaginary part, which >are each a floating point number." Needing to use int() to convert these floats to integers is not a bug, it's the expected behavior. -- nosy: +geoffreyspear ___

[issue22532] A suggested change

2014-10-01 Thread Padmanabhan Tr
New submission from Padmanabhan Tr: Take a complex number n = 3+4j. n.real is taken as 3.0 & n.imag as 4.0 in Python3. One has to use the int(0 function to get back the parts as integers. I guess this is a compiler error? -- messages: 228073 nosy: Padmanabhan.Tr priority: normal seve