[issue1040026] os.times() is bogus

2008-02-23 Thread rbp
rbp added the comment: Malte noticed that my previous patch won't compile when HAVE_SYSCONFIG and HZ are not defined. My bad, silly mistake. I've attached a new version, which compiles and has been tested on all three cases (with test_posix4.PATCH). Please, someone with privile

[issue1040026] os.times() is bogus

2008-02-23 Thread rbp
rbp added the comment: Malte, Antoine and I discussed this a bit on #python-dev and concluded that the correct behaviour should be trying sysconf first, then HZ, or raise an exception if not even HZ is available (since whichever static value we chose would be misleading anyway). I'm attach

[issue2149] Queue.maxsize, __init__() accepts any value as maxsize

2008-02-23 Thread rbp
rbp added the comment: For what it's worth, I do think this is an issue. As it currently stands, not only does the module silently accept invalid values, but the mutex issue exists (and is also silently ignored) if an object returning dynamic values is passed as maxsize. IMHO, the water