[issue42949] pdb & multiprocessing.Pool: AttributeError: module '__main__' has no attribute '__spec__'

2021-01-17 Thread Freek Dijkstra
New submission from Freek Dijkstra : Summary: multiprocessing.Pool contains a bug when the script is invoked with pdb. Steps to reproduce: Consider the following script: ``` from multiprocessing import Pool def f(x): return x*x if __name__ == '__main__': with Po

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2018-04-26 Thread Freek Dijkstra
Change by Freek Dijkstra : -- nosy: +macfreek ___ Python tracker <https://bugs.python.org/issue9625> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27227] argparse fails to parse [] when using choices and nargs='*'

2018-04-26 Thread Freek Dijkstra
Freek Dijkstra added the comment: I don't think that this issue27227 and issue9625 are the same (although they may have the same root cause, and I would be in favour of fixing both issues). At least, I think the unit test are distinct: This issue27227 is that argparse does not acc

[issue11783] email parseaddr and formataddr should be IDNA aware

2014-03-12 Thread Freek Dijkstra
Freek Dijkstra added the comment: @r.david.murray Quote from issue20083: "You can also help me to remember to commit 11783 after the final release of 3.4.0." Ping! -- nosy: +macfreek versions: +Python 3.5 -Python 3.4 ___ Python trac

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-29 Thread Freek Dijkstra
Freek Dijkstra added the comment: > we want our message to get delivered regardless of whether or not smtputf8 is > available. This is not possible if the user specifies an (sender or recipient) email address with non-ASCII characters and the first-hop mail system does not support SM

[issue20083] smtplib: support for IDN (international domain names)

2013-12-28 Thread Freek Dijkstra
Freek Dijkstra added the comment: Since smtplib.quoteaddr() uses email.utils.parseaddr(), and the patch for issue 11783 fixes email.utils.parseaddr(), that patch will hopefully solve this issue as well (though a test case wouldn't hurt for sure). What I had not realised is that hostname

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-28 Thread Freek Dijkstra
Freek Dijkstra added the comment: Are you sure that issue 8489 is a duplicate? While both concern RFC 6531, the patch for 8489 only seems to add test to check how smtplib.SMTP.login() handles a username with non-ASCII characters. This issue concerns the smtplib.SMTP.rcpt() (and indirectly

[issue20083] smtplib: support for IDN (international domain names)

2013-12-28 Thread Freek Dijkstra
Freek Dijkstra added the comment: Great to hear that a patch already exists (sorry I couldn't find in in the tracker). Feel free to close this issue as duplicate of issue 11783. (As for the u"string", I wanted to distinguish it from b'string'. I don't use

[issue20083] smtplib: support for IDN (international domain names)

2013-12-27 Thread Freek Dijkstra
Freek Dijkstra added the comment: This issue deals with international domain names in email addresses (the part behind the "@"). See issue 20084 for the issue that deals with the part before the "@". -- ___ Python tracker <

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-27 Thread Freek Dijkstra
New submission from Freek Dijkstra: smtplib has no support for non-ASCII user names in the From to To mail address. The following two calls fail: server.rcpt(u"όνομα@example.com"): File smtplib.py, line 332, in send s = s.encode("ascii") UnicodeEncodeError: '

[issue20083] smtplib: support for IDN (international domain names)

2013-12-27 Thread Freek Dijkstra
New submission from Freek Dijkstra: smtplib has limited support for non-ASCII domain names in the From to To mail address. It only works for punycode-encoded domain names, submitted as unicode string (e.g. server.rcpt(u"u...@xn--e1afmkfd.ru"). The following two calls fail: server.r

[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-08-23 Thread Freek Dijkstra
Freek Dijkstra added the comment: Peter, first of all, thanks for your library. I didn't mention that before, but should have. I'm in favour of a pragmatic approach. I've only come across NATing for RFC 1918 and RFC 6598 addresses. While it can technically be done for other

[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-08-19 Thread Freek Dijkstra
Freek Dijkstra added the comment: A bit odd questions: What is the is_private() function intended to accomplish? I have been wondering what is_private() means, and how users of the library are going to use this function. I've actually failed to come up with any sensible use-case wit

[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-08-19 Thread Freek Dijkstra
Freek Dijkstra added the comment: Edit: could you rephrase? -- ___ Python tracker <http://bugs.python.org/issue17400> ___ ___ Python-bugs-list mailing list Unsub

[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-08-19 Thread Freek Dijkstra
Freek Dijkstra added the comment: I don't understand your remark "I think it would be pretty surprising for ipaddress to return True if it's not a network operator running the query." -- ___ Python tracker <http://bug

[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-08-18 Thread Freek Dijkstra
Freek Dijkstra added the comment: I was about to make the same suggestion as the OP. Most users think of "private IP" addresses as NATed IP addresses. I think the technical term is "forwardable, but not globally unique". Thus, the method of least surprise would be that i

[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-08-16 Thread Freek Dijkstra
Freek Dijkstra added the comment: I can confirm that both the problem exists and the patch works on Python 2.6 and 3.1. I love to see it committed. -- nosy: +macfreek ___ Python tracker <http://bugs.python.org/issue5

[issue9592] Limitations in objects returned by multiprocessing Pool

2010-08-16 Thread Freek Dijkstra
Freek Dijkstra added the comment: If it would help to separate things, let me know, and I split this up in three separate bug reports. (For the record, knowing these limitations, I could work around it in my code, so they are low priority for me; I just think that it will benefit other users

[issue9592] Limitations in objects returned by multiprocessing Pool

2010-08-13 Thread Freek Dijkstra
New submission from Freek Dijkstra : I came across three limitation in the multiprocessing module that were not handled correctly. Attached is a file that reproduces the errors in minimal code. I tested them with Python 2.6.5 and 3.1.2. Expected result: multiprocessing.Pool's promises