Skip to content

Commit 16a1ac0

Browse files
fixes #103
1 parent 60c6e09 commit 16a1ac0

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

ti_python_module/ti_system.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,23 @@ def recall_list(name:str):
6565

6666
###########################################################################################
6767

68-
def store_list(name:str, list):
68+
def store_list(name:str, list:list):
6969
"""
7070
Stores a Python list (list) to an OS variable named "name".
7171
72+
args:
73+
name (str): The name of the variable from which to recall the value.
74+
list (list): The values to store int the list.
7275
73-
Category: TI System
74-
75-
76-
Returns an array / list: [name, list]
76+
Returns:
77+
list: a list containing the following data: [name, list]
7778
"""
79+
80+
if cerr.type_error(str, name) == False: log("Argument 'name' has to be type string", "ERROR", "TI System", "Store List")
81+
7882
err.type_error(str, "str", name)
7983

84+
log("Storing the data from the given list to system list '" + name + "'", "INFO", "TI System", "Store List")
8085
print("Storing data '" + str(list) + "' to variable '" + name + "'")
8186
return [name, list]
8287

0 commit comments

Comments
 (0)