This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients ezio.melotti, mark.dickinson, rhettinger, skrah, ubershmekel
Date 2010-07-01.21:16:45
SpamBayes Score 0.05830277
Marked as misclassified No
Message-id <1278019008.16.0.889192745156.issue9136@psf.upfronthosting.co.za>
In-reply-to
Content
Stylistically, it would be nice to eliminate the local variable reassignment entirely:

self.Emin = DefaultContext.Emin if Emin is None else Emin
self.Emax = DefaultContext.Emax if Emax is None else Emax
self._ignored_flags = [] if _ignored_flags is None else _ignored_flags

Also, to keep the code consistent between versions, it may be better to avoid set/dict comprehensions and stick with the old:

    dict([(s, int(s in flags)) for s in _signals])

or slightly more modern generator comprehension:

    dict((s, int(s in flags)) for s in _signals)
History
Date User Action Args
2010-07-01 21:16:48rhettingersetrecipients: + rhettinger, mark.dickinson, ezio.melotti, ubershmekel, skrah
2010-07-01 21:16:48rhettingersetmessageid: <1278019008.16.0.889192745156.issue9136@psf.upfronthosting.co.za>
2010-07-01 21:16:46rhettingerlinkissue9136 messages
2010-07-01 21:16:45rhettingercreate