Yet Another Configuration Parser Module

2010-05-26 Thread christian schulze
Hey folks, I've written a small configuration parser for a recent project. I think it's pretty usefull and not that "fat" or "complex" as the regular python configuration modules like ConfigParser. The file contains everything you need to know. http://crac.pcriot.com/dl/config.py If you have any

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Jo Chan
I want to say I just have to deal with some regular text input (the input file is as XML format) so I need to read all the nodes out and get what they are. Thanks for your great help though. I should have made my point clearer. :) On Thu, Apr 15, 2010 at 6:52 PM, Stefan Behnel wrote: > Jo Chan,

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Jo Chan
On Thu, Apr 15, 2010 at 6:52 PM, Stefan Behnel wrote: > Jo Chan, 15.04.2010 10:52: > > I just want to get the content from a XML. > > That's not a very specific description of what you want to do. What's "the > content"? The plain text content? Or do you care about the structure? And > what parts

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Stefan Behnel
Jo Chan, 15.04.2010 10:52: > I just want to get the content from a XML. That's not a very specific description of what you want to do. What's "the content"? The plain text content? Or do you care about the structure? And what parts of the structure? > I learn that there are two > modules in pyth

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Stefan Behnel
that BeautifulSoup is a suitable tool to parse XML, and even presenting it under the headline of "the most popular xml parser module" is clearly misleading. For most tasks that involve XML as input, BeautifulSoup is not the right tool. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Shashwat Anand
BeatifulSoup can be used as one IMO On Thu, Apr 15, 2010 at 3:50 PM, Stefan Behnel wrote: > Shashwat Anand, 15.04.2010 11:55: > > BeautifulSoup > > The OP asked for an XML parser. > > Stefan > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinf

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Stefan Behnel
Shashwat Anand, 15.04.2010 11:55: > BeautifulSoup The OP asked for an XML parser. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Shashwat Anand
BeautifulSoup On Thu, Apr 15, 2010 at 1:39 PM, Stefan Behnel wrote: > Jo Chan, 14.04.2010 15:28: > > Hi, everyone~~~ I am new. >> What is the most popular xml parser module used on python? Thanks for >> answering... >> > > Why do you want to know? Just out of

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Stefan Behnel
Jo Chan, 14.04.2010 15:28: Hi, everyone~~~ I am new. What is the most popular xml parser module used on python? Thanks for answering... Why do you want to know? Just out of curiosity, or are you looking for a tool that you can use to get a specific job done? If it's the latter, you may

Hi,Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Jo Chan
Hi, everyone~~~ I am new. What is the most popular xml parser module used on python? Thanks for answering... -- -- Best Regards 陈松坚 信息科学与技术学院 中山大学 广州大学城 510006 Chen Songjian School of Information Science & Technology Sun Yat-sen(Zhongshan) University, Guangzhou Higher Educa

Re: parser module and doc

2009-03-20 Thread Steven D'Aprano
On Fri, 20 Mar 2009 01:19:38 -0700, Mark Dickinson wrote: > On Mar 20, 7:26 am, Steven D'Aprano cybersource.com.au> wrote: >> "All source files mentioned here which are not part of the Python >> installation are located in the Demo/parser/ directory of the >> distribution." >> >> http://docs.pyth

Re: parser module and doc

2009-03-20 Thread Mark Dickinson
On Mar 20, 7:26 am, Steven D'Aprano wrote: > "All source files mentioned here which are not part of the Python > installation are located in the Demo/parser/ directory of the > distribution." > > http://docs.python.org/library/parser.html#information-discovery > > What distribution? What does this

parser module and doc

2009-03-20 Thread Steven D'Aprano
I'm reading the docs for the parser module and I'm confused. http://docs.python.org/library/parser.html The doc make a number of references to the file "example.py", and says: "All source files mentioned here which are not part of the Python installation are l

Parser Module

2008-09-28 Thread aditya shukla
arse tree be constructed?And what parser module should i use? Aditya -- http://mail.python.org/mailman/listinfo/python-list

Parser module

2007-02-03 Thread Sulsa
Is there some way to tell parser module (parser.suite function) not to stop parsing after it have found some syntax error but to proceed with parsing and construct the abstract syntax tree for rest of the code. -- http://mail.python.org/mailman/listinfo/python-list

Re: Config parser module

2005-09-27 Thread qqcq6s59
5701570256930.0 > > > > CQUAD4 7233 2156935702570356940.0 > > > > the data file is very complex if i consider all complexities) > > > > Is is possible to use config parser module insome way for this. I also > > have few perl

Re: Config parser module

2005-09-24 Thread Paul McGuire
gt; > CQUAD4 7233 2156935702570356940.0 > > the data file is very complex if i consider all complexities) > > Is is possible to use config parser module insome way for this. I also > have few perl parser (for some part for some particular tasks) and now >

Re: Config parser module

2005-09-23 Thread qqcq6s59
Thanks a lot for Dale and Larry, I have not tried the OOP way yet like you mentioned, I will try to create a parser soon, maybe I will post it in the net after that, it may be useful to others too, Thanks again -Jiro -- http://mail.python.org/mailman/listinfo/python-list

Re: Config parser module

2005-09-23 Thread Larry Bates
356940.0 > > the data file is very complex if i consider all complexities) > > Is is possible to use config parser module insome way for this. I also > have few perl parser (for some part for some particular tasks) and now > changing them to python. (I feel perl regex combination

Re: Config parser module

2005-09-23 Thread Dale Strickland-Clark
The Config Parser module is for extracting data from and writing to a specific format of file, generally known as a config file. As explained in the documentation, a config file is in the same format as .ini files frequently found on windows - especially used by older software. It is a very handy

Config parser module

2005-09-23 Thread qqcq6s59
) CQUAD4 7231 2156915700570156920.0 CQUAD4 7232 2156925701570256930.0 CQUAD4 7233 2156935702570356940.0 the data file is very complex if i consider all complexities) Is is possible to use config parser module insome way for