Message294146
API-wise, I went for the minimal route. This avoids any discussion of adding a separate module for a tiny functionality that is only going to be used by a couple of libraries (and probably no application code).
Comparisons with atexit are not really relevant, IMO, since the use cases are very different.
As for passing explicit arguments to the callable, people can use a lambda or functools.partial. I don't want to complicate the C implementation with matters that are not really important. |
|
Date |
User |
Action |
Args |
2017-05-22 13:02:34 | pitrou | set | recipients:
+ pitrou, lemburg, twouters, georg.brandl, gregory.p.smith, jcea, amaury.forgeotdarc, vstinner, christian.heimes, grahamd, Arfrever, ionelmc, asvetlov, neologix, socketpair, sbt, aliles, serhiy.storchaka, yselivanov, DLitz, emptysquare, xupeng, rpcope1 |
2017-05-22 13:02:34 | pitrou | set | messageid: <1495458154.15.0.683763767982.issue16500@psf.upfronthosting.co.za> |
2017-05-22 13:02:34 | pitrou | link | issue16500 messages |
2017-05-22 13:02:33 | pitrou | create | |
|