Chao RenPython vs GoRecently I learned Go language, and I feel it’s very concise and readable as Python. It also has a powerful built-in data structure, rich…Nov 12, 2018Nov 12, 2018
Chao RenHow to timeout in PythonTimeout is very useful when you want to limit the max time for calling a function or running a command. Here are my two Python…Sep 18, 20181Sep 18, 20181
Chao RenHow to compare/sort Python objects?It’s easy to compare Python built-in objects, like 1 < 2, ‘abc’ < ‘abd’, tuple (0, 1, 3) < tuple (0, 2, 1). But how to compare your own…Sep 9, 2018Sep 9, 2018
Chao RenMake Python stack overflow and core dumpAll you need is a recursive function. I’m using Python 3.6.5, enjoy!Sep 2, 2018Sep 2, 2018
Chao RenInstall Ubuntu 18.04.1 LTS on my Windows PCThe Ubuntu release has lots of new features, so I decide to allocate half of my PC’s disk space for it so I can use both Windows and Linux…Aug 26, 2018Aug 26, 2018
Chao RenDatetime to Unix time/epoch in Python 2 / 3Python’s datetime module is frequently used in my daily work, and here are some timezone related gotchas when converting a datetime into a…Aug 24, 2018Aug 24, 2018