add over.callback.integers
This commit is contained in:
parent
cc7d97c811
commit
5ed3e16d65
1 changed files with 12 additions and 0 deletions
|
@ -99,3 +99,15 @@ def integer(arg):
|
||||||
return int(arg, 8)
|
return int(arg, 8)
|
||||||
|
|
||||||
return int(arg)
|
return int(arg)
|
||||||
|
|
||||||
|
def integers(*args):
|
||||||
|
"""
|
||||||
|
@while converting arguments to ints
|
||||||
|
"""
|
||||||
|
|
||||||
|
out = []
|
||||||
|
|
||||||
|
for arg in args:
|
||||||
|
out.append(integer(arg))
|
||||||
|
|
||||||
|
return out
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue