This is the mail archive of the gdb-prs@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]

[Bug corefiles/15810] gdb 7.3.1/7.5 unlinks and creates .pyc-files in non-user directories


http://sourceware.org/bugzilla/show_bug.cgi?id=15810

--- Comment #4 from Stefan <kdevel at vogtner dot de> ---
(In reply to Tom Tromey from comment #3)
> My point is that this is a generic problem with Python.

I doubt that python considers its own documented behavior [1] as problem. The
problem stems from the integration of python into gdb.

> I don't think any of your proposed solutions are realistic.

This fixes the issue:

gdb/python/python.c:
   1230   setenv ("PYTHONDONTWRITEBYTECODE", "1", 1);
   1231   Py_Initialize ();
   1232   PyEval_InitThreads ();

[1] http://docs.python.org/2/tutorial/modules.html#compiled-python-files

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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