Can Python manipulate PE structure or bytes?

Gabriel Genellina gagsl-py2 at
Mon Jan 19 00:36:20 CET 2009

En Sun, 18 Jan 2009 20:18:13 -0200, <seaworthyjeremy at> escribió:

> I'm interested in Python and wanted to know if Python can manipulate
> PE structure and bytes. Also what are its limits?

If you're talking about the "Portable Executable" file format, yes. Take a  
look at the struct module, or ctypes.Struct, but try Google first...

Gabriel Genellina

More information about the Python-list mailing list