views:

146

answers:

3

I am trying to convert a set object to list...for example "p=list('abc')" is not working. any ideas or is it inherent in appengine

+1  A: 

A set object to list is converted like so:

my_list = list(my_set)

I don't understand your example though. Converting a string to a list results in a list of characters:

>>> list('abc')
['a', 'b', 'c']
Blixt
A: 

if the list() command is not working for you, you could work around it like this:

my_list = []
for item in my_set:
  my_list.append(item)

hth

mux
A: 

There is no specific change "inherent" in appengine with respect to common aspects like lists. It is as just the same, plain python.

Lakshman Prasad