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/014455.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@effbot.org
Thu, 26 Apr 2001 22:50:38 +0200
Martin v. Loewis wrote:
> What's wrong with patch #419070, which fixes the bug? Like any other
> immutable object, deepcopying a match object means returning it.

what makes you think a match object is immutable?

import array, sre

a = array.array("c", "abcde")
m = sre.search("bcd", a)
print m.group(0)

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