[Python-Dev] installing python 2.7.9 on a Mac

2015-02-06 Thread Laura Creighton
webmaster just got mail from a novice who is trying to learn Python in an introductory class. She got a "The version of Tcl/Tk (8.5.7) in use may be unstable" message. I think that the download page should have a link. If you get download and install . Any reason we cannot do that? Laura

Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-06 Thread Francis Giraldeau
2015-02-06 6:04 GMT-05:00 Armin Rigo : > Hi, > > On 6 February 2015 at 08:24, Maciej Fijalkowski wrote: > > I don't think it's safe to assume f_code is properly filled by the > > time you might read it, depending a bit where you find the frame > > object. Are you sure it's not full of garbage?

[Python-Dev] Summary of Python tracker Issues

2015-02-06 Thread Python tracker
ACTIVITY SUMMARY (2015-01-30 - 2015-02-06) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open4765 ( +1) closed 30398 (+47) total 35163 (+48) Open issues wit

Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-06 Thread Armin Rigo
Hi, On 6 February 2015 at 08:24, Maciej Fijalkowski wrote: > I don't think it's safe to assume f_code is properly filled by the > time you might read it, depending a bit where you find the frame > object. Are you sure it's not full of garbage? Yes, before discussing how to do the utf8 decoding,

Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-06 Thread M.-A. Lemburg
On 06.02.2015 00:27, Francis Giraldeau wrote: > I need to access frame members from within a signal handler for tracing > purpose. My first attempt to access co_filename was like this (omitting > error checking): > > PyFrameObject *frame = PyEval_GetFrame(); > PyObject *ob = PyUnicode_AsUTF8Strin

Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-06 Thread Victor Stinner
Hi, 2015-02-06 0:27 GMT+01:00 Francis Giraldeau : > I need to access frame members from within a signal handler for tracing > purpose. IMO you have a big technical or design issue here. Accessing Python internals in a signal handler is not reliable. A signal can occur anytime, between two instruc