Message109284
+ try:
+ dc = DefaultContext
+ except NameError:
+ pass
+
+ self.prec = dc.prec if prec is None else prec
I don't quite understand the point of catching NameError here, but it looks like if it is caught, it will just be raised by the next line because dc will not be set.
Also, I am not sure ternary expressions are a big readability win here, but if you want to keep them, consider
self.prec = prec if prec is not None else dc.prec |
|
Date |
User |
Action |
Args |
2010-07-05 01:36:08 | belopolsky | set | recipients:
+ belopolsky, rhettinger, mark.dickinson, ezio.melotti, ubershmekel, skrah |
2010-07-05 01:36:08 | belopolsky | set | messageid: <1278293768.13.0.305463214209.issue9136@psf.upfronthosting.co.za> |
2010-07-05 01:36:06 | belopolsky | link | issue9136 messages |
2010-07-05 01:36:05 | belopolsky | create | |
|