[issue22412] Towards an asyncio-enabled command line

2014-09-15 Thread Martin Teichmann
Martin Teichmann added the comment: well, I beg to differ. Again, to your points: to a) You claim that my flag would have to be supported by every python platform. Well, the very same built-in function has another flag, PyCF_ONLY_AST, whose precise meaning, according to the docs, "might change w

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: How so? Every single sentence in this section is absolutely correct. It just doesn't talk about finding builtin modules at all, only about modules found on the Python path (.py and .pyd files). Builtin modules don't have to be found, because they are, well, b

[issue21965] Add support for Memory BIO to _ssl

2014-09-15 Thread Geert Jansen
Geert Jansen added the comment: Antoine, sorry for the delay, we just had a new kid and I changed jobs :) Let me try if I can create an updated patch that where SSLObject is a mixin for SSLSocket. I think the argument about writing tests once is important. Be back in a few days.. --

[issue672656] securing pydoc server

2014-09-15 Thread Devin Cook
Devin Cook added the comment: Sure, thanks. New issue: http://bugs.python.org/issue22421 -- ___ Python tracker ___ ___ Python-bugs-l

[issue22420] Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE

2014-09-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: You meant it the other way around 'replace sys.stderr.write() by print(file=sys.stderr)'. In the two cases where Idle exits anyway, this will not make any difference (except possible in the return code). In the other cases where Idle tries to continue, this

[issue22253] ConfigParser does not handle files without sections

2014-09-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I read the rsyncd.conf doc at http://linux.die.net/man/5/rsyncd.conf (linked from the StackOverflow question). These files are not .ini files. However, I believe the parsing rules are mostly compatible with RawConfigParser, or could be made so by using existi

[issue22421] securing pydoc server

2014-09-15 Thread Devin Cook
New submission from Devin Cook: Several years ago a patch was applied to set the default binding of the pydoc server to "localhost" instead of "0.0.0.0". It appears that the issue was reintroduced in a5a3ae9be1fb. See previous issue: http://bugs.python.org/issue672656 $ ./python -m pydoc -b S

[issue22420] Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE

2014-09-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +kbk, roger.serwy, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue22420] Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE

2014-09-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch replaces print(file=sys.stderr) by sys.stderr.write() in IDLE for same reason as in issue22384. May be this will eliminate some "crashes" when IDLE run with pythonw.exe. -- components: IDLE files: idle_print_stderr.patch keywords: pa

[issue22418] ipaddress.py new IPv6 Method for Solicited Multicast Address

2014-09-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue17620] Python interactive console doesn't use sys.stdin for input

2014-09-15 Thread Drekin
Drekin added the comment: I have found another problem. PyOS_Readline can be called from two different places – from Parser/tokenizer.c:tok_nextc (by REPL), which uses sys.stdin.encoding to encode prompt argument, and from Python/bltinmodule.c:builtin_input_impl (by input() function), which us

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: That sounds about right -- it's a doc issue. Let me propose a paragraph: """ NOTE: It is not safe to share an asyncio event loop between processes that are related by os.fork(). If an event loop exists in a process, and that process is forked, the only safe

[issue22419] wsgiref request length

2014-09-15 Thread Devin Cook
New submission from Devin Cook: BaseHTTPRequestHandler limits request length to prevent DoS. WSGIRequestHandler should probably do the same. See: http://bugs.python.org/issue10714 -- components: Library (Lib) files: wsgiref_request_length.patch keywords: patch messages: 226931 nosy: de

[issue22412] Towards an asyncio-enabled command line

2014-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: OK. Trying to understand the patch, there seem to be three parts to it: (a) Changes to CPython to add a new flag to the exec/eval flags argument that sets the GENERATOR flag in the resulting code object. This seems the most fundamental, but it also feels the

[issue672656] securing pydoc server

2014-09-15 Thread Ned Deily
Ned Deily added the comment: Devin, please open a new issue describing the current problem you see. Comments to long-closed issues will likely be overlooked. -- nosy: +ned.deily ___ Python tracker __

[issue22418] ipaddress.py new IPv6 Method for Solicited Multicast Address

2014-09-15 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ncoghlan, pmoody ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue22416] Pickling compiled re patterns

2014-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: But who says this isn't intended? I don't know why it was done this way, but the following reasoning might apply: we want to have a stable API for unpickling compiled regexps, but we want to be able to evolve the re.compile() API. Just the fact that '_compil

