Re: include a file in a python program

2010-09-06 Thread Niklasro(.appspot)
On Sep 5, 10:57 pm, bussiere bussiere wrote: > i've got a python.txt that contain python and it must stay as it (python.txt) > > how can i include it in my program ? > import python.txt doesn't work > is there a way : > a) to make an include("python.txt") > b) tell him to treat .txt as .py file th

Re: Combining 2 regexes to 1

2010-08-29 Thread Niklasro(.appspot)
Many thanks. It works. You also helped me refactor these ('/([0-9]*)/?([^/]*)',AById),#id2a ('/([0-9]*)',AById) to just 1 ('/([0-9]*)/?([^/]*)',AById),#id2a It's from the appspot framework. Sincerely Niklas R -- http://mail.python.org/mailman/listinfo/python-list

Combining 2 regexes to 1

2010-08-29 Thread Niklasro(.appspot)
Hello, Suspecting it's completely doable combining these 2 regexes to just 1 expression I'm looking for the working syntax. If you know then kindly inform. Thanks in advance ('/a/([^/]*)',List), #list ('/a([^/]*)',List), #list Niklas Rosencrantz -- http://mail.python.org/mailman/listinfo/python-li