allow line break at operators

alex23 wuwei23 at gmail.com
Tue Aug 16 00:13:53 EDT 2011


Steven D'Aprano <steve+comp.lang.pyt... at pearwood.info> wrote:
> I think I would be less skeptical about fluent interfaces if they were
> written more like Unix shell script pipelines instead of using attribute
> access notation:
>
> foo.array_of_things | sort | map block | join ", "

I've seen at least one attempt to provide this in Python:

http://dev-tricks.net/pipe-infix-syntax-for-python



More information about the Python-list mailing list