Fortunately most of the Python-for-the-web implementations do not follow
closely to the PHP paradigm of web-based programming. There are some,
like PSP, that more closely model what PHP does.
It is not uncommon to have something like index.py which does hardly
anything except fire up a framework t
gt;>> class x:
... def __init__(self):
... self.y = 1
...
>>> obj = x()
>>> obj.y
1
>>>
>>> import copy
>>> z = copy.deepcopy(obj)
>>> z.y
1
>>> obj.y = 4
>>> obj.y
4
>>> z = copy.deepcopy(obj)
>>&
copy.deepcopy() should do the trick. This URL answers a little bit of
your question about the difficulties in copying "complex" data
structures.
http://pydoc.org/2.3/copy.html
-Bob
On Wed, 2004-12-29 at 19:29 +0100, harold fellermann wrote:
> Hi all,
>
> In the documentation of module 'copy' it