Tag: rant

  • Add __init__.py files if using pkg_resources

    If you’re working on a python package, and you’re using setuptools‘s pkg_resources for handling data files in your package, then you should add __init__.py files to all your internal sub-directories. In fact, just make your life easier and always add __init__.py packages everywhere as if you were using python2, because not having them also creates […]

Create a website or blog at WordPress.com