Re: [Python-Dev] anonymous blocks

2005-04-22 Thread Greg Ewing
Ka-Ping Yee wrote: Can you explain what you meant by currying here? I know what the word curry means, but i am having a hard time seeing how it applies to your example. It's currying in the sense that instead of one function which takes all the args at once, you have a function that takes some of

Re: [Python-Dev] anonymous blocks

2005-04-22 Thread Greg Ewing
Brian Sabbey wrote: I made an example implementation, and this wasn't an issue. It took some code to stick the thunk into the argument list, but it was pretty straightforward. What does your implementation do with something like f() + g(): ... ? (A syntax error, I would hope.) While no

[Python-Dev] Re: Caching objects in memory

2005-04-22 Thread Fredrik Lundh
Facundo Batista wrote: Is there a document that details which objects are cached in memory (to not create the same object multiple times, for performance)? why do you think you need to know? If not, could please somebody point me out where this is implemented for strings? Objects/stringobject.c