Brandon Konkle
Brandon Konkle

Software Architect at Community Funded, GraphQL/Node/React developer, TypeScript nerd, Linux enthusiast, supporter of social justice, loving husband & dad.

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 b…

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