[wxPython-users] Re: process stream CanRead() segfaults

Chris Spencer cspencer at cinci.rr.com
Mon Sep 4 17:13:01 PDT 2006


If something in wxPython returns a wxString, then that is a bug.
EVERYTHING that returns a string in wxPython should return a Python
string.  I would submit a bug report to Robin.

Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris at roxx.biz

On Tue, 05 Sep 2006 08:47:37 +1000, Brendan Simon
<Brendan at BrendanSimon.com> wrote:

>As mentioned below, the command "bash -c 'for i in $(seq 10) ; do ls -l 
>/tmp ; sleep 1 ; done'" seems to work, HOWEVER it DOES segfault at the end.
>
>I'm wondering if it is some kind of string termination problem with 
>python strings versus wxString.
>
>The wxpython-demo works, but it uses a wxTextControl to return the 
>command, and the returned object is a wxString not a python string.
>
>How do I convert a python string into a wxString?
>Does wxString exist in wxPython ???
>I shouldn't need to use wxString, right??
>
>BTW, it segfaults on the following systems.
>	wxPython-2.6.3.2.1.5 on Debian Testing(Etch) using gtk2.
>	wxPython-2.4.3.1 on Debian Stable(Sarge) using gtk1.
>
>Brendan.




More information about the wxpython-users mailing list