[New-bugs-announce] [issue11081] from struct import * misses pack_into

SilentGhost report at bugs.python.org
Mon Jan 31 18:21:59 CET 2011

New submission from SilentGhost <ghost.adh at gmail.com>:

the following issue was introduced in r81947:

>>> from struct import *
>>> pack_into
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
NameError: name 'pack_into' is not defined

struct.__all__ has a duplicate entry for "unpack" and misses "pack_into".

Patch is attached, test passes. Seems quite innocent to me, could it make into 3.2, George?

Related: #8973 and #11078

components: Library (Lib)
files: struct.py.diff
keywords: easy, patch
messages: 127625
nosy: SilentGhost, belopolsky, georg.brandl, mark.dickinson
priority: normal
severity: normal
status: open
title: from struct import * misses pack_into
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file20629/struct.py.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list