mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
6acc0f9ecd
* test for format with tuple is ok * 'format'%var is ok (tuple var is not ok) * rename _cformat to cformat() * optimize the memory usage of format_list * add string-test.cpp * cformat() is ok * fix variable par load issue * use test_common.h * use test_common to simplify the gtest case * Merge branch 'master' into dev * fix float->double for bytecodegen * update to /package * Use double in C for float in python
45 lines
1.2 KiB
Python
45 lines
1.2 KiB
Python
from PikaObj import *
|
|
|
|
|
|
class MemChecker(TinyObj):
|
|
def max(self): ...
|
|
def now(self): ...
|
|
def getMax(self) -> float: ...
|
|
def getNow(self) -> float: ...
|
|
def resetMax(self): ...
|
|
|
|
|
|
class SysObj(BaseObj):
|
|
def type(self, arg: any): ...
|
|
def remove(self, argPath: str): ...
|
|
def int(self, arg: any) -> int: ...
|
|
def float(self, arg: any) -> float: ...
|
|
def str(self, arg: any) -> str: ...
|
|
def iter(self, arg: any) -> any: ...
|
|
def range(self, a1: int, a2: int) -> any: ...
|
|
def print(self, *val): ...
|
|
def printNoEnd(self, val: any): ...
|
|
def __set__(self, obj: any, key: any, val: any, obj_str: str): ...
|
|
def __get__(self, obj: any, key: any) -> any: ...
|
|
def __slice__(self, obj: any, start: any, end: any, step: int) -> any: ...
|
|
def len(self, arg: any) -> int: ...
|
|
def list(self) -> any: ...
|
|
def dict(self) -> any: ...
|
|
def hex(self, val: int) -> str: ...
|
|
def ord(self, val: str) -> int: ...
|
|
def chr(self, val: int) -> str: ...
|
|
def bytes(self, val: any) -> bytes: ...
|
|
def cformat(self, fmt: str, *var) -> str: ...
|
|
|
|
|
|
class RangeObj(TinyObj):
|
|
def __next__(self) -> any: ...
|
|
|
|
|
|
class StringObj(TinyObj):
|
|
def __next__(self) -> any: ...
|
|
|
|
|
|
class PikaObj(TinyObj):
|
|
...
|