Brandon Konkle
Brandon Konkle

Freelance full-stack Node & React developer, supporter of intersectional social justice, enthusiastic nerd, loving husband, and father. Hire me for your next project!

My Newsletter


Subscribe to my newsletter for a weekly look at the latest news, tools, and techniques from the React community.

Tags


Twitter


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 branch for better future-proofness…

Brandon KonkleBrandon 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, when the class was read by Python it eva…

Brandon KonkleBrandon Konkle

Creating a Personal PyPi with Chishop

At Pegasus News, we run custom deploy scripts that use pip to read through a requirements.txt file and keep our virtualenvs up to date. We use quite a few 3rd-party Django apps that we pull from PyPi, along with several apps - both internal and 3rd-party - from Github and Bitbucket. I'm a huge fan of virtualenv and pip and I love managi…

Brandon KonkleBrandon Konkle