| 1 | initial version |
set is a Python class while Set is a Sage class. The documentation for Set says
If X is a list, tuple, Python set, or "X.is_finite()" is true, this returns a wrapper around Python's enumerated immutable frozenset type with extra functionality. Otherwise it returns a more formal wrapper.
If you need the functionality of mutable sets, use Python's builtin set type.
What questions do you have after reading this?
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.