Skip to content

Instantly share code, notes, and snippets.

Bruce Eckel BruceEckel

Block or report user

Report or block BruceEckel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
BruceEckel /
Created Dec 2, 2014
Trying to use Python context managers and streams together, but it doesn't work
import os, sys
from contextlib import contextmanager
from glob import glob
def visitDir(d):
yield d
You can’t perform that action at this time.