Re: which parser to use

2005-02-22 Thread Jean Brouwers
Check out SimpleParse/mxTextTools. Just an outstanding E/BNF driven parser, very highly recommended. <http://simpleparse.sourceforge.net/> /Jean Brouwers PS) See also <http://www-128.ibm.com/developerworks/linux/library/l-simple.html> <http://gnosis.cx/publ

Re: popen2, 3, 4 -- will closing all returned streams result in process termination?

2004-12-28 Thread Jean Brouwers
ich is the file .../Lib/popen2.py in your python installation. It is straightforward to create your own popen* functions and keep the Popen3 instance. /Jean Brouwers In article <[EMAIL PROTECTED]>, Evgeni Sergeev <[EMAIL PROTECTED]> wrote: > After I opened streams to a proces

Re: how to start a new process while the other ist running on

2004-12-21 Thread Jean Brouwers
See the os. spawn* functions. For example os.spawnv(os.P_NOWAIT, /path/to/script, args) /Jean Brouwers In article <[EMAIL PROTECTED]>, Erik Geiger <[EMAIL PROTECTED]> wrote: > Hi, > > sorry, my english ist not that got but I'll try. > > I have a

Re: memory leak

2004-12-21 Thread Jean Brouwers
setting the limit does not help finding the root cause of a leak. That requires additional effort and/or dignostic tools. /Jean Brouwers In article <[EMAIL PROTECTED]>, Daniel Wheeler <[EMAIL PROTECTED]> wrote: > I'm on a linux platform and looking in proc/pid/status. Using t

Re: extending python with a C-written dll

2004-12-20 Thread Jean Brouwers
he Win32 API extension <http://www.python.org/windows/win32/> /Jean Brouwers In article <[EMAIL PROTECTED]>, Jean-Baptiste PERIN <[EMAIL PROTECTED]> wrote: > Grant Edwards a écrit : > > On 2004-12-20, Jean-Baptiste PERIN <[EMAIL PROTECTED]> wrote: > >

Re: Best book on Python?

2004-12-16 Thread Jean Brouwers
The text of David Mertz' book is available on line at <http://gnosis.cx/TPiP/> /jean Brouwers In article <[EMAIL PROTECTED]>, Mirko Zeibig <[EMAIL PROTECTED]> wrote: > Maurice LING said the following on 12/12/2004 11:13 PM: > >>Google for Dive Into Python.

Re: Adding paths to sys.path permanently, and another problem...

2004-12-16 Thread Jean Brouwers
Maybe, set environment variable PYTHONPATH. More details at <http://www.python.org/doc/current/tut/node8.html> /Jean Brouwers In article <[EMAIL PROTECTED]>, Lenard Lindstrom <[EMAIL PROTECTED]> wrote: > Amir Dekel <[EMAIL PROTECTED]> writes: > > &

Re: Accessing DB2 with Python

2004-12-16 Thread Jean Brouwers
Try <ftp://people.linuxkorea.co.kr/pub/DB2> with capital DB. /Jean Brouwers In article <[EMAIL PROTECTED]>, Shawn Milo <[EMAIL PROTECTED]> wrote: > ftp://people.linuxkorea.co.kr/pub/db2, -- http://mail.python.org/mailman/listinfo/python-list

Re: flex/bison like module in Python?

2004-12-15 Thread Jean Brouwers
For command line parsing, take a look at the shlex module, also in the standard distro. It may fit your requirements for additional functionality beyond cmd. /Jean Brouwers PS) We use SimpleParse/mxTextTools for parsing large log files, both are listed on the web page mentioned below. In

Re: system requirements for python 2.4

2004-12-13 Thread Jean Brouwers
FWIIW, we use Python 2.4 on RH8 and FC2 systems. In both cases, built from scratch, following the build instructions. /Jean Brouwers In article <[EMAIL PROTECTED]>, ben <[EMAIL PROTECTED]> wrote: > I'm trying to upgrade python from 2.2 to 2.4 on a RH9 system, and can&#

Re: Why I can't launch python 2.4 final IDLE?

2004-12-07 Thread Jean Brouwers
This is the second time you ask the same question. Did you miss the answer to the first one? This is a known problem. More details at <http://sourceforge.net/tracker/index.php?func=detail&aid=1076861&group_ id=5470&atid=105470> /Jean Brouwers In article <[EMAIL PROTEC

Re: The python2.4 IDLE can't be lanuched.

2004-12-06 Thread Jean Brouwers
This is a known problem. More details at <http://sourceforge.net/tracker/index.php?func=detail&aid=1076861&group_ id=5470&atid=105470> /Jean Brouwers In article <[EMAIL PROTECTED]>, AnkyHe <[EMAIL PROTECTED]> wrote: > I downloaded the python 2.4 f

