project-rig / rig

A collection of tools for developing SpiNNaker applications.
GNU General Public License v2.0
4 stars 0 forks source link

Add useful stack information to TruncationWarning #241

Closed mundya closed 8 years ago

mundya commented 8 years ago

Modifies the stacklevel used when raising a TruncationWarning so that the code calling the read/write is indicated rather than the location where the warning is raised. A stacklevel of 3 is used as the read/write methods are called from within closures.