Skip to content

Instantly share code, notes, and snippets.

💼
working

Pavel Hrdina im-n1

💼
working
Block or report user

Report or block im-n1

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
View setup.py
#!/usr/bin/env python3
import setuptools
from eagle import __version__, __description__
# Long description
with open("description.rst", "r") as f:
long_description = f.read()
View out.txt
~ python /tmp/class_contextmanager.py
before
1
after
View class_contextmanager.py
from contextlib import contextmanager
class X(object):
@contextmanager
def y(self):
print("before")
x = 1
You can’t perform that action at this time.