[Python-Dev] PEP 318 - generality of list;
restrictions on elements
Aahz
aahz at pythoncraft.com
Wed Mar 10 06:33:02 EST 2004
On Mon, Mar 08, 2004, Fred L. Drake, Jr. wrote:
> On Monday 08 March 2004 04:00 pm, Aahz wrote:
>>
>> Principle of least surprise, essentially. There are already going to be
>> enough obscure uses for this; let's try to keep the completely whacky out
>> of it. You'll have to come up with an awfully convincing use case to
>> change my mind.
>
> I'd be very surprised if the interpreter cared that a decorator
> returned a callable; what should it care?
The interpreter doesn't care; *people* care. That's precisely why it
should be a documented requirement.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"Do not taunt happy fun for loops. Do not change lists you are looping over."
--Remco Gerlich, comp.lang.python
More information about the Python-Dev
mailing list