I'm trying to add a couple of miscellaneous development helpers to my python project in such a way that I don't need to either import
them or declare them global
at the call site, just to save myself some typing.
Example usage would be something like:
# Somewhere, maybe src/__init__.py?
from pprint import pprint
superduperglobaleasyusenamespace.p = pprint
# A different file somewhere in my project
def whatever():
p('hello')
I looked at builtin but wasn't able to get it to work. If that's the correct solution, provide example code that works in python3.