Ticket #14486: a.patch

File a.patch, 621 bytes (added by ncohen, 9 years ago)
  • sage/sets/set.py

    # HG changeset patch
    # User Nathann Cohen <nathann.cohen@gmail.com>
    # Date 1366890186 -7200
    # Node ID 57d44e532e825668865923426e0a7e8ffd0c7603
    # Parent  c88f1f4d36d889d36bac70dd13e9e5835bec1467
    [mq]: seryeryery
    
    diff --git a/sage/sets/set.py b/sage/sets/set.py
    a b  
    127127        # but this is the way Python behaves too: try
    128128        # sage: set(an iterator which does not terminate)
    129129        return Set_object_enumerated(list(X))
    130     return Set_object(X)
     130
     131    raise ValueError("No idea how this could be turned into a Set !")
    131132
    132133def EnumeratedSet(X):
    133134    """