Brandon Konkle
Brandon Konkle

GraphQL/Node/React engineer, TypeScript nerd, Postgres fan, Linux enthusiast, supporter of social justice, loving husband and father, avid comic reader.

Tags


avrt
Brandon Konkle

Python

pip bug with new versions of git

Just got bit by the pip bug that this commit fixes, which affects pip users with the newest versions of git. If you're having trouble installing a git requirement in pip because of a git rev-parse error, just update to the dev version of pip. pip install -U pip==dev. Use git show-ref instead of git…

Brandon Konkle Brandon Konkle

Bitten by Python's Pass-By-Reference

I just got bitten by an interesting bug related to Python's pass-by-reference feature. I had a class method (mymethod) with a keyword argument (mykwarg) that defaulted to {}. I thought that each time mymethod was called, if mykwarg wasn't passed then it would default to an empty dict. In reality,…

Brandon Konkle Brandon Konkle