mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
support type(b'test') -> <class 'bytes'>
This commit is contained in:
parent
652962c4c3
commit
876ea81576
@ -45,6 +45,10 @@ void PikaStdLib_SysObj_type(PikaObj* self, Arg* arg) {
|
|||||||
obj_setSysOut(self, "<class 'meta object'>");
|
obj_setSysOut(self, "<class 'meta object'>");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (ARG_TYPE_BYTES == type) {
|
||||||
|
obj_setSysOut(self, "<class 'bytes'>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (ARG_TYPE_METHOD_NATIVE == type) {
|
if (ARG_TYPE_METHOD_NATIVE == type) {
|
||||||
obj_setSysOut(self, "<class 'buitin_function_or_method'>");
|
obj_setSysOut(self, "<class 'buitin_function_or_method'>");
|
||||||
return;
|
return;
|
||||||
|
@ -45,6 +45,10 @@ void PikaStdLib_SysObj_type(PikaObj* self, Arg* arg) {
|
|||||||
obj_setSysOut(self, "<class 'meta object'>");
|
obj_setSysOut(self, "<class 'meta object'>");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (ARG_TYPE_BYTES == type) {
|
||||||
|
obj_setSysOut(self, "<class 'bytes'>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (ARG_TYPE_METHOD_NATIVE == type) {
|
if (ARG_TYPE_METHOD_NATIVE == type) {
|
||||||
obj_setSysOut(self, "<class 'buitin_function_or_method'>");
|
obj_setSysOut(self, "<class 'buitin_function_or_method'>");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user