New submission from DDarko:
in Python 3.3 lib.email.message
File "email/message.py", line 151, in as_string
g.flatten(self, unixfrom=unixfrom)
File "email/generator.py", line 112, in flatten
self._write(msg)
File "email/generator.py", line 171, in
DDarko added the comment:
I understand, in that case:
/cpython/file/default/Lib/smtplib.py
760c760,761
< self.rset()
---
> try: self.rset()
> except: pass
Solves the problem.
--
___
Python track
DDarko added the comment:
I do not understand why at all reset is performed ?
If moments later raise is done.
If someone despite error SMTPSenderRefused, SMTPRecipientsRefused or
SMTPDataError will still want to maintain a connection and use other data with
session is likely he will call
DDarko added the comment:
The problem is that this is not my SMTP server.
I want to connect as a client with smtplib.
For this, as I said earlier it is mx.google.com
send: 'ehlo [127.0.1.1]\r\n'
reply: b'250-mx.google.com at your service, [MYIP]\r\n'
reply: b'250-SI
New submission from DDarko:
I'm trying to send an email as follows:
smtp = smtplib.SMTP(host, port=25)
smtp.ehlo()
smtp.sendmail(from_mail, to_mail, data)
The last line / command calls the raise.
I would like to know the reason why SMTP did not accept my email?
In theory, enough to captur
DDarko added the comment:
I am interested in sorting only by INT0, in this example:
{k: [INT0, INT1, DICT], k: [INT0, INT1, DICT], ...}
not cmp. whole lists.
Unfortunately I can not take advantage of .values() as the keys I need.
--
___
Python
DDarko added the comment:
Sure. I know what's going on.
Sorry for the inconvenience.
--
___
Python tracker
<http://bugs.python.org/issue12324>
___
___
Pytho
DDarko added the comment:
I am aware of this change.
In this example, I'm sort by item number 1, which is a list, and its first
value is an int.
$ python3 sort_test.py
...
Dict index is always No. 2. But I do not sort it.
That's why it surprised me this error because now
New submission from DDarko :
I added an example to reproduce the bug.
>From the command line the same code:
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] on linux2
$ python sort_test.py
Everything fine.
Python 3.2 (r32:88445, Mar 25 2011, 19:28:28) [GCC 4.5.2] on lin
New submission from DDarko :
File "/usr/lib/python3.2/smtplib.py", line 166, in _quote_periods
def _quote_periods(bindata):
return re.sub(br'(?m)^\.', '..', bindata)
should be:
return re.sub(br'(?m)^\.', b'..', bindata)
--
c
10 matches
Mail list logo