Reversing an encoding with unicode-escape returns a different result

Open
#65,530 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by reviewing the original BPO issue 21331 and reproducing the unicode-escape behavior described in the title on Python 3.4 or a current checkout. Trace the Unicode codec entry points and existing codec tests; done means reversing the encoding preserves the original result and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Description

topic-unicode type-bug
BPO 21331
Nosy @malemburg, @loewis, @ncoghlan, @vstinner, @ezio-melotti, @bitdancer, @serhiy-storchaka

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2014-04-22.20:58:23.698>
labels = ['type-bug', 'expert-unicode']
title = 'Reversing an encoding with unicode-escape returns a different result'
updated_at = <Date 2014-06-24.10:08:35.712>
user = 'https://bugs.python.org/Sworddragon'

bugs.python.org fields:

activity = <Date 2014-06-24.10:08:35.712>
actor = 'lemburg'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Unicode']
creation = <Date 2014-04-22.20:58:23.698>
creator = 'Sworddragon'
dependencies = []
files = []
hgrepos = []
issue_num = 21331
keywords = []
message_count = 14.0
messages = ['217021', '217024', '217033', '217055', '217094', '217095', '217096', '218519', '221191', '221198', '221204', '221308', '221442', '221447']
nosy_count = 8.0
nosy_names = ['lemburg', 'loewis', 'ncoghlan', 'vstinner', 'ezio.melotti', 'r.david.murray', 'Sworddragon', 'serhiy.storchaka']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue21331'
versions = ['Python 3.4']

Dominant language
Python
Stars
77.2k
Forks
36k
Avg merge
1d 9h
Merged PRs (30d)
558

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python/cpython

All issues in python/cpython

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.