mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +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'>");
|
||||
return;
|
||||
}
|
||||
if (ARG_TYPE_BYTES == type) {
|
||||
obj_setSysOut(self, "<class 'bytes'>");
|
||||
return;
|
||||
}
|
||||
if (ARG_TYPE_METHOD_NATIVE == type) {
|
||||
obj_setSysOut(self, "<class 'buitin_function_or_method'>");
|
||||
return;
|
||||
|
@ -45,6 +45,10 @@ void PikaStdLib_SysObj_type(PikaObj* self, Arg* arg) {
|
||||
obj_setSysOut(self, "<class 'meta object'>");
|
||||
return;
|
||||
}
|
||||
if (ARG_TYPE_BYTES == type) {
|
||||
obj_setSysOut(self, "<class 'bytes'>");
|
||||
return;
|
||||
}
|
||||
if (ARG_TYPE_METHOD_NATIVE == type) {
|
||||
obj_setSysOut(self, "<class 'buitin_function_or_method'>");
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user