You don't need to import Sets in Python 2.5.

-Nick

On Tue, Nov 15, 2011 at 2:51 AM, Tim Hoffman <[email protected]> wrote:

> Hi
>
> If your using Python 2.5 then you need to import the sets module.
>
> >>> from sets import Set
> >>> Set([1,2,1,2,4])
> Set([1, 2, 4])
> >>>
>
> This code will also work in 2.7
>
> Though in 2.7 you have the set type builtin.
>
> Rgds
>
> Tim
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/jbZddnsDuQgJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 
Nick Johnson, Developer Programs Engineer, App Engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to