Migrating code from python 2.6 to python 3

Hi,

I recently bought the gray hat python book and am very much satisfied for the money paid.However I have a quick question regarding the code. The codes in debugger design chapter runs fine on python 2.6 but when it is migrated to python 3 with appropriate required syntax change, fails . And it cannot hook to the printf statement (example described in the chapter) and displays Null in the address of the printf statement.
Can anybody help with this.

Thanking you in advance

 You can find the code here http://nostarch.com/ghpython.htm




Leave comments

authimage
  • Migrating from 2 to 3 is not trivial. Anyone who thinks 2to3 tool will do it, never tried it on large codebase.

    • Joe G.

Copyright(c) 2017 - PythonBlogs.com
By using this website, you signify your acceptance of Terms and Conditions and Privacy Policy
All rights reserved