Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on JSON

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Shortcomes of JSON

It is suggested that you avoid using the JSON format! TOML and YAML are better text-based alternatives. If readability is not a concern, a binary serialization format is …

Shadow Parent Methods in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Below is an example of shadowing a parent method in a child class.

Get Total Physical Memory in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Using os.sysconf

Notice that this ways only works on Linux but not on macOS or Windows.

Get physical memory in bytes.

Hands on Python IO

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

StringIO

Tools for Symbolic Computation

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement! Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Mathematica

The best one that I've ever used, but commercial unfortunately.

sympy …