[issue672656] securing pydoc server

2014-09-15 Thread Devin Cook
Devin Cook added the comment: It looks like this bug was reintroduced in a5a3ae9be1fb. -- nosy: +devin ___ Python tracker ___ ___ Pyt

[issue21472] Fix wsgiref handling of absolute HTTP Request-URI

2014-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: Wow. This is interesting. I thought that absolute URL support was only for proxies, but the spec you quote says clearly it should be supported as a transition towards always specifying the full URL. I guess they want to get rid of the Host: header? In any c

[issue22417] PEP 476: verify HTTPS certificates by default

2014-09-15 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: > Installing different 2.7 versions on the same machine isn't really supported, > although it should work if they are all installed "just for me". Sigh... I've come to the same conclusion. Nevertheless it seems to me that the actual behavior is different f

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: Henning: if you have installed Python 2.7.5 "for all users", then this behavior is expected. Python finds python27.dll in system32, so even if you install 2.7.8 "just for me", it will still pick up 2.7.5 from system32. Installing different 2.7 versions on the

[issue22379] Empty exception message of str.join

2014-09-15 Thread R. David Murray
R. David Murray added the comment: The str of the exception will always be nonblank (it will contain the string 'TypeError' at a minimum). So you need to peel off the 'TypeError:' prefix before testing if you want to use str(e). That's why I suggested using args[0], but I suppose that might

[issue22377] %Z in strptime doesn't match EST and others

2014-09-15 Thread R. David Murray
R. David Murray added the comment: I think its existing behavior is because it doesn't have access to a list of recognized timezones. As you say, this could be fixed by PEP 431. It could also be fixed by adopting the "email standard" timezones (see email/_parseaddr.py), which is a def-facto

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: The only "solution" I could find was to give up running 2.7.8 next to 2.7.5, then uninstall 2.7.8, then install 2.7.8 with the "install for all users" option selected. -- ___ Python tracker

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: I don't see how this sys.path is related to the online help section "3.3.3. Finding modules". Where does c:\windows\python27.zip come from? And why does Python have to install anything in the Windows directory at all? -- __

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: Sorry, of course it's NOT OK, because there's still C:\WINDOWS\system32\python27.zip as the second entry. BTW the relevant environment variables: Path=c:\python278;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\lisa\Kronos\reporting\lib\win32-x

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: The online help says: """ When Python is hosted in another .exe (different directory, embedded via COM, etc), the “Python Home” will not be deduced, so the core path from the registry is used. Other “application paths” in the registry are always read. """

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: Perhaps this issue should be re-opened. I stumbled across a similar issue today, and made some potentially useful observations. On a machine with an existing c:\python27 directory (Python 2.7.5), I installed Python 2.7.8 with the "install just for me" opt

[issue22418] ipaddress.py new IPv6 Method for Solicited Multicast Address

2014-09-15 Thread Jason Nadeau
New submission from Jason Nadeau: I found it was useful to me to calculate and return an IPv6Address instance of the solicited multicast address for a particular IPv6Address. So I have created patch to do so. I am pretty new to programming in general so critiques are totally welcome.

[issue22166] test_codecs leaks references

2014-09-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 15.09.2014 15:19, STINNER Victor wrote: > > STINNER Victor added the comment: > > IMO test_codecs_fix1.patch is still needed. > > Review of Nick's change: > > +interp = PyThreadState_GET()->interp; > +if (interp->codec_search_path == NULL) { >

[issue22166] test_codecs leaks references

2014-09-15 Thread STINNER Victor
STINNER Victor added the comment: IMO test_codecs_fix1.patch is still needed. Review of Nick's change: +interp = PyThreadState_GET()->interp; +if (interp->codec_search_path == NULL) { +return -1; +} I don't think that this line raises an exception. You should use an asserti

[issue16095] urllib2 failing with squid proxy and digest authentication

2014-09-15 Thread Alexander Weidinger
Alexander Weidinger added the comment: So, I analyzed the error and I think I found the problem. (urllib.request - Python 3.5.0) It all starts with l. 1079, as the 407 error gets handled, everything ok here, in l. 1081 http_error_auth_reqed(...) gets executed. So next, we are in l. 939, also

[issue22417] PEP 476: verify HTTPS certificates by default

