Skip to content

Instantly share code, notes, and snippets.

@messa
messa / asyncio_ssl_example.py
Created Jun 26, 2015
Python asyncio + SSL TCP client/server example
View asyncio_ssl_example.py
#!/usr/bin/env python3
import asyncio
import multiprocessing
import os
import ssl
from time import sleep
port = 9000
@socrateslee
socrateslee / stack_trace.py
Created Nov 4, 2012
A Stack Trace Decorator of Python Functions
View stack_trace.py
import sys
import functools
'''
Usage:
consider following functions
import stack_trace
def foo():
pass
def bar():