[Python-Dev] PEP 3148 ready for pronouncement (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Wed May 26 12:57:15 CEST 2010


Having read through the PEP again, here are my thoughts.

I think that the standard library is no place for cuteness of naming. The name of a stdlib module should reflect its functionality in some straightforward and obvious way. If I were looking for a thread pool or process pool implementation, the word "future" is not something that would spring readily to mind.

The stated purpose of the module is to "execute computations asynchronously", so perhaps a name such as "asyntask" would be appropriate, following the pattern of existing modules dealing with ansynchronous matters, ansyncore and asynchat. For the Future object itself, I'd suggest something like "Task" or "Job".

(More generally, I'm inclined to think that introducing a namespace package for a category of modules having existing members in the stdlib is an anti-pattern, unless it's done during the kind of namespace refactoring that we won't get another chance to perform until Py4k.)

Concerning the structure of the PEP:

Concerning details of the specification:

-- Greg



More information about the Python-Dev mailing list