unexpected behaviour for python regexp: caret symbol almost useless?
conan
conanelbarbaro at gmail.com
Mon May 29 10:32:29 EDT 2006
Thank you Paul.
Since the only thing i'm doing is extracting this fields, and have no
plans to include other stuff, a regexp is fine. However i will take
into account 'pyparsing' when i need to do more complex parsing.
As you can see in the example i send, i was trying to get info from a
glade file, in particular i was tired of doing this everytime i need to
access a widget:
some_var = xml.get_widget('some_id')
(doing this is tiresome when you have more than 10 widgets)
So i do a little module to have all widgets instanciated as attributes
of the object, for anyone interested it is on:
http://www.lugmen.org.ar/~p10n/sources/conan/utilidades/GetWidgets.py
However is still pretty unmature, since it lacks some checks.
More information about the Python-list
mailing list