Author n-io
Recipients n-io
Date 2020-07-24.13:56:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595598979.89.0.398594885815.issue41382@roundup.psfhosted.org>
In-reply-to
Content
There seems to be a behavioural issue with the print() function. Using python3.8 and the following line:

>>> print("\t".join(['arith_int_512-cuda.sfeat', '__hipsyclkernel$wrapped_kernelname$MicroBenchArithmeticKernel_512_1', '578', '65', '5', '64', '4', '1025', '128', '1', '1', '512', '1']))

arith_int_512-cuda.sfeat    __hipsyclkernel$wrapped_kernelname$MicroBenchArithmeticKernel_512_1    578    65    5    64    4    1025    128    512    1

Notice the missing numbers between 128 and 512. If I do random modifications the either of the first two string, some of the missing numbers may appear. For instance:

>>> print("\t".join(['arith_int_512-cuda', '__hipsycl_kernel_$wrapped_kernel_name_$MicroBenchArithmeticKernel_512_1', '578', '65', '5', '64', '4', '1025', '128', '1', '1', '512', '1']))

arith_int_512-cuda	__hipsycl_kernel_$wrapped_kernel_name_$MicroBenchArithmeticKernel_512_1	578	65	5	64	4	1025	128	1	512	1

Notice that one of the two missing numbers has appeared. There appears nothing wrong with the value used to invoke print.

The error appears to be linked to joining on the "\t" character and does not appear to occur when joining on other whitespace characters such as " ".join(...) or "\n".join(...)
History
Date User Action Args
2020-07-24 13:56:19n-iosetrecipients: + n-io
2020-07-24 13:56:19n-iosetmessageid: <1595598979.89.0.398594885815.issue41382@roundup.psfhosted.org>
2020-07-24 13:56:19n-iolinkissue41382 messages
2020-07-24 13:56:19n-iocreate