Compiling C99 extensions

2005-01-04 Thread dayzman
Hi, I'm running Windows and Python 2.4 (binary). I've been trying to compile this module with extensions that incorporate some C99 extensions (e.g. designated initialisers). I haven't had much luck with MSVC++ Toolkit 2003, because it doesn't support C99. Is there any other way I can get the modul

Using ICL to compile C extensions

2005-01-03 Thread dayzman
Hi, Does anyone know how I can use "icl" (Intel C++) to compile C extensions? I'm on Windows, and my Python is compiled using VS7.1 (binary distribution). Right now, when I run setup.py install, it uses cl.exe (MSVC++ Toolkit 2003), and I would like to use icl because MSVC++ 2003 does not support

Compiling Python 2.3

2005-01-02 Thread dayzman
Hi, I'm trying to use MSVC++ Toolkit 2003 to compile 2.3. Does anyone know which is the file to compile first? I don't have VS, so I can't load up the project file in PCbuild. I've tried compiling PC/config.c, but python23.lib isn't created so I'm sure I'm missing something. Any help will be much

effbot TidyHTMLTreeBuilder problem

2004-12-22 Thread dayzman
Hi all, I'm using TidyHTMLTreeBuilder to model syntax structure of HTML documents. I've been trying to feed in Yahoo and CNN, but the parser seems to crash: " File "C:\Python23\Lib\site-packages\elementtidy\TidyHTMLTreeBuilder.py", line 89, in parse return ElementTree.parse(source, TreeBuilder()

effbot ElementTree question

2004-12-14 Thread dayzman
Hi, Is anyone here familiar with ElementTree by effbot? With hello how is "hello" stored in the element tree? Which node is it under? Similarly, with: foo blah bar, how is bar stored? Which node is it in? Cheers, Ming -- http://mail.python.org/mailman/listinfo/python-list

ElementTree and XPATH

2004-12-08 Thread dayzman
Hi, I'm using ElementTree from effbot (http://effbot.org/zone/element.htm) and I'm having some problems finding nodes that have the same name. I know in XPATH, we can use an index to identify which node we need, but it seems to be invalid syntax if I give "/a/b[0]" to the findall() method. Does an

HTML Structure Extraction

2004-12-07 Thread dayzman
Hi, I'm going to write a program that extracts the structure of HTML documents. The structure would be in the form of a tree, separating the tags and grouping the start and end tags. I think I will use htmllib.HTMLParser, is it appropriate for my application? If so, I believe I will need to keep t