Improvements
- add
bytes
addition and slice support - improve
FileIO
and add more methods such asseek()
andtell()
. See https://pocketpy.dev/modules/io/ - add
__missing__
fordict
and refactordefaultdict
- add
bit_length
method to int #233 - improve performance of for loop
- adoping a more efficient division algorithm for bigint #232
- make
float
always 64-bit; optimize for empty function - add
vec.__getitem__
; addpkpy_set_main_argv
to setsys.argv
- add
reduce
andpartial
forfunctools
module - refactor
random
module to use builtin mt19937 implementation
New Features
- add
enum
module. See https://pocketpy.dev/modules/enum/ - support precompiling. See https://pocketpy.dev/features/precompile/
- add
itertools
module. See https://pocketpy.dev/modules/itertools/ - support PDB debugging. See https://pocketpy.dev/features/debugging/
Bug fixes
- check the size of fillchar passed to str methods (ljust, rjust) #236
- perform boundary check before searching to prevent security vulnerabilities #237
Full Changelog: v1.4.3...v1.4.5