2014-09-15 Thread Nick Coghlan
New submission from Nick Coghlan: Attached minimal patch updates http.client.HTTPSConnection to validate certs by default and adjusts test.test_httplib accordingly. It doesn't currently include any docs changes, or changes to urllib. The process wide "revert to the old behaviour" hook is to mo

[issue22166] test_codecs leaks references

2014-09-15 Thread Nick Coghlan
Changes by Nick Coghlan : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue22166] test_codecs leaks references

2014-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset fcf45ec7863e by Nick Coghlan in branch '3.4': Issue #22166: clear codec caches in test_codecs https://hg.python.org/cpython/rev/fcf45ec7863e New changeset 322ee2f2e922 by Nick Coghlan in branch 'default': Merge fix for issue #22166 from 3.4 https://

[issue22412] Towards an asyncio-enabled command line

2014-09-15 Thread Martin Teichmann
Martin Teichmann added the comment: As promised, a new patch now for the current head. Last time I apparently got confused with how hg works, sorry. -- Added file: http://bugs.python.org/file36623/patch2 ___ Python tracker

[issue22253] ConfigParser does not handle files without sections

2014-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: I don't like the idea to magically introduce a '' section since this behaviour would be confusing for interpolation and not particularly discoverable by programmers. Let alone bikeshedding if this should rather be a None section. Using DEFAULTSECT for this purpo

[issue22416] Pickling compiled re patterns

2014-09-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file36622/re_pickle.patch ___ Python tracker ___

[issue18159] ConfigParser getters not available on SectionProxy

2014-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2c46a4ded259 by Łukasz Langa in branch 'default': Closes #18159: ConfigParser getters not available on SectionProxy https://hg.python.org/cpython/rev/2c46a4ded259 New changeset 5eb95d41ee43 by Łukasz Langa in branch 'default': Closes #18159: ConfigP

[issue18159] ConfigParser getters not available on SectionProxy

2014-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: The new implementation also automatically covers get*() methods added on subclasses, no need to use converters= in that case. -- ___ Python tracker _

[issue22408] Tkinter doesn't handle Unicode key events on Windows

2014-09-15 Thread Drekin
Drekin added the comment: It seems that it's a problem of dead key combinations rather than modifiers. Unicode characters produced directly (with or without modifiers) work correctly. Only one deadkey on my keyboard doesn't work at all. AltGr + M is a deadkey, but any following key is interpre

[issue22416] Pickling compiled re patterns

2014-09-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Compiled re._compile() is used to reconstruct compiled regular expression pattern. re._compile() is private function and can be removed in (long-term) future. I propose to use re.compile() instead. -- components: Library (Lib), Regular Expressions

[issue22379] Empty exception message of str.join

2014-09-15 Thread Yongzhi Pan
Yongzhi Pan added the comment: I have updated the test for 3.5. The related tests pass after the patching. Are they OK now? There are two caveats: I did not update test_bytes in 2.7, and I did not add checkraises in test_bytes in 3.5. -- Added file: http://bugs.python.org/file36621/t

[issue22415] Fix re debugging output

2014-09-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch fixes some issues in debugging output of the compiling of regular expression with the re.DEBUG flag. 1. Fixed the handling of the GROUPREF_EXISTS opcode. Example: >>> re.compile(r'(ab)(?(1)cd|ef)', re.DEBUG) Before patch ("yes" and "no" bra

[issue22413] Bizarre StringIO(newline="\r\n") translation

2014-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue20435. -- nosy: +pitrou, serhiy.storchaka versions: +Python 3.5 ___ Python tracker ___ __

[issue22412] Towards an asyncio-enabled command line

2014-09-15 Thread Martin Teichmann
Martin Teichmann added the comment: Hi Guido, thanks for the quick response, so my response to your post: to 1: thanks! to 2: I am trying to put most of the stuff into a 3rd party module, unfortunately I need changes in the python compiler, and given that monkey patching is not so simple in C

[issue18159] ConfigParser getters not available on SectionProxy

2014-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: The reason I didn't commit that patch before was that I wasn't sure whether making this change wouldn't create any unexpected backwards incompatibility. In fact, if I committed the patch as is, it would. I solved this by leaving getint, getfloat and getboolean

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-09-15 Thread STINNER Victor
STINNER Victor added the comment: > Is there a use case for sharing an event loop across forking? I don't know if asyncio must have a builtin support for this use case. The minimum is to document the behaviour, or maybe even suggest a recipe to support it. For example, an event loop of asynci