[Python-Dev] PEP 362: 4th edition (original) (raw)
Guido van Rossum guido at python.org
Mon Jun 18 22:25:15 CEST 2012
- Previous message: [Python-Dev] PEP 362: 4th edition
- Next message: [Python-Dev] PEP 362: 4th edition
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Jun 18, 2012 at 11:09 AM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
The rationale is that sometimes you need to modify signatures. For instance, in decorators.
A decorator should make a modified copy, not modify it in place (since the signature of the decorated function does not change, and you have no guarantee that that function is no longer accessible.)
-- --Guido van Rossum (python.org/~guido)
- Previous message: [Python-Dev] PEP 362: 4th edition
- Next message: [Python-Dev] PEP 362: 4th edition
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]