On Fri, Dec 11, 2009 at 12:05 PM, Kevin Ar18 <kevina...@hotmail.com> wrote:
> I am aware of the fact that you can somehow replace the __builtins__ in > Python. There is a library here that modifies the >> binary builtins: > http://github.com/aht/stream.py/blob/master/stream.py > > Question: Is there anywhere that explains in detail how to modify the > builtins in Python like this library did? > I did some google and I didn't find anything useful, either. The unofficial doc on effbot.org gives "See __add__", which is fair enough. I believe you're after __rshift__ [that is >>], __lshift__ [which is <<], as starters. There are also __rrshift__ and __rlshift__, but not as useful. What did you need this anyway? Just curious. Cheers, Xav
-- http://mail.python.org/mailman/listinfo/python-list