A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-April/014466.html below:

[ python-Bugs-416670 ] MatchObjects not deepcopy()able

[Python-Dev] Re: [ python-Bugs-416670 ] MatchObjects not deepcopy()able [Python-Dev] Re: [ python-Bugs-416670 ] MatchObjects not deepcopy()ableFredrik Lundh fredrik@pythonware.com
Fri, 27 Apr 2001 11:51:23 +0200
mal wrote:
> > time to add a __clone__ slot?
> >
> > or could someone who knows what he's doing here address
> > this comment in copy.py:
> >
> >     # XXX need to support copy_reg here too...
>
> All you have to do is implement the copy protocol (ie. .copy())
> for the type/class in question.

cannot find any support for that in the copy module (not in 2.0, at least)

but another reading revealed support for __copy__ and __deepcopy__
methods in at least 1.5.2 and later.  intriguing...

Cheers /F





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4