forked from M-Labs/artiq
1
0
Fork 0

language/core: reduce namespace pollution

This commit is contained in:
Sebastien Bourdeauducq 2014-09-29 17:28:14 +08:00
parent 9f82ff81f2
commit 4a1cad5227
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
"""Core ARTIQ extensions to the Python language.""" """Core ARTIQ extensions to the Python language."""
from collections import namedtuple from collections import namedtuple as _namedtuple
from copy import copy from copy import copy as _copy
class int64(int): class int64(int):
@ -77,7 +77,7 @@ def array(element, count):
Arrays of arrays are supported. Arrays of arrays are supported.
""" """
return [copy(element) for i in range(count)] return [_copy(element) for i in range(count)]
class AutoContext: class AutoContext:
@ -179,7 +179,7 @@ class AutoContext:
pass pass
_KernelFunctionInfo = namedtuple("_KernelFunctionInfo", "core_name k_function") _KernelFunctionInfo = _namedtuple("_KernelFunctionInfo", "core_name k_function")
def kernel(arg): def kernel(arg):