SSLError with Python 3.6.x on macOS Sierra

SSLError Have you ran into trouble with SSLErrors after upgrading to Python 3.6 on macOS Sierra?  For me, my first encounter was downloading the bokeh sample data (included here). Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits"…

Pip Installs From Github

Pip installs From github Installing a package from github is fairly simple.  The following are examples of installing packages from github. # Install repo package from the url, master branch pip3 install git+https://github.com/username/repo.git @ Install repo from the specified branch pip3 install git+https://github.com/username/repo.git@branch # Install repo from the specified commit.…

You're Too Close

Have you encountered the following scenario? You are trying to solve a problem (or helping solve a problem) and know or at least think you know the solution.  You are in the middle of implementing it when someone else looks at it and says, "why don't you do it this…

The Python "in" Operator – Theoretical vs Actual Time Complexity

Background Sometimes we may generate or retrieve a list, set or even dict when creating collection of things that we will be testing against.  Theoretically a set, frozenset or dictionary should be the fastest (and equivalent) forms of storage for this operation.  However, what I've found is that on some…