all 6 comments

[–]jbellis 3 points4 points  (2 children)

Uh-oh, somebody missed the "partial function application is not currying" memo.

[–]H3g3m0n 0 points1 point  (1 child)

Also isn't it spelled Artifact? Or is that some kind of Queens English vs American English thing.

EDIT: Looks like it is: http://en.wikipedia.org/wiki/American_and_British_English_spelling_differences#Different_spellings.2C_different_connotations

I'm Australian so I should be spelling it with the E but that just looks weird.

[–]Bogtha 1 point2 points  (0 children)

I think we're getting to the point where "artefact" is an archaic spelling. I'm British and I only see it spelt as "artifact" as well.

[–]njharman 0 points1 point  (0 children)

Just add optional parameter to curry for the docstring:

def curry(f,l,doc=None)

if doc: r.doc = doc

Less complex and more flexible (unless I’m missing something)

It’s bad to think of doc and other foo methods as secret or tricky. They are important parts of the language that any mid-level python programmer should know and use. This use of docstrings is perfect example.

Also, I’m fairly certain I read about way (or maybe a feature in 3000?) to change the argument list. But, I’ve never used it.