[issue16419] email.message._headers is a list

2012-11-05 Thread DDarko
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 _write self._write_headers(msg

[issue16005] smtplib.SMTP().sendmail() and rset()

2012-09-24 Thread DDarko
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 tracker rep

[issue16005] smtplib.SMTP().sendmail() and rset()

2012-09-23 Thread DDarko
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 capture

[issue16005] smtplib.SMTP().sendmail() and rset()

2012-09-23 Thread DDarko
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-SIZE 35882577\r\n' reply: b

[issue16005] smtplib.SMTP().sendmail() and rset()

2012-09-23 Thread DDarko
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

[issue12324] [3.2] sorted(big dict)

2011-06-13 Thread DDarko
New submission from DDarko ddarko...@gmail.com: 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

[issue12324] [3.2] sorted(big dict)

2011-06-13 Thread DDarko
DDarko ddarko...@gmail.com 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 class 'list' class 'list' class 'list' class 'list' class 'list' class 'list' ... Dict index is always

[issue12324] [3.2] sorted(big dict)

2011-06-13 Thread DDarko
DDarko ddarko...@gmail.com added the comment: Sure. I know what's going on. Sorry for the inconvenience. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12324

[issue12324] [3.2] sorted(big dict)

2011-06-13 Thread DDarko
DDarko ddarko...@gmail.com 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

[issue12283] python3.2 smtplib _quote_periods

2011-06-08 Thread DDarko
New submission from DDarko ddarko...@gmail.com: 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) -- components: Extension Modules messages