Python deepcopy to while statement

hito koto hitokoto2014 at gmail.com
Thu Jun 12 23:47:19 EDT 2014


Hi, all

I want to make the function use while statement,and  without a deepcopy functions.

this is my use deepcopy  function correct codes, So, how can i to do a different way  and use while statement:

def foo(x):
    if not isinstance(x, list):
        return x
    return [foo(y) for y in x]






More information about the Python-list mailing list