pipenv - Sacred Marriage of Pipfile, Pip, & Virtualenv. Hey guys, I figured I would cross post to here to see if anyone familar with flask could help. The flask board is pretty dead/slow. I wrote this blog post to share the way I use the any/all functions. Essentially I look for code that looks like this: all_good = True for item in iterable: if not condition(item): all_good = False break And replace it with this: all_... I do a live chat every week on Python. This is the first of my chats that I've shared on this imzy community. I'm curious what you all think of this type of share. This is a live event that you can participate in this weekend, but you can also watch the r... I've made a little project that includes importing various python files into another python files. Here's my directory structure. Main_Folder |_ my_main_file.py |_ Sites (a directory inside Main_Folder) |_ __init__.py |_ some_other.py This is basical... So I've got a list of ints. It is known to have an even number of elements. I would like to make a new list that has the sums of pairs, in sequence. Best I've come up with a C-like loop, for i in range( 0, len(old_list), 2) : new_list.append( old_list... I did this talk at DjangoCon US 2016. You can find the slides here. The topics I covered in this talk were inspired by my own programming history (I've refactored my own code many times) as well as by my students from past Python trainings (learning a new... Sometimes, it can be useful to know if your program is running in a terminal. Since Python 3.3, this functionality has been available in the os module: #!/usr/bin/env python3 # Test if this Python script is running in a terminal or not.