Ticket #3668 (new defect)

Opened 3 months ago

Last modified 1 month ago

Functionality of "Set"

Reported by: ljpk Assigned to: tba
Priority: minor Milestone: sage-3.2
Component: documentation Keywords:
Cc:

Description (Last modified by mabshoff)

In the documentation for the function "Set" (Reference Manual 11.8) it would be helpful to explicitly point out that Set allows objects of different types, so

sage: Set([Sequence(my_seq),3,QQ])
Rational Field, 3, [2, 3]

is perfectly OK.

Also, it would be nice if Set allowed one to use lists, so

Set([[2,3]])

worked, rather than giving the error message TypeError?: list objects are unhashable.

Change History

08/14/2008 04:03:45 PM changed by mabshoff

  • milestone set to sage-3.1.1.

09/15/2008 05:13:07 PM changed by mabshoff

  • description changed.