(self)
return ', '.join(s) + ')'
Show the current context.
Show the current context.
Show the current context .
def __repr__(self):
        """Show the current context."""
        s = []
        s.append('Context(prec=%(prec)d, rounding=%(rounding)s, '
                 'Emin=%(Emin)d, Emax=%(Emax)d, capitals=%(capitals)d, '
                 'clamp=%(clamp)d'
                 % vars(self))
        names = [f.__name__ for f, v in self.flags.items() if v]
        s.append('flags=[' + ', '.join(names) + ']')
        names = [t.__name__ for t, v in self.traps.items() if v]
        s.append('traps=[' + ', '.join(names) + ']')
        return ', '.join(s) + ')'
def __repr__ ( self ) : s = [ ] s . append ( 'Context(prec=%(prec)d, rounding=%(rounding)s, ' 'Emin=%(Emin)d, Emax=%(Emax)d, capitals=%(capitals)d, ' 'clamp=%(clamp)d' % vars ( self ) ) names = [ f . __name__ for f , v in self . flags . items ( ) if v ] s . append ( 'flags=[' + ', ' . join ( names ) + ']' ) names = [ t . __name__ for t , v in self . traps . items ( ) if v ] s . append ( 'traps=[' + ', ' . join ( names ) + ']' ) return ', ' . join ( s ) + ')'