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)
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]
...which has the same functionality
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:
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:
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 and creates words