mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
...
This commit is contained in:
parent
f6942e0caf
commit
ec0290ab39
@ -256,8 +256,10 @@ def help(obj):
|
|||||||
print(obj.__signature__)
|
print(obj.__signature__)
|
||||||
print(obj.__doc__)
|
print(obj.__doc__)
|
||||||
|
|
||||||
|
|
||||||
class Exception: pass
|
class Exception: pass
|
||||||
|
|
||||||
|
|
||||||
class classmethod:
|
class classmethod:
|
||||||
def __init__(self, f):
|
def __init__(self, f):
|
||||||
self.f = f
|
self.f = f
|
||||||
@ -266,4 +268,4 @@ class classmethod:
|
|||||||
def staticmethod(f):
|
def staticmethod(f):
|
||||||
return f
|
return f
|
||||||
|
|
||||||
from _long import long
|
from _long import long
|
||||||
|
@ -97,4 +97,5 @@ except Exception as e:
|
|||||||
assert str(e) == '2'
|
assert str(e) == '2'
|
||||||
assert repr(e).startswith('KeyError(')
|
assert repr(e).startswith('KeyError(')
|
||||||
except:
|
except:
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user