Edmonton.py

The Edmonton Python User Group

edmontonpy.com
@edmontonpy

edmontonpy.slack.com

Today's talks

Fortunato

Tutorial 3: Git

Tutorial 4: Django

Daniel Mouris & Andrew Crouse

Python Events

 

  • DjangoCon 2018​
    October 14-19, San Diego, CA

 

NEXT MEETUP ON SEPTEMBER 10th

Releases

  • Django 2.1
  • Seaborn 0.9.0
  • NumPy 1.15.0

Jobs!

None Right now that I know of but Please let me know if you have any!

Articles

PEP 572 -- Assignment Expressions

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
  • Python Tip: 

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()

Made with Slides.com