Mike Müller
Mike Müller
Haskell allows floating point ranges: ``` Prelude> [0.1, 0.2 .. 0.5] [0.1,0.2,0.30000000000000004,0.4000000000000001,0.5000000000000001] ``` This does not work in Hask: ``` >>> L[0.1, 0.2, ..., 0.5] TypeError Traceback (most recent call...
### Problem A new Notebook starts in the current working directory. This means a file named `logging.py` in my working directory shadows the module `logging` of the standard library. Accordingly,...
**Is your feature request related to a problem? Please describe.** Currently, the BMI interface in [mf6bmi.f90](https://github.com/MODFLOW-USGS/modflow6/blob/develop/srcbmi/mf6bmi.f90) implements getters and setters for `int`, `float`, and `double`. The types `logical` and `string`...
**The problem** I tried to compare the performance results between different Python versions and implementations. While the comparison between CPython 3.6 and CPython 2.7 works as expected, I get an...
This is the beginning of a tutorial. Please check that everything is correct. I will continue working on it.
Functions can have docstrings: ``` >>> def f1(): ... """Docstring.""" ... ``` but pattern matching functions cannot: ``` >>> def f2: ... """Docstring.""" ... ParsingError: file= lineno=2 colno=21 ``` There...
There are no docs yet. We should start a Sphinx-based documentation.
Some number literals cause parsing errors. These include: floats starting with dot: `.1` floats in scientific notation `1e3` complex numbers: `1 + 2j` hexadecimal numbers: `0xb` octal numbers: `0o2`
There are exceptions: ``` >>> 1 / 0 Traceback (most recent call last): ... site-packages/mochi/core/main.py", line 120, in interact eval_tokens(tokens) .../site-packages/mochi/core/builtins.py", line 1008, in eval_tokens exec(code, global_env) File "", line...
Currently a parsing error emits a not very user-friendly error message: ``` ... E TypeError: 'NoneType' object is not iterable ------------------------------- Captured stdout -------------------------------- ParsingError: lineno=23 colno=7 ``` The not...