[Tutor] Avoiding repetetive pattern match in re module

2006-01-05 Thread Intercodes
was : " "Instead of writing a new 'for,if' loop to filter the repetetive tags from the list, is there something that I can add in the re itself to match the pattern only once? Thank You-- Intercodes ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Python RE uses DFA or NFA for string check?

2006-01-10 Thread Intercodes
r DFA?-- Intercodes ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python RE uses DFA or NFA for string check?

2006-01-10 Thread Intercodes
Thanks Mr.Tim. That was helpful :)On 1/10/06, Tim Peters <[EMAIL PROTECTED]> wrote: [Intercodes]> This question is just out of curiosity. I am working with this dragon book.> From what I have learnt so far, RE uses either NFA or DFA to check whether> the string is accepted or not

[Tutor] How does [::-1] work?

2006-01-18 Thread Intercodes
what meaning does it have in using two colons inside array index while slicing?. A concise explanation would suppress my curiosity. Thank You.-- Intercodes ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] How does [::-1] work?

2006-01-18 Thread Intercodes
John,>Basically, the syntax is [start:stop:step] I have read some 2 or 3 introductory tutorials on python and have never found this syntax or maybe I forgot to note this one. This one seems certainly useful in some cases. > HTH!yes, it does.!-- Inte

[Tutor] mod_python and other web frameworks

2006-01-25 Thread Intercodes
to create a blog , will mod_python suffice? And is mod_python and cgi (the python lib) different? -- Intercodes ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] mod_python and other web frameworks

2006-01-25 Thread Intercodes
ly i take a look at migthy( http://www.myghty.org/index.myt), it's a very cooltemplating framework. And you can use it withmod_python.Have a nice day ...-- Intercodes ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] mod_python and other web frameworks

2006-01-25 Thread Intercodes
e/index.htm that I've been playingwith. Normally it works. ;)Django is also worth having a look at, but it's a bit sharper to learn The Turbogears Google group is really supportive, by the way.-- Intercodes ___ Tutor maillist - Tutor@python.org h

Re: [Tutor] mod_python and other web frameworks

2006-01-25 Thread Intercodes
Thanks for the input guys. I think ill go with Quixotemod_pythonpostgresXHTMLIll let you know if I have done something useful with the above four :DTYIntercodes >If you're looking to do some Python coding to put your site together,>you might take a gander at Quixote>(http://www.mems-exchange.org/so

Re: [Tutor] mod_python and other web frameworks

2006-01-26 Thread Intercodes
is list suggested. I would take a look at cherrypy if quixote is too deep for me.Thanks for your time and the example. I believe your website is written completely in cherrypy. Working on so many projects ,nice work. Intercodes# simple exampleimport cherrypyimport time class MySection(object):@ch

[Tutor] smtplib with yahoo smtp server

2006-01-31 Thread Intercodes
mtpserver) if AUTHREQUIRED: session.login(smtpuser, smtppass) smtpresult = session.sendmail(SENDER, RECIPIENTS, mssg)-- Intercodes ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] smtplib with yahoo smtp server

2006-02-01 Thread Intercodes
nswer:smtp.mail.yahoo.com canonical name = smtp.plus.mail.yahoo.com.smtp.plus.mail.yahoo.com    canonical name = smtp.plus.mail.yahoo4.akadns.net .Name:   smtp.plus.mail.yahoo4.akadns.netAddress: 216.136.173.18 - Thank you,--Intercodes

Re: [Tutor] smtplib with yahoo smtp server

2006-02-01 Thread Intercodes
--- >Is "linux" a valid hostname?>Does "ping linux" succeed. I suppose not.linux:/srv/ # ping linuxping: unknown host linux-- -- Intercodes ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] smtplib with yahoo smtp server

2006-02-01 Thread Intercodes
their own/isp smtp server. None for connecting to yahoo/gmail/hotmail or other servers using authentication. But anyway, ill try hotmail next. (If I can't get this smtp to work, I have to manually send mails to users :p, disastrous. ) Thanks for