Re: Python + Newspipe

2004-12-10 Thread Dave Kuhlman
pipe.py on line 895 in function/method LeerConfig. 3. It's looking for a section named "NewsPipe" in your options/config file. Check your config file. Is that section name misspelled? Is the section missing? Does the NewsPipe documentation tell you where the config f

ANN: generateDS.py 8a available

2004-12-22 Thread Dave Kuhlman
write the instance (and any nested sub-instances) to a file object as XML text. - An "exportLiteral" method that will write the instance (and any nested sub-instances) to a file object as Python literals (text). Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and C++

2006-07-25 Thread Dave Kuhlman
KraftDiner wrote: > What ways can I call my C++ classes from within Python. > I've looked at boost but it would appear that there is little > support or knowledge on boost in the python community. If you want to write Python wrappers for C++ code *by hand*, look here: http://docs.python.org/

Where are the source files for the Python FAQs?

2006-09-06 Thread Dave Kuhlman
I've recently implemented an output writer for Docutils that produces .odt/ODF files for oowriter from reST (restructured text). I'd like to feed the Python FAQs through my odtwriter, to find out how well it does at formatting. But, I can't find the source. Can someone tell me the location of th

Recommended version of gcc for Python?

2005-05-16 Thread Dave Kuhlman
Is there a recommended version of gcc that I should be using to compile Python? I've compiled Python 2.4 with gcc 3.3.4 on Ubuntu Debian GNU/Linux. However, I notice that gcc 3.5 and gcc 4.0 are available for installation. Dave -- http://www.rexx.com/~dkuhlman -- http://mail.python.org/mailm

Re: Recommended version of gcc for Python?

2005-05-16 Thread Dave Kuhlman
[EMAIL PROTECTED] wrote: > On Ubuntu, I have tried 3.3.4, 3.4.3 and 4.0. Compile and make > test ran successfully with all three. For my benchmark, platform, > and compiler options, 3.4.3 was the fastest by approximately 2%. > > I would normally use the default compiler for your distribution. >

Re: Zip File Woes

2007-06-27 Thread Dave Kuhlman
Jerry Hill wrote: > On 6/27/07, Robert Rawlins - Think Blue > <[EMAIL PROTECTED]> wrote: >> zip = zipfile.ZipFile('Media/Media.zip', 'r') > > Shouldn't you open this file in binary mode? It shouldn't make > any difference on unix machines, but will possibly break under > windows. T

Re: Can't get compiled jython to work...

2007-12-14 Thread Dave Kuhlman
module must obey a few rules: (1) It must be contain one class whose name is the same as the module name. (2) That class must inherit from some Java class. 2. If you have not already found it, see this page for more information: http://www.jython.org/docs/jythonc.html 3. jythonc is d

FAQ for XML with Python

2006-05-19 Thread Dave Kuhlman
For those who are beginners to using Python to process XML, I've recently updated my Python XML FAQ (PyXMLFaq). It has a number of code samples that may help you get started. You can find it here: http://www.rexx.com/~dkuhlman/pyxmlfaq.html Comments and suggestions will be appreciated. Dav

Re: FAQ for XML with Python

2006-05-23 Thread Dave Kuhlman
Sybren Stuvel wrote: > Dave Kuhlman enlightened us with: >> For those who are beginners to using Python to process XML, I've >> recently updated my Python XML FAQ (PyXMLFaq). It has a number >> of code samples that may help you get started. > > You might want

getattr(foo, 'foobar') not the same as foo.foobar?

2008-03-13 Thread Dave Kuhlman
and getattr(). Can someone help me make sense of this? I'm using Python 2.5.2. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman -- http://mail.python.org/mailman/listinfo/python-list

Re: getattr(foo, 'foobar') not the same as foo.foobar?

2008-03-13 Thread Dave Kuhlman
ime, no? yes? I'm still confused. - Dave > > -- > Arnaud -- Dave Kuhlman http://www.rexx.com/~dkuhlman -- http://mail.python.org/mailman/listinfo/python-list