xml.dom.minidom.parseString segmentation fault on mod_python

2007-01-26 Thread qertoip
Python 2.4.4 mod_python 3.2.10 + Apache 2.0 def index( req, **params ): from xml.dom.minidom import parseString doc = parseString( "whatever" ) => blank screen, _no_any_exception_; Apache error_log: [Fri Jan 26 10:18:48 2007] [notice] child pid 17596 exit signal Segmentation fault (11)

Re: Suggest more finesse, please. I/O and sequences.

2005-03-26 Thread Qertoip
Dnia Fri, 25 Mar 2005 21:09:41 -0500, Peter Hansen napisał(a): Thanks for comments! :) > Qertoip wrote: >> Good friend of mine heard about my attempt to create compact, simple Python >> script and authored the following PHP script: > [snip 7-line PHP script] >&g

Re: Suggest more finesse, please. I/O and sequences.

2005-03-25 Thread Qertoip
Dnia Fri, 25 Mar 2005 19:17:30 +0100, Qertoip napisał(a): > Would you like to suggest me any improvements for the following code? > I want to make my implementation as simple, as Python - native, as fine as > possible. > I've written simple code, which reads input text file

Re: Suggest more finesse, please. I/O and sequences.

2005-03-25 Thread Qertoip
Dnia Fri, 25 Mar 2005 12:51:59 -0800, Scott David Daniels napisał(a): Thanks for your reply! It was really enlightening. > How about: > for line in inFile: > for word in line.split(): > try: > corpus[word] += 1 > except KeyError: >

Suggest more finesse, please. I/O and sequences.

2005-03-25 Thread Qertoip
Would you like to suggest me any improvements for the following code? I want to make my implementation as simple, as Python - native, as fine as possible. I've written simple code, which reads input text file and creates words' ranking by number of appearence. Code: --