This commit is contained in:
blueloveTH 2022-12-11 05:06:05 +08:00
parent a67b59f4cb
commit 1a2153e5b4
6 changed files with 9 additions and 6 deletions

View File

@ -25,6 +25,6 @@ The initial version. Hello, world!
+ Add `math.isnan` and `math.isinf` + Add `math.isnan` and `math.isinf`
+ Fix a bug of `__checkType` + Fix a bug of `__checkType`
## 0.5.0+1 ## 0.5.0+2
+ Fix a bug on Windows + Fix a bug on Windows

View File

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

View File

@ -399,7 +399,8 @@ public:
_Str __lstrip() const { _Str __lstrip() const {
std::string copy(*_s); std::string copy(*_s);
copy.erase(copy.begin(), std::find_if(copy.begin(), copy.end(), [](char c) { copy.erase(copy.begin(), std::find_if(copy.begin(), copy.end(), [](char c) {
return !std::isspace(c); // std::isspace(c) does not working on windows (Debug)
return c != ' ' && c != '\t' && c != '\r' && c != '\n';
})); }));
return _Str(copy); return _Str(copy);
} }

@ -1 +1 @@
Subproject commit d8e7e9986433707a21b796d510cccb6f098cf91c Subproject commit 764a0a18407dad82e0ad7a878bab42097bfa1647

View File

@ -399,7 +399,8 @@ public:
_Str __lstrip() const { _Str __lstrip() const {
std::string copy(*_s); std::string copy(*_s);
copy.erase(copy.begin(), std::find_if(copy.begin(), copy.end(), [](char c) { copy.erase(copy.begin(), std::find_if(copy.begin(), copy.end(), [](char c) {
return !std::isspace(c); // std::isspace(c) does not working on windows (Debug)
return c != ' ' && c != '\t' && c != '\r' && c != '\n';
})); }));
return _Str(copy); return _Str(copy);
} }

View File

@ -198,7 +198,8 @@ public:
_Str __lstrip() const { _Str __lstrip() const {
std::string copy(*_s); std::string copy(*_s);
copy.erase(copy.begin(), std::find_if(copy.begin(), copy.end(), [](char c) { copy.erase(copy.begin(), std::find_if(copy.begin(), copy.end(), [](char c) {
return !std::isspace(c); // std::isspace(c) does not working on windows (Debug)
return c != ' ' && c != '\t' && c != '\r' && c != '\n';
})); }));
return _Str(copy); return _Str(copy);
} }