[Python-ideas] Re: basic matrix object

2020-08-16 Thread Tobias Kohn
+1 for the idea of a module for matrices and vectors in the stdlib. One aspect that I would like to highlight is that NumPy is not always so easily available. I got feedback from many schools that they were using tablet computers or something like Chrome books and thus basically limited to anyt

Re: [Python-ideas] Multi Statement Lambdas

2018-10-21 Thread Tobias Kohn
it might just be a detail, but Python does not even have single-statement lambdas.  The body of a lambda is an expression yielding a value, not a statement. Function languages (from which the idea of the Lambda in Python probably came from) do not have statements at all.  Something like th

Re: [Python-ideas] "while:" for the loop

2018-09-26 Thread Tobias Kohn
Hello, Although I doubt it will really make it into Python's grammar, I am all +1 for the idea of having "repeat" as a loop keyword in Python.  Actually, I have been using "repeat" as a keyword in Python for quite some time now, and found it not only convenient, but also a great help in

[Python-ideas] Pattern Matching Syntax (reprise)

2018-09-18 Thread Tobias Kohn
while implementing it. Kind regards, Tobias Kohn [1] https://groups.google.com/d/topic/python-ideas/nqW2_-kKrNg/discussion [2] https://github.com/Tobias-Kohn/pyPMatch [3] https://tobiaskohn.ch/index.php/2018/09/18/pattern-matching-syntax-in-python/ [4] https://tobiaskohn.ch/index