The question is in the title.
How do you create a list

r = range(5)

and just reference the data without referencing the object itself.
ie.

o = r

.. I just want to reference range(5) without referencing r itself.

if i did

o.pop(0)

it likewise does r.pop(0)
...ideas?

Do you mean you want a copy of the list, instead of the original?

o = r[:]

Somehow I don't think that's what you mean though.

ahhhh.. very wise. thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.