Skip to content Skip to sidebar Skip to footer
Showing posts with the label Monkeypatching

Https Request Via Urllib2 Fails Behind Ntlm Proxy

Via Python's urllib2 I try to get data over HTTPS while I am behind a corporate NTLM proxy. I r… Read more Https Request Via Urllib2 Fails Behind Ntlm Proxy

Really Weird... Can't Set Attributes Of Built-in/extension Type 'lxml.etree._element'

I've changed attributes for other classes before without issues. _Element is obviously not a bu… Read more Really Weird... Can't Set Attributes Of Built-in/extension Type 'lxml.etree._element'

Should A Plugin Adding New Instance-methods Monkey-patch Or Subclass/mixin And Replace The Parent?

As a simple example take a class Polynomial class Polynomial(object): def __init__(self, coeff… Read more Should A Plugin Adding New Instance-methods Monkey-patch Or Subclass/mixin And Replace The Parent?