From 03e406922683ed6e90c22a822967f245f49da6b8 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Sun, 25 Sep 2022 22:09:06 +0300 Subject: Add useful resources on learning monads * topics/maybe-monad.gmi (Useful Resources): Add new section. --- topics/maybe-monad.gmi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'topics') diff --git a/topics/maybe-monad.gmi b/topics/maybe-monad.gmi index 5ec582c..7f2afa9 100644 --- a/topics/maybe-monad.gmi +++ b/topics/maybe-monad.gmi @@ -50,3 +50,11 @@ with conn.cursor(utility.monads.MonadicDictCursor) as cursor: for row in cursor.fetchall(): row["foo"].bind(print) ``` + +## Useful Resources + +=> https://www.miguelfarrajota.com/2021/06/monads-in-python-with-pymonad/ + +=> https://jasondelaat.github.io/pymonad_docs/explanations/whats-a-monad.html + +=> https://simon.tournier.info/posts/2021-02-03-monad.html -- cgit v1.2.3 From b992ade9e93f0235f79a9b28017ba022f724862a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 27 Sep 2022 06:24:31 +0300 Subject: topics: fix typo in documentation. --- topics/queries-and-prepared-statements-in-python.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'topics') diff --git a/topics/queries-and-prepared-statements-in-python.gmi b/topics/queries-and-prepared-statements-in-python.gmi index 642ed96..969c27f 100644 --- a/topics/queries-and-prepared-statements-in-python.gmi +++ b/topics/queries-and-prepared-statements-in-python.gmi @@ -29,7 +29,7 @@ curr.execute( WHERE Strain.Name IN ({}) and Strain.SpeciesId=Species.Id and Species.name = %s - """.format(", ".join(sample_data_keys)), + """.format(", ".join(["%s"] * len(sample_data_keys))), (sample_data_keys + (dataset.group.species,))) ``` -- cgit v1.2.3