This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Requirements: requests, lxml | |
import requests | |
from lxml import html | |
TALKNAME = "TITLE OF MY AMAZING TALK (it's a secret!)" | |
COLOR = '\033[1;34m' | |
END = '\033[0m' | |
r = requests.get('http://2013.djangocon.eu/vote/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import TypeVar, Generic | |
from logging import Logger | |
T = TypeVar('T') | |
class LoggedVar(Generic[T]): | |
def __init__(self, value: T, name: str, logger: Logger) -> None: | |
self.name = name | |
self.logger = logger | |
self.value = value |