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.
Created on 2008年08月18日 21:13 by brett.cannon, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| reviewed_get_encodingspec.diff | brett.cannon, 2008年08月18日 21:13 | |||
| Messages (3) | |||
|---|---|---|---|
| msg71379 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2008年08月18日 21:13 | |
Attached is a patch to add imp.get_codingspec(); a function that returns the encoding of a source file. The motivation is to remove the import of the re module in linecache to speed up interpreter startup. |
|||
| msg71380 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2008年08月18日 21:14 | |
It should be noted the original patch by Christian had a check for bad tokenizing. Turns out that if you have that in several tests fail, including test_modulefinder. This might mean there is a deeper problem in the parser. |
|||
| msg113412 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2010年08月09日 12:59 | |
We don't need this. We have tokenize.detect_encoding(). |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:37 | admin | set | github: 47842 |
| 2010年08月09日 21:01:28 | brett.cannon | set | status: open -> closed keywords: patch, patch resolution: out of date |
| 2010年08月09日 12:59:39 | benjamin.peterson | set | keywords:
patch, patch nosy: + benjamin.peterson messages: + msg113412 |
| 2010年08月09日 04:29:44 | terry.reedy | set | keywords:
patch, patch versions: + Python 3.2, - Python 3.1 |
| 2008年08月18日 21:14:48 | brett.cannon | set | keywords:
patch, patch messages: + msg71380 |
| 2008年08月18日 21:13:51 | brett.cannon | create | |