Re: smtplib not working as expected

2014-12-26 Thread Vincent Vande Vyvre
Le 27/12/2014 03:52, Juan Christian a écrit : On Fri Dec 26 2014 at 11:07:30 PM MRAB > wrote: According to the docs, if you let the port parameter default to 0, it'll use port 465. I tested with my ISP. Using port 465, it failed. Using the default, it succeed

Re: smtplib not working as expected

2014-12-26 Thread Juan Christian
On Fri Dec 26 2014 at 11:07:30 PM MRAB wrote: According to the docs, if you let the port parameter default to 0, it'll use port 465. I tested with my ISP. Using port 465, it failed. Using the default, it succeeded. So, I changed the code how you said, but still not working. Code: import smt

Re: smtplib not working as expected

2014-12-26 Thread MRAB
On 2014-12-27 00:39, Juan Christian wrote: I have the following test code: import smtplib fromaddr = 'mksfjnsfji4433j4...@bk.ru ' toaddrs = ['mksfjnsfji4433j4...@bk.ru '] msg = ("From: %s\r\nTo: %s\r\n\r\n" % (fromadd

smtplib not working as expected

2014-12-26 Thread Juan Christian
I have the following test code: import smtplib fromaddr = 'mksfjnsfji4433j4...@bk.ru' toaddrs = ['mksfjnsfji4433j4...@bk.ru'] msg = ("From: %s\r\nTo: %s\r\n\r\n" % (fromaddr, ", ".join(toaddrs))) msg = msg + 'test' print("Message length is " + repr(len(msg))) server = smtplib.SMTP('sm

Re: learning to use iterators

2014-12-26 Thread Seb
Hi again, Thanks for your input; I'm starting to use generators to some extent. Say we have a series of numbers: x = randn(100) and values beyond some criteria should be considered as outliers, but only where there's at most 3 (or some other integer) consecutive values beyond the criteria. The

Re: suggestions for VIN parsing

2014-12-26 Thread Denis McMahon
On Thu, 25 Dec 2014 17:02:33 -0700, Vincent Davis wrote: > I would like to parse the VIN, frame and engine numbers found on this > page (below). First of all you need to define the number of different patterns that are possible: eg: H + 3-5 digits -> twins Unit 350cc & 500cc '57 - '69 3 (or m

Re: Future of python on android

2014-12-26 Thread Fetchinson .
On 12/26/14, iMath wrote: > 在 2014年12月25日星期四UTC+8下午11时31分24秒,Fetchinson .写道: >> Hi all, >> >> I was using sl4a for quite some time on android and it basically >> worked very well although some features are missing. It looks like >> sl4a is dead, although I could be wrong. Does anyone knowledgeable

Re: Future of python on android

2014-12-26 Thread iMath
在 2014年12月25日星期四UTC+8下午11时31分24秒,Fetchinson .写道: > Hi all, > > I was using sl4a for quite some time on android and it basically > worked very well although some features are missing. It looks like > sl4a is dead, although I could be wrong. Does anyone knowledgeable > have any further info on the f

ANN: PyQt v5.4 Released

2014-12-26 Thread Phil Thompson
PyQt5 v5.4 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of Digia's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include support

Re: Future of python on android

2014-12-26 Thread Chris Angelico
On Fri, Dec 26, 2014 at 8:42 PM, Fetchinson . wrote: > The best would of course be if the > core developer team of python would bless an android distribution and > keep it up to date just as with the linux/windows/macos python > distribution. I don't know if that will happen though. That would re

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-26 Thread alister
On Fri, 26 Dec 2014 15:13:25 +1100, Steven D'Aprano wrote: > Deep in the brain, well underneath the level of modern languages and > consciousness, there is a deeper "machine language" of the brain. If you > can write instructions in this machine language, you can control > people's brains. Back

Re: Future of python on android

2014-12-26 Thread Fetchinson .
On 12/26/14, Steven D'Aprano wrote: > Fetchinson . wrote: > >> Guido is still working at google, right? > > > No. Google is still using Python for lots of things, but Guido is now > working for Dropbox. > > https://www.python.org/~guido/ Thanks, I missed the transition. The best would of course b