
April 3, 2012
11:46 p.m.
On Wed, Apr 4, 2012 at 9:38 AM, Cameron Simpson <cs@zip.com.au> wrote:
I could do this. I think I'm -0 on it, because it doesn't seem more expressive to my eye than the straight make-a-bitmask "|" form. Other opinions?
Yes. I've been mostly staying out of the PEP 418 clock discussion (there are enough oars in there already), but numeric flags are unnecessarily hard to debug. Use strings as your constants unless there's a compelling reason not to. Seeing "('MONOTONIC', 'HIGHRES')" in a debugger or exception message is a lot more informative than seeing "3". Regards, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia