Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue37001

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:symtable.symtable doesn't accept bytes which leads to a mismatch from compile()
Type:Stage:resolved
Components:Library (Lib)Versions:Python 3.8
process
Status:closedResolution:
Dependencies:Superseder:
Assigned To: dino.viehlandNosy List: dino.viehland
Priority:normalKeywords:patch

Created on2019-05-21 21:01 bydino.viehland, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 13483mergeddino.viehland,2019-05-22 04:04
Messages (2)
msg343096 -(view)Author: Dino Viehland (dino.viehland)*(Python committer)Date: 2019-05-21 21:01
symtable is useful when combined with compile() to AST to understand what the names bind to.  But symtable.symtable() doesn't accept a bytes object, while compile does.  Ultimately these feed down to the same API, and could easily lead to subtle mismatches due to encodings. The workaround seems to be to use the tokenize.detect_encoding to discover the encoding and then do the encoding from Python, but this seems wasteful.
msg343829 -(view)Author: Dino Viehland (dino.viehland)*(Python committer)Date: 2019-05-28 23:21
New changeset415406999d7c09af9f3dcacfb4578b9e97b2ce77 by Dino Viehland in branch 'master':bpo-37001: Makes symtable.symtable have parity with compile for input (#13483)https://github.com/python/cpython/commit/415406999d7c09af9f3dcacfb4578b9e97b2ce77
History
DateUserActionArgs
2022-04-11 14:59:15adminsetgithub: 81182
2019-05-28 23:22:09dino.viehlandsetstatus: open -> closed
stage: patch review -> resolved
2019-05-28 23:21:21dino.viehlandsetmessages: +msg343829
2019-05-22 04:04:26dino.viehlandsetkeywords: +patch
stage: patch review
pull_requests: +pull_request13395
2019-05-21 21:01:35dino.viehlandcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp