Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment:

Sadly, marshal.load() looks broken:

- The function starts with the comment
    /* XXX Quick hack -- need to do this differently */

- It starts by calling f.read() which consumes the whole file (and explains the 
issue reported here)

- The code was probably converted too quickly:
    if (PyBytes_Check(data)) {
          ...
    else if (PyBytes_Check(data)) {

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12291>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to