[New-bugs-announce] [issue3592] Patch to add imp.get_codingspec()

Brett Cannon report at bugs.python.org
Mon Aug 18 23:13:52 CEST 2008

New submission from Brett Cannon <brett at python.org>:

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.

components: Library (Lib)
files: reviewed_get_encodingspec.diff
keywords: patch, patch
messages: 71379
nosy: brett.cannon, christian.heimes
priority: low
severity: normal
status: open
title: Patch to add imp.get_codingspec()
type: feature request
versions: Python 3.1
Added file: http://bugs.python.org/file11149/reviewed_get_encodingspec.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list