This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Allow copying of CodecInfo objects
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: berker.peksag, lehmannro, lemburg
Priority: normal Keywords: patch

Created on 2014-07-09 11:52 by lehmannro, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
copy_codecinfo.patch lehmannro, 2014-07-09 11:52 patch to current default review
Messages (2)
msg222609 - (view) Author: Robert Lehmann (lehmannro) * Date: 2014-07-09 11:52
CodecInfo objects as retrieved from codecs.lookup currently throw an exception when trying to copy or pickle them.

I have attached a patch with a fix and tests.
msg236755 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2015-02-27 14:53
The change to codecs.py seems simple enough but would we usually use plain asserts in test code?
History
Date User Action Args
2022-04-11 14:58:05adminsetgithub: 66143
2021-11-26 22:44:37iritkatrielsettype: behavior -> enhancement
versions: + Python 3.11, - Python 3.5
2019-03-15 22:41:13BreamoreBoysetnosy: - BreamoreBoy
2015-02-27 14:53:30BreamoreBoysetnosy: + BreamoreBoy
messages: + msg236755
2014-07-09 15:57:21berker.peksagsetnosy: + lemburg, berker.peksag
2014-07-09 11:52:09lehmannrocreate