mirror of
https://github.com/python/cpython.git
synced 2025-09-19 07:00:59 +00:00
#687648 from Robert Schuppenies: use classic division.
This commit is contained in:
parent
e91fcbdf69
commit
2a9b9cbea0
12 changed files with 33 additions and 33 deletions
|
@ -110,7 +110,7 @@ def test():
|
|||
def tuple(list):
|
||||
if len(list) == 0: return ()
|
||||
if len(list) == 1: return (list[0],)
|
||||
i = len(list)/2
|
||||
i = len(list)//2
|
||||
return tuple(list[:i]) + tuple(list[i:])
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue