This file contains hidden or 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
| # 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: |
This file contains hidden or 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
| 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 |