Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-05 Thread Maciej Fijalkowski
Hi Francis 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? Besides, are you writing a profiler, or what exactly are you doing? On Fri, Feb 6, 2015 at 1:27 AM, Franci

Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-05 Thread Gregory P. Smith
On Thu Feb 05 2015 at 4:36:30 PM Francis Giraldeau < francis.girald...@gmail.com> 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_GetFram

Re: [Python-Dev] Azure event hub network access

2015-02-05 Thread Steve Dower
This would be much better posted on the github page for the project. I don't have the URL handy, but if you search github for "Python Azure SDK" you'll find it. Cheers, Steve Sent from my Windows Phone From: syed khalid Sent: ‎2/‎5/

[Python-Dev] Azure event hub network access

2015-02-05 Thread syed khalid
I am getting http error 404. I am able to access the site via telnet which eliminates network issues. Here is the code and subsequent errors user/bin/python import sys import azure import socket from azure.servicebus import ( _service_bus_error_handler ) from azure.servicebus.servicebusser

Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-05 Thread Chris Angelico
On Fri, Feb 6, 2015 at 10:27 AM, Francis Giraldeau wrote: > Instead, I access members directly: > char *str = PyUnicode_DATA(frame->f_code->co_filename); > size_t len = PyUnicode_GET_DATA_SIZE(frame->f_code->co_filename); > > Is it safe to assume that unicode objects co_filename and co_name are al

[Python-Dev] Encoding of PyFrameObject members

2015-02-05 Thread Francis Giraldeau
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_AsUTF8String(frame->f_code->co_filename) char *str = PyBytes_AsString

Re: [Python-Dev] Import Fails in setup.py On Android

2015-02-05 Thread Cyd Haselton
While I'm waiting for a response from mobile-sig, I'm going through the documentation (and something called "fossies") of importlib. I hope that it's okay to ask some follow up questions...even though I've redirected this post to mobile-sig. If it is, my first question(s) is/are about the import

Re: [Python-Dev] Hi, I am new to this board and have a question

2015-02-05 Thread Bohuslav Kabrda
- Original Message - > Hi Everyone, > I am a core software engineer at Rocket Software Inc. I am working on > database system called UniData and Universe. > Now we plan to introduce Python as the new programming language to our > customer. When I try to build the python 3.4.1 on Red Hat

Re: [Python-Dev] Hi, I am new to this board and have a question

2015-02-05 Thread Nick Coghlan
On 5 February 2015 at 12:26, Alexander Belopolsky wrote: > > On Wed, Feb 4, 2015 at 6:18 PM, Jianhua Zhou > wrote: >> >> The necessary bits to build these optional modules were not found: >> _bz2 _lzma _ssl >> _tkinter zlib >> So what package name sho