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 appreciated.

Cheers,
Michael

-- 
http://mail.python.org/mailman/listinfo/python-list


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 C99.
Any help will be much appreciated.

Cheers,
Michael

-- 
http://mail.python.org/mailman/listinfo/python-list


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 module installed and the extension compiled without
the need to compile Python? I heard that Intel C++ has the same ABI as
VS7.1, can I use it to comple the extension separately? If so, could
someone briefly explain how, because I keep getting the error
"python24.lib cannot be open" or similar error.
Any help will be much appreciated.

Cheers,
Michael

-- 
http://mail.python.org/mailman/listinfo/python-list


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 track of the depth reached.

Any tips for such application will be much appreciated.

Cheers,
Michael

-- 
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 anyone know the correct syntax?
Any help will be much appreciated.

Cheers,
Michael

-- 
http://mail.python.org/mailman/listinfo/python-list


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


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())
File "C:\Python23\lib\site-packages\elementtree\ElementTree.py", line
865, in parse
tree.parse(source, parser)
File "C:\Python23\lib\site-packages\elementtree\ElementTree.py", line
590, in parse
self._root = parser.close()
File
"C:\Python23\Lib\site-packages\elementtidy\TidyHTMLTreeBuilder.py",
line 75, in close
return ElementTree.XML(stdout)
File "C:\Python23\lib\site-packages\elementtree\ElementTree.py", line
879, in XML
return parser.close()
File "C:\Python23\lib\site-packages\elementtree\ElementTree.py", line
1169, in close
self._parser.Parse("", 1) # end of data
ExpatError: no element found: line 1, column 0"

Could someone else please try it on their system and see if they also
have the same problem? I suspect this problem relates to  inside
.

Thank you very much for any help.

Cheers,
Michael

-- 
http://mail.python.org/mailman/listinfo/python-list