Diez B. Roggisch wrote:
> Kirt wrote:
>
> >
> > jimburton wrote:
> >> Kirt wrote:
> >> > Hi! I need some help in file I/O
> >> >
> >> > I have an xml file..
> >> [snip]
> >> See http://diveintopython.org/xml_pro
OK, so I'm trying to collect the tests with python and add them to the
test suite dynamically, but I have a problem with module names. Here's
what I've got:
#
import os
from os.path import join
import unittest
alltests = unittest.TestSuite()
def mightBeATest(f):
#TODO
Kirt wrote:
> i dont wanna parse the xml file..
>
> Just open the file as:
>
> f=open('test.xml','a')
>
> and append a line "abc" before tag
Use a regex to split the contents and insert new stuff, eg
import re
prog = prog = re.compile('^(.*)()', re.DOTALL)
m = prog.search(f.read())
then m.gro
Kirt wrote:
> Hi! I need some help in file I/O
>
> I have an xml file..
[snip]
See http://diveintopython.org/xml_processing/
--
http://mail.python.org/mailman/listinfo/python-list
I have a number of unit tests organised hierarchically, all of which
inherit fixtures from a base class. To run these all at once I started
out using
from basic import map, directionalpan, layerorder, layervisibility,
listlayers, streamlayerlist
# ... lots more ...
suite0 =
unittest.TestLoader().
Diez B. Roggisch wrote:
> jimburton schrieb:
> > Hi, I'm using python 2.3.5 and want to use distutils to distribute a
> > module that depends on another - is there any way to specify that?
>
> Use setuptools. It can do such a thing.
>
> Diez
Many thanks.
--
Hi, I'm using python 2.3.5 and want to use distutils to distribute a
module that depends on another - is there any way to specify that?
Something like:
setup(name='aimspy',
...
requires = { 'jpype': '*'},
)
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
The Zope book is a good starting point -
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/view
--
http://mail.python.org/mailman/listinfo/python-list
Hi, I'm using python 2.4, DB2 8.1 (with development libraries) on
ubuntu linux 5.10. I installed PyDB2 1.1 but when I try to connect to
any database I've got this:
>>> import DB2
>>> conn = DB2.connect(dsn='sample', uid='db2inst1', pwd='secret')
Traceback (most recent call last):
File "", line 1