pikasTech / PikaPython

An ultra-lightweight Python interpreter that runs with only 4KB of RAM, zero dependencies. It is ready to use out of the box without any configuration required and easy to extend with C. Similar project: MicroPython, JerryScript.
http://pikapython.com/
MIT License
1.45k stars 132 forks source link

`dict` 整数做key时结果不正确 #324

Closed blueloveTH closed 11 months ago

blueloveTH commented 11 months ago

commit id:893972bf4f7f8d65e1d01acf22c574cadf176bc4 系统:linux

pika

~~~/ POWERED BY \~~~
~  pikascript.com  ~
~~~~~~~~~~~~~~~~~~~~
hello pikascript
>>> 
>>> a = {0: 0, 1: 1}
>>> a
{'': 1, '': 0}

cpython

>>> a = {0: 0, 1: 1}
>>> a
{0: 0, 1: 1}
>>>