Neville Bagnall wrote:
> FWIW in the general case I would have something equivalent to:
> 
> def GenRepr(object):
>      strrep=object.ToString()
>      if len(strrep)<40 and strrep.find('\n')==-1:
>          return "<%s: %s>" % (object.__class__.__name__, repr(strrep)[1:-1])
>      else:
>          return "<%s at 0x%x>" % (object.__class__.__name__, id(object))
> 
> i.e. include a string representation only where it is reasonably concise,  
> and include the markers in both cases.

I would be happy with something like that and I think it ends up being a 
better solution than what is currently the situation.
-- 
Jonathan

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to