Brandon Konkle
Brandon Konkle

Principal Engineer, type system nerd, Rust enthusiast, supporter of social justice, loving husband & father, avid comic & manga reader, 日本語を勉強してる。

Tags


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, w…

Brandon Konkle Brandon Konkle