Dan Sommers writes: > On the other hand, ∘ ruffles a lot of ASCII feathers (but I'm sure > Steven knows that).
On the gripping hand, "<>" looks more or less like a circle :-), and we could finally put barry_as_FLUFL __past__ us! ;-) Here's a wacky syntax idea: to get a partially applied function of one argument, substitute the composition symbol for the argument. So if you have def foo(file, data) and def bar(x, parms) -> data, you could compose them with composed = foo(file, <>) <> bar(<>, parms) (closing over file and parms), and then apply composed(x). Not sure about readability, especially with lots of arguments, or usability. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/LVBKHRV4IOX6IDECBB2ST4BF3ZY222NF/ Code of Conduct: http://python.org/psf/codeofconduct/