Re: pythonwin broke

2004-12-04 Thread Jean Brouwers
..." referenced memory at "0x0..014". The memory could not be "read". Click on OK to terminate the program. Same Window XP SP2 machine running Python 2.3.4 downloaded from the Python website (with just one extension, wxPython 2.4.2.4). /Jean Brouwers In article <[EMA

Re: pythonwin broke

2004-12-04 Thread Jean Brouwers
I'm not sure what Pythonwin is. The Python start menu shows "Python (command line)" and "IDLE (Python GUI)" plus docs, etc. Your experiment with IDLE works just fine. Both windows closed on clickin X. This is Windows XP SP2 with Python 2.3.4 from the Python.org si

Re: pythonwin broke

2004-12-03 Thread Jean Brouwers
extensions exist for 2.4 we will try again. And maybe, we should use the ActivePython builds then ;-) /Jean Brouwers PS) We had no problem with Python 2.4 or any extensions on Lunix. Everything works fine there and all our Python code runs unmodified on both 2.3 and 2.4 with extensions

Re: pythonwin broke

2004-12-03 Thread Jean Brouwers
Python related entries in the Registry and in the StartUp folder. Only after that did the reinstalled 2.3 plus extensions work fine again. /Jean Brouwers PS) We backed out of using Python 2.4 since two of the extensions we need did not work with 2.4 on Windows XP. PPS) It looks like Python 2.4 and

Re: Help with use of code.InteractiveInterpreter for multiline code

2004-12-03 Thread Jean Brouwers
calling the runsource() method, just call the push() method. /Jean Brouwers In article <[EMAIL PROTECTED]>, <"[EMAIL PROTECTED]"> wrote: > I'm trying to embed a Python interpreter in a GUI I'm developing, and > I'm having trouble understanding the

Re: Python 2.4 and Tkinter

2004-12-02 Thread Jean Brouwers
X11R6/lib64" option. If that still fails, try a fresh reconfigure and rebuild from scratch, now that the Tcl/Tk libs are there. Start with "./configure " per the instructions in the README file, run "make clean" etc.. /Jean Brouwers In article <[EMAIL PROTECTED]>

Re: Python 2.4 and Tkinter

2004-12-01 Thread Jean Brouwers
Brouwers In article <[EMAIL PROTECTED]>, Jeffrey Barish <[EMAIL PROTECTED]> wrote: > Jean Brouwers wrote: > > > > > FWIW, we just installed Python 2.4 (on RH Linx 8), rebuilt it from > > scratch and everything is fine. Tkinter is there, _tkinter as we

Re: Python 2.4 and Tkinter

2004-12-01 Thread Jean Brouwers
FWIW, we just installed Python 2.4 (on RH Linx 8), rebuilt it from scratch and everything is fine. Tkinter is there, _tkinter as well and idle comes up as expected. /Jean Brouwers In article <[EMAIL PROTECTED]>, Jeffrey Barish <[EMAIL PROTECTED]> wrote: > http://www.python.o

Re: Syntax for extracting multiple items from a dictionary

2004-12-01 Thread Jean Brouwers
The correct syntax is: dict([(key, row[key]) for key in cols]) i.e. the list must be enclosed in [...]. /Jean Brouwers In article <[EMAIL PROTECTED]>, Dave Merrill <[EMAIL PROTECTED]> wrote: > "anton muhin" wrote: > > Stefan Behnel wrote:

Re: using os

2004-11-29 Thread Jean Brouwers
Check the os.walk() and os.path.walk() functions. More details and some examples are at <http://docs.python.org/lib/os-file-dir.html> resp. <http://docs.python.org/lib/module-os.path.html> /Jean Brouwers In article <[EMAIL PROTECTED]>, Juliano Freitas <[EM

Re: wxStyledTextCtrl problem ?

2004-11-29 Thread Jean Brouwers
Here is the recent thread about this particular problem: <http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:mss:33225:200410:lfppnf okhnlgfialpfdh> /Jean Brouwers In article <[EMAIL PROTECTED]>, Jean Brouwers <[EMAIL PROTECTED]> wrote: > If you are r

Re: wxStyledTextCtrl problem ?

2004-11-29 Thread Jean Brouwers
If you are running GTK+ try using self.Editor.SetSTCFocus(True) in addition to or instead of SetFocus(). Plus maybe wx.CallAfter(self.Editor.EnsureCaretVisible) It solved the 'dissapearing caret' problem for our application. /Jean Brouwers In article <[EM