Guido van Rossum <guido@python.org> writes: > A while ago there was a proposal floating around to add an optional > part to function/method definitions, that would replace the current > clumsy classmethod etc. notation, and could be used for other purposes > too. I think the final proposal looked like this: > > def name(arg, ...) [expr, ...]: > ...body... That was the one I came up with. > Does anyone remember or know where to find the thread where this > proposal was discussed? It ought to be turned into a PEP. I think it was here on python-dev. I was going to turn it into a PEP, but thought I'd wait until 2.3 was done. <googles> Discussion here: http://mail.python.org/pipermail/python-dev/2002-February/020005.html The patch linked to in that mail still applies, remarkably enough; I haven't tested whether it *works* recently... Cheers, M. -- Now this is what I don't get. Nobody said absolutely anything bad about anything. Yet it is always possible to just pull random flames out of ones ass. -- http://www.advogato.org/person/vicious/diary.html?start=60
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4