This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] python: Make Windows-specific code work with Python 3


>>>>> "Jan" == Jan Vrany <jan.vrany@fit.cvut.cz> writes:

Jan> Windows workaround in python_run_simple_file() used Python 2
Jan> APIs which were removed in Python 3. This commit adds a
Jan> conditionally compiled variant that uses Python 3 APIs.

Jan> +# ifdef IS_PY3K
Jan> +  FILE *python_file = _Py_fopen (full_path.get (), (char *) "r");

I'm a bit reluctant to rely on an undocumented API.
I'd guess from the name that this is supposed to be internal...?

Also, nothing closes this new file.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]