hichamjanati / pyldpc

Creation of LDPC codes & simulation of coding and decoding binary data. Applications to sound and image files.
BSD 3-Clause "New" or "Revised" License
121 stars 34 forks source link

Changed shallow list copy to equivalent compatible with Python 2 #1

Closed gvrooyen closed 7 years ago

gvrooyen commented 8 years ago

The LDPC coding and decoding is perfectly compatible with Python 2.7, except in a few places where it uses the new Python 3-style .copy() method for lists (which is equivalent to the [:] slice notation for lists).

The change keeps the module compatible with both Python 2.7 and 3.