On 11/14/2014 10:11 AM, ast wrote:
Hello

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

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to