Two locations for module struct ?
tjreedy at udel.edu
Fri Nov 14 22:47:13 CET 2014
On 11/14/2014 10:11 AM, ast wrote:
> In module wave there is a sub module struct.
struct is not a documented part of the wave module.
> You can call function pack() with:
> import wave
> val = wave.struct.pack(...)
wave imports several other stdlib modules. All are accessible the same
way. None are documented or included in wave.__all__. Some modules,
typically more recently written or edited, do things like
import struct as _struct
to avoid such leakage of import. But this is a nuisance to write and
read. Best to stick with the documented api.
Terry Jan Reedy
More information about the Python-list