Terminaloutput in hex instead of Caracter

30 views
Skip to first unread message

Nachbauer Roman

unread,
Dec 31, 2023, 2:03:38 PM12/31/23
to thonny
If I put in the comand <<<

import os
os.listdir()

I get as printout a hex number instead of the carakter of the file --> look to picture.

My Hardware is a NodeMcu ESP-12-F

The flashed bin file is 
ESP8266_GENERIC-20231005-v1.21.0.bin

The System is WIN 10
A normal Printcommand  print("Hello World") is ok.

What could be the reason of this.

Best regards from Austria
Roman Nachbauer


Thonny.JPG

Aivar Annamaa

unread,
Jan 2, 2024, 12:14:53 PM1/2/24
to thonny
Please see the yellow box in the upper-right corner of the window -- it says the "Heap mode" is on, which means Thonny shows the addresses for each object, instead of the string representation of the object. Teachers use this mode for explaining how different variables and fields can refer to the same object.

You can turn it off by closing the Heap view.

Best regards,
Aivar
Reply all
Reply to author
Forward
0 new messages