Qi Xiao
Qi Xiao
Peewee allows you to do this, by passing `None` to `__init__`: ``` python from peewee import * db = SqliteDatabase(None) db.init('a.db') ``` Flask-SQLAlchemy too, by leaving out the `app` argument:...
The following prints `^[[1;1R` on xterm, the linux console, libvte-based terminals: ``` clear echo '\033[6n' read | cat -v ``` But it prints `^[[0;0R` on kmscon.
It would be really nice if we can source `~/.bashrc` directly. That will make migration much easier.
The current implementation of pprint is pretty naive, in particular when it comes to printing nested data structures (lists and maps). Concretely, there are several things to improve: * [x]...
When developing modules interactively, using `exec` is now the only way to get around the module cache. If there is a way to let the interpreter forget all modules and...
In #1216 @krader1961 suggested using [this sqlite package](https://godoc.org/modernc.org/sqlite) instead of boltdb so that the database can be accessed from multiple processes without needing a daemon. The package is quite mysterious...
- 0.19.0: Print a warning if ~/.elvish exists as a directory. - 0.20.0: Ignore ~/.elvish.
Consider: ```elvish-transcript ~> for x [foo bar] { } ~> put $x ▶ bar ~> try { fail x } catch err { } ~> put $err ▶ [&reason=[&content=x &type=fail]]...
Executing this interactively will leave `$x` defined, with value `$nil`: ```sh fail error; var x = foo ``` While the following will leave leave function `f` defined as a nop:...
While working on #1424 I realized that only Python calls the clause to catch exceptions `except`; it's `catch` in all other languages. I feel `catch` is slightly better because it's...