Padmanabhan Tr added the comment:
On Wednesday, July 8, 2015 7:56 PM, padmanabhan T R wrote:
Dear Mr Steven D'ApranoI have not gone through the relevant Source Codes;
purely based on my working with Python3 (Version 3.4.2) and the 'The Python
Library Reference manual, Rel
Padmanabhan Tr added the comment:
Dear Mr Steven D'ApranoThanks for your prompt response.I guess that 'b'\x00\x00
0' is the same as b'\x00\x00\x20\x30' if we take (space) as 20 & 0 as 30 as
with ASCII / UTF-8 representation. But if I go by 'Python Li
New submission from Padmanabhan Tr:
I have copied below an execution sequence. What is the problem?
>>> x = 8240
>>> x.to_bytes(4,byteorder='big')
b'\x00\x00 0'
>>> int.from_bytes(b'\x00\x00 0',byteorder='big')
8240
>>>
Changes by Padmanabhan Tr :
--
nosy: Padmanabhan.Tr
priority: normal
severity: normal
status: open
title: byte conversion
type: behavior
versions: Python 3.4
___
Python tracker
<http://bugs.python.org/issue24
Padmanabhan Tr added the comment:
Dear StevenThank you.
I am clear now.Padmanabhan
On Saturday, June 6, 2015 5:12 PM, Steven D'Aprano
wrote:
Steven D'Aprano added the comment:
The behaviour is correct, this is not a bug. Each time you pop from aa, the
following items mov
New submission from Padmanabhan Tr:
I have attached the python sequence & my comments. I use Python version 3.4.2
I guess a bug need be corrected
--
components: Regular Expressions
files: bug_a
messages: 244897
nosy: Padmanabhan.Tr, ezio.melotti, mrabarnett
priority: normal
seve
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 &a
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: no