Two locations for module struct ?

ast nomail at
Fri Nov 14 16:11:28 CET 2014


In module wave there is a sub module struct.
You can call function pack() with:

import wave
val = wave.struct.pack(...)

but the same function can be called with:

import struct
val = struct.pack(...)

Is it exactly the same module in both location ?
Why putting struct in two places ?

More information about the Python-list mailing list