Message163555
> What's wrong with mmap? It uses list of optional arguments (`flags`,
> `prot`, `access`) and not only one `flags` argument.
Of course it does, as the mmap syscall(), since this arguments have nothing to do with one another.
I was refering to your proposal of splitting sendfile's `flags` argument, which is currently a bitmask, into distinct arguments (diskio=True, wait=True, sync=False).
If we did this for, let's say, mmap() `flags`, this would end up in a bazillion optional arguments, because there a re so many possible values for `flags` (MAP_SHARED, MAP_PRIVATE, MAP_ANONYMOUS, MAP_DENYWRITE...).
Bitmasks are a clear and compact way to pass optional arguments, and should be kept. |
|
Date |
User |
Action |
Args |
2012-06-23 08:59:33 | neologix | set | recipients:
+ neologix, loewis, vstinner, larry, giampaolo.rodola, serhiy.storchaka |
2012-06-23 08:59:33 | neologix | set | messageid: <1340441973.36.0.804701089333.issue15078@psf.upfronthosting.co.za> |
2012-06-23 08:59:32 | neologix | link | issue15078 messages |
2012-06-23 08:59:31 | neologix | create | |
|