Index ¦ Archives ¦ Atom > Category: Python ¦ Atom

A virtualenv first approach to Python projects

I have until the last few months (of my ~4 years of working with Python) always worked without virtualenv for all my Python projects. Why? I think I found the whole idea of having to do the following two steps before I work on something cumbersome:

  • Remember the exact virtualenv …

PYTHONHASHSEED and your tests

Recently at work, I wanted to test a string which was being created by the urllib.urlencode() function. My first attempt was simple - test my expected string with that being created by the function above using unittest's assertEquals() function. It passed all the times I ran the tests before I …

© Amit Saha. Built using Pelican. Theme by Giulio Fidente on github.