Skip to content

Instantly share code, notes, and snippets.

View kmanley's full-sized avatar

Kevin Manley kmanley

  • Connecticut
View GitHub Profile
@kmanley
kmanley / proxy.py
Created January 27, 2012 21:05
General purpose method-forwarding proxy in Python
# Kevin T. Manley (kevin.manley@gmail.com)
# This improves on a pattern described in the Python Cookbook (6.6 Delegating Special Methods in Proxies)
# and adds ideas from http://code.activestate.com/recipes/519639-true-lieberman-style-delegation-in-python/
import new
from types import MethodType
class Proxy(object):
def __init__(self, obj):
if type(obj) != self._required_type:
Using instructions here: (which are for python26)
http://curl.haxx.se/mail/curlpython-2009-11/0011.html
Built zlib; got some errors at the end but I saw that zlib.lib was indeed built. Actually, the fix is to define ASMINF, like this
nmake -f win32\Makefile.msc LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj"
Openssl: got an error looking for an app called nasmw.exe; turns out I needed to install NASM http://sourceforge.net/projects/nasm/. Then, also needed to copy nasm.exe to nasmw.exe because openssl thinks it’s called nasmw.
then libcurl:
1. edit lib\Makefile.vc6. The reason we edit this one is that in Makefile there is a sed rule to generate Makefile.vc9 from Makefile.vc6