This commit is contained in:
blueloveTH 2022-12-09 19:46:02 +08:00
parent addd0843ea
commit 0979ba2a0a
6 changed files with 9 additions and 8 deletions

View File

@ -2,9 +2,10 @@
The initial version. Hello, world!
## 0.4.8
## 0.4.8+1
+ Optimize performance
+ Add keyword call, i.e., `print(1, 2, sep=', ', end='\n')
+ Add keyword call, i.e., `print(1, 2, sep=', ', end='\n')`
+ Support hex integer literal `0xFFFF`
+ Fix some bugs
+ Add `list.pop` and `reversed` builtin function
+ Optimize `dict` performance

View File

@ -1,6 +1,6 @@
name: pocketpy
description: A lightweight Python interpreter for game engines.
version: 0.4.8
version: 0.4.8+1
homepage: https://pocketpy.dev
repository: https://github.com/blueloveth/pocketpy

View File

@ -6855,7 +6855,7 @@ void __addModuleMath(VM* vm){
vm->__checkArgSize(args, 2);
_Float a = vm->numToFloat(args[0]);
_Float b = vm->numToFloat(args[1]);
return vm->PyBool(fabs(a - b) < 1e-6);
return vm->PyBool(fabs(a - b) < 1e-9);
});
}

@ -1 +1 @@
Subproject commit 5d14df87dcf63ba0ef6ed0da534ac9057ed5210c
Subproject commit cb98c82ac6dc5cf83cb107d1cbf3fc9219e296e4

View File

@ -6855,7 +6855,7 @@ void __addModuleMath(VM* vm){
vm->__checkArgSize(args, 2);
_Float a = vm->numToFloat(args[0]);
_Float b = vm->numToFloat(args[1]);
return vm->PyBool(fabs(a - b) < 1e-6);
return vm->PyBool(fabs(a - b) < 1e-9);
});
}

View File

@ -681,7 +681,7 @@ void __addModuleMath(VM* vm){
vm->__checkArgSize(args, 2);
_Float a = vm->numToFloat(args[0]);
_Float b = vm->numToFloat(args[1]);
return vm->PyBool(fabs(a - b) < 1e-6);
return vm->PyBool(fabs(a - b) < 1e-9);
});
}