'set' is a Python standard object [1], since version 2.4. In version
2.3 you need to import the 'Set' package first.
So, if you care about backward compatibility in Python, the most
secure way to import it is:

try:
    set
except NameError:
    from sets import Set as set # Python 2.3 fallback

[1] http://docs.python.org/lib/types-set.html

On Jul 20, 1:23 pm, "Cole Tuininga" <[EMAIL PROTECTED]> wrote:
> Quick question for you folks - is there a native "set" type in the
> Django model system?  I'm currently on 0.96.1.  Thanks!
>
> --
> Cole Tuiningahttp://www.tuininga.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to