Message247770
I don't think len() is a good idea for this, it's not obvious enough (why the number of tasks and not the number of threads/processes, for example?). Also, len() can make the object evaluate false-y in a boolean context, if len() returns 0.
A dedicated method would probably be ok, though. With the caveat that the return value would always be an approximation of the "actual" value. |
|
Date |
User |
Action |
Args |
2015-07-31 20:38:38 | pitrou | set | recipients:
+ pitrou, bquinlan, Pat Riehecky |
2015-07-31 20:38:38 | pitrou | set | messageid: <1438375118.19.0.571161296868.issue24767@psf.upfronthosting.co.za> |
2015-07-31 20:38:38 | pitrou | link | issue24767 messages |
2015-07-31 20:38:38 | pitrou | create | |
|