Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalther Neuper <neuper@neuper.(none)>2009-12-12 14:02:28 (GMT)
committer Walther Neuper <neuper@neuper.(none)>2009-12-12 14:02:28 (GMT)
commit271d0b2e8affdb4bb616bbb203fabe9c423d0c47 (patch)
tree24cfb7892d3b741f44b4d62209ca9395c6c1d382
parent0c71b7c74218316ff55a8fce49dd03158abec9e0 (diff)
start Coach.create_exercises --> ???, added files
-rw-r--r--ReckonPrimer.activity/collection.py14
-rw-r--r--ReckonPrimer.tests/learner/test_pop.py11
2 files changed, 25 insertions, 0 deletions
diff --git a/ReckonPrimer.activity/collection.py b/ReckonPrimer.activity/collection.py
new file mode 100644
index 0000000..95d7f8d
--- /dev/null
+++ b/ReckonPrimer.activity/collection.py
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+
+from settings import Settings
+
+class Collection:
+
+ def __init__(self):
+ self._sett = Settings()
+ # these data should come from pickle (see code in Settings)
+ self._data = [self._sett.get_setting('addsub_simp'),
+ self._sett.get_setting('passten'),
+ self._sett.get_setting('times_div')]
+
+ #def
diff --git a/ReckonPrimer.tests/learner/test_pop.py b/ReckonPrimer.tests/learner/test_pop.py
new file mode 100644
index 0000000..a4cdd07
--- /dev/null
+++ b/ReckonPrimer.tests/learner/test_pop.py
@@ -0,0 +1,11 @@
+
+# this is used together with get_nextg_calc
+ls = [1,2]
+_next_calc = True
+
+while _next_calc:
+ try:
+ print(ls.pop())
+ except IndexError:
+ print('finished')
+ _next_calc = False