[Python-Dev] PEP 318 - writing to func_name attribute
Michael Hudson
mwh at python.net
Fri Aug 6 17:23:12 CEST 2004
Guido van Rossum <guido at python.org> writes:
>> That fails because func_name is readonly. Any chance this restriction can
>> be loosened up?
>
> Good idea, independent from decorators; please add it to the PEP!
Quick question: would it be better to allow any object to be assigned
to func_name and fix the (two, for core C code anway) places this
matters or only allow strings to be assigned to func_name?
I'm thinking probably the latter.
Cheers,
mwh
--
Not only does the English Language borrow words from other
languages, it sometimes chases them down dark alleys, hits
them over the head, and goes through their pockets. -- Eddy Peters
More information about the Python-Dev
mailing list