atexit.register does not return the registered function. IMHO, it should.
Pierre Rouleau
prouleau001 at gmail.com
Thu Nov 16 11:25:58 EST 2006
On 11/16/06, Skip Montanaro <skip.montanaro at gmail.com> wrote:
> > Since that the decorator syntax is upon us, I think it would be good if
> > atexit.register() was returning the function passed as argument. This
> > simple change to the library would solve a problem with the use of
> > atexit.register as a decorator (and I can't think of any use case where
> > this change would break any code).
> ...
>
> Can you submit a bug report to the SourceForge bug tracker? I'll take
> care of the problem when I have access to the subversion repository.
>
Done: http://sourceforge.net/tracker/index.php?func=detail&aid=1597824&group_id=5470&atid=105470
I select Python 2.5 as the category. It affects all versions but most
likely to cause a problem in Python 2.4 and after.
--
Pierre R.
More information about the Python-list
mailing list