EdmontonPy
Inspired by the Python community, we hope to foster a strong, supportive, and proficient Python community in the Edmonton area.
edmontonpy.com
@edmontonpy
edmontonpy.slack.com
Tutorial 3: Git
Tutorial 4: Django
Daniel Mouris & Andrew Crouse
NEXT MEETUP ON SEPTEMBER 10th
None Right now that I know of but Please let me know if you have any!
Current:
env_base = os.environ.get("PYTHONUSERBASE", None)
if env_base:
return env_base
Improved:
if env_base := os.environ.get("PYTHONUSERBASE", None):
return env_base
Want to find all global variables in the current scope:
Code
Output
globals()
{
'__name__': '__main__',
'__doc__': None,
'__package__': None,
'__loader__': <class '_frozen_importlib.BuiltinImporter'>,
'__spec__': None, '__annotations__': {},
'__builtins__': <module 'builtins' (built-in)>
}
locals()
By EdmontonPy
Inspired by the Python community, we hope to foster a strong, supportive, and proficient Python community in the Edmonton area.