Dec. 8, 2016
3:45 a.m.
On 8 December 2016 at 03:32, Matthias welp <boekewurm@gmail.com> wrote:
Dear Mikhail,
With python3.6 you can use format strings to get very close to your desired behaviour:
f"{48:c}" == "0" f"{<normal int literal here>:c}" == chr(<normal int literal here>)
It works with variables too:
charvalue = 48 f"{charcvalue:c}" == chr(charvalue) # == "0"
Waaa! This works!
I hope this helps solve your apparent usability problem.
Big big thanks, I didn't now this feature, but I have googled alot about "input characters as decimals" , so it is just added? Another evidence that Python rules! I'll rewrite some code, hope it'll have no side issues. Mikhail