Skip to content

Instantly share code, notes, and snippets.

View horpto's full-sized avatar
💭
machine learning simpleton

horpto

💭
machine learning simpleton
  • Russia, St. Petersburg
  • 01:57 (UTC +03:00)
  • X @horpto
View GitHub Profile
@horpto
horpto / block comment
Created February 11, 2015 06:47
function for required logging
from contextlib import contextmanager
from logging import getLogger, DEBUG, basicConfig
basicConfig(level = DEBUG)
@contextmanager
def comment(comment, logger=getLogger(),level=DEBUG):
try:
yield