Ticket #14471: trac_14471_demonstrate.patch

File trac_14471_demonstrate.patch, 593 bytes (added by vbraun, 9 years ago)

Initial patch

  • sage/misc/displayhook.py

    # HG changeset patch
    # User Volker Braun <vbraun.name@gmail.com>
    # Date 1366558438 -3600
    # Node ID 029fad0de845cdd431d313bcbaf5f0170d314d55
    # Parent  c72ebdd9df76051834b364a7df2a29216161b2c4
    [mq]: trac_14471_demonstrate.patch
    
    diff --git a/sage/misc/displayhook.py b/sage/misc/displayhook.py
    a b  
    196196            [0 0 1], [0 0 1]
    197197            )
    198198        """
     199        hasattr(obj, '_foobar_')   # just touch __getattr__ for all output objects
    199200        s = format_obj(obj)
    200201        if s is not None:
    201202            print s