[web2py] Re: OffTopic - Python help

2017-10-05 Thread Anthony
This code uses a decorator to turn a function into an instance of a special Pipe class. The Pipe class uses the Python "magic" method __ror__ to overload the bitwise OR operator (i.e, the | operator). The __or__ magic method determines the behavior of the | operator when the object with the

Re: [web2py] Re: OffTopic - Python help

2017-10-05 Thread António Ramos
Gotcha! Thank you... Sem vírus. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> 2017-10-05

[web2py] Re: OffTopic - Python help

2017-10-05 Thread Val K
On Thursday, October 5, 2017 at 11:48:43 PM UTC+3, Ramos wrote: > > Reading this > https://github.com/JulienPalard/Pipe > > i tried this simple code > __ror__ is Right OR ( operator overloading ), so | > is equal Pipe_obj.__ror__(whatever) > > > import functools > > > class Pipe: > >