[issue24792] zipimporter masks import errors

2015-08-05 Thread Amund Hov
New submission from Amund Hov: Due to mixed version .pyc files in my zipped python application I was getting inconsistent loading of certain packages. E.g. n [4]: zf.find_module('kitconsole') Out[4]: In [5]: zf.load_module('kitconsole') ---

[issue24792] zipimporter masks import errors

2015-08-05 Thread Amund Hov
Changes by Amund Hov : -- type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue24793] Calling 'python' via subprocess.call ignoring passed %PATH%

2015-08-05 Thread Gregor
New submission from Gregor: I just noticed that there is a litte inconvenience when I try to invoke 'python' via subprocess.call passing an environment (%PATH%) from a script. I pass an environment where %PATH% only contains one directory where a python2.7.3-exe is present (I checked with "su

[issue24794] PyZipFile mixes compiled files from different python versions.

2015-08-05 Thread Amund Hov
New submission from Amund Hov: In my project I have a mixture of scripts using Python 2.7 and 3.4. Some of the scripts using python 3.4 are packaged into archives using PyZipFile. Through some combination I ended up with 2.7 compiled packages in my archive when packaging using python 3.4. In co

[issue2292] Missing *-unpacking generalizations

2015-08-05 Thread Guido van Rossum
Guido van Rossum added the comment: Yes we should. I'd consider it a bug if it wasn't supported in 3.5.0 and we could fix that bug in 3.5.1. -- ___ Python tracker ___ ___

[issue24272] PEP 484 docs

2015-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset a8dcbd2711d6 by Guido van Rossum in branch '3.5': Issue #24272: Initial docs for typing.py (PEP 484). https://hg.python.org/cpython/rev/a8dcbd2711d6 New changeset 0c74fd4219aa by Guido van Rossum in branch 'default': Issue #24272: Initial docs for t

[issue23973] PEP 484 implementation

2015-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset f142b7c7a8e3 by Guido van Rossum in branch '3.5': Issue #23973: Update typing.py from GitHub repo. https://hg.python.org/cpython/rev/f142b7c7a8e3 New changeset c9a6ce666ff2 by Guido van Rossum in branch 'default': Issue #23973: Update typing.py from

[issue24272] PEP 484 docs

2015-08-05 Thread Guido van Rossum
Guido van Rossum added the comment: I've landed this now (for real). Next time please strip all trailing whitespace from typing.rst, else the hg push fails! -- ___ Python tracker __

[issue24793] Calling 'python' via subprocess.call ignoring passed %PATH%

2015-08-05 Thread Paul Moore
Paul Moore added the comment: This is standard Windows behaviour. Executables are always located first in the directory where your program (in this case the Python executable) is running from - even before searching PATH. If you want to use a different Python, you should specify the full path

[issue24793] Calling 'python' via subprocess.call ignoring passed %PATH%

2015-08-05 Thread eryksun
eryksun added the comment: Popen calls Windows [CreateProcess][1]. If the Popen "executable" argument isn't used or if the file from the command line doesn't include a directory path, then CreateProcess searches for it in the following directories: 1. The directory from which the applicati

[issue24759] Idle: add ttk widgets as an option

2015-08-05 Thread Nick Coghlan
Nick Coghlan added the comment: IDLE's in an "interesting" place right now - it isn't showing people Tcl/Tk in its best light, so folks are likely to assume all Tcl/Tk apps necessarily look that way, and it's also using GUI idioms like separate shell and editor windows that don't reflect the c

[issue24795] Make event loops with statement context managers

2015-08-05 Thread Mathias Fröjdman
New submission from Mathias Fröjdman: Since asyncio event loops have to be closed nowadays, it would be pretty convenient and pythonic to make BaseEventLoop a context manager that calls self.close() in __exit__ the same way as contextlib.closing() does it. Example: import asyncio with asyncio

[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-05 Thread Nick Coghlan
Nick Coghlan added the comment: This is an interesting find - thanks. Adding Larry as 3.5 release manager to the cc here, as I think the right fix actually involves an API adjustment inside _imp. One of the consequences of PEP 489 (multi-phase initialisation) was that builtin imports and exte

[issue24795] Make event loops with statement context managers

2015-08-05 Thread Mathias Fröjdman
Mathias Fröjdman added the comment: (Just noticed http://bugs.python.org/issue19860, which I originally failed to notice when just searching for "asyncio loop" and not context manager) Anyway, in recent Python/asyncio versions, failing to close the event loop before exiting whole the process c

[issue24795] Make event loops with statement context managers

2015-08-05 Thread Guido van Rossum
Guido van Rossum added the comment: This seems the wrong idea to me. Event loops should be long-lived, so the context manager would ideally see very little use. -- ___ Python tracker ___

[issue24796] Deleting names referencing from enclosed and enclosing scopes

2015-08-05 Thread Nick Coghlan
New submission from Nick Coghlan: While committing issue #24129, I noticed the following in the execution model documentation: == If a variable is referenced in an enclosing scope, it is illegal to delete the name. An error will be reported at compile time. ==

[issue15944] memoryviews and ctypes

2015-08-05 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: You don't need `raw=True`, `.cast('b')` already must do this. But unfortunately, is is not implemented yet. -- nosy: +cblp ___ Python tracker __

[issue24129] Incorrect (misleading) statement in the execution model documentation

2015-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94e215a5e24b by Nick Coghlan in branch '3.4': Issue #24129: Clarify reference docs for name resolution. https://hg.python.org/cpython/rev/94e215a5e24b New changeset 5e4d21311772 by Nick Coghlan in branch '3.5': Merge issue #24129 from 3.4 https://hg

[issue24794] PyZipFile mixes compiled files from different python versions.

2015-08-05 Thread R. David Murray
R. David Murray added the comment: Yes, that used to be a general problem with .pyc files before we introduced __pycache__. PyZipFile still supports the "legacy mode" by using whatever .pyc file is there, if there is one. Perhaps it is time to deprecate the legacy mode in 3.6? -- no

[issue24796] Deleting names referencing from enclosed and enclosing scopes

2015-08-05 Thread Nick Coghlan
Nick Coghlan added the comment: Note that I haven't attempted to resolve this myself, as I'm not sure if we should just delete the paragraph, or if we accidentally dropped a compile time error check that didn't have any tests somewhere along the line. Probably a good one to raise on python-dev

[issue24129] Incorrect (misleading) statement in the execution model documentation

2015-08-05 Thread Nick Coghlan
Nick Coghlan added the comment: I merged Ivan's latest patch to 3.4/3.5/default. We're unlikely to ever be able to make these docs completely intuitive (as name resolution is genuinely complex), but Ivan's revisions at least mean we're no longer assuming readers know how the name resolution wo

[issue24796] Deleting names referencing from enclosed and enclosing scopes

2015-08-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: I wonder if it is a left-over from the behaviour prior to 3.2? In 3.1, I get this syntax error: py> def outer(): ... spam = 1 ... def inner(): ... nonlocal spam ... del spam ... inner() ... SyntaxError: can not delete variabl

[issue24129] Incorrect (misleading) statement in the execution model documentation

2015-08-05 Thread Nick Coghlan
Nick Coghlan added the comment: I merged Ivan's latest patch to 3.4/3.5/default. We're unlikely to ever be able to make these docs completely intuitive (as name resolution is genuinely complex), but Ivan's revisions at least mean we're no longer assuming readers know how the name resolution wo

[issue24129] Incorrect (misleading) statement in the execution model documentation

2015-08-05 Thread Nick Coghlan
Changes by Nick Coghlan : -- Removed message: http://bugs.python.org/msg248043 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue24791] *args regression

2015-08-05 Thread Yury Selivanov
Yury Selivanov added the comment: > Actually, I think `star_expr` will probably go away entirely. I'm not so concerned with supporting [*[] or []] stuff, but rather fixing the immediate regression in 3.5.0. I'd keep the patch size to the minimum. -- __

[issue24129] Incorrect (misleading) statement in the execution model documentation

2015-08-05 Thread Nick Coghlan
Nick Coghlan added the comment: The issue tracker was having issues and didn't automatically register the commits. Links: 3.4: https://hg.python.org/cpython/rev/94e215a5e24b 3.5: https://hg.python.org/cpython/rev/5e4d21311772 default: https://hg.python.org/cpython/rev/e75881393cf2 --

[issue24272] PEP 484 docs

2015-08-05 Thread Daniel Andrade Groppe
Daniel Andrade Groppe added the comment: @Ivan, I'll work on the remaining half. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue24796] Deleting names referencing from enclosed and enclosing scopes

2015-08-05 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24797] email.header.decode_header return type is not consistent

2015-08-05 Thread Sebastian Kreft
New submission from Sebastian Kreft: The return type of email.header.decode_header is not consistent. When there are encoded parts the return type is a list of (bytes, charset or None) (Note that the documentation says it is a list of (str, charset)). However, when there are no encoded parts t

[issue24797] email.header.decode_header return type is not consistent

2015-08-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +email nosy: +barry, r.david.murray type: -> behavior ___ Python tracker ___ ___ Python-

[issue23749] asyncio missing wrap_socket (starttls)

2015-08-05 Thread Yury Selivanov
Yury Selivanov added the comment: I'm working on porting pypostgresql (pure python postgresql driver) library to use asyncio as its underlying IO machinery. And it appears that PQ3 protocol starts as clear text, and then upgrades to use TLS (if server or connection configured so). I've been

[issue24797] email.header.decode_header return type is not consistent

2015-08-05 Thread R. David Murray
R. David Murray added the comment: Yeah, don't use that, use the new APIs. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> email.header.decode_header sometimes returns bytes, sometimes str ___ Python tracker <

[issue24792] zipimporter masks import errors

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +brett.cannon, eric.snow, gregory.p.smith, ncoghlan, superluser, twouters ___ Python tracker ___ ___ P

[issue19699] Update zipimport for PEP 451

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +gregory.p.smith, superluser, twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue23734] zipimport should not check pyc timestamps against zipped py files

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +brett.cannon, eric.snow, ncoghlan, superluser versions: +Python 3.6 -Python 3.5 ___ Python tracker ___ __

[issue24792] zipimporter masks import errors

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue23327] zipimport to import from non-ascii pathname on Windows

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow, superluser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue5950] Make zipimport work with zipfile containing comments

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19883] Integer overflow in zipimport.c

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue19699] Update zipimport for PEP 451

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- versions: +Python 3.6 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue19883] Integer overflow in zipimport.c

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow, superluser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue23327] zipimport to import from non-ascii pathname on Windows

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- type: crash -> behavior versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue21062] Evalute all import-related modules for best practices

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue17004] Expand zipimport to include other compression methods

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +gregory.p.smith, superluser versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-

[issue1116520] Prefix search is filesystem-centric

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +gregory.p.smith, superluser versions: +Python 3.6 -Python 3.5 ___ Python tracker ___ ___ Python-bug

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser versions: +Python 3.6 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14678] Update zipimport to support importlib.invalidate_caches()

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser versions: +Python 3.6 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16651] Find out what stdlib modules lack a pure Python implementation

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15713] PEP 3121, 384 Refactoring applied to zipimport module

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +brett.cannon, gregory.p.smith, superluser stage: -> patch review versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ __

[issue8400] zipimporter find_module fullname mis-documented

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8400] zipimporter find_module fullname mis-documented

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +brett.cannon, gregory.p.smith, superluser ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue17633] zipimport's handling of namespace packages is incorrect

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser versions: +Python 3.6 -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue17633] zipimport's handling of namespace packages is incorrect

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +gregory.p.smith, superluser versions: +Python 3.6 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue24798] Issue in the MSVC compiler class in distutils on Python 3.5

2015-08-05 Thread gladman
New submission from gladman: I have been using _msvcompiler.py from Python 3.5 to build some executables but I have been unable to get it to generate and embed a manifest. When I looked into this I found that the subroutine that sets up the parameters for generating a manifest ('manifest_ge

[issue24798] _msvccompiler.py doesn't properly support manifests

2015-08-05 Thread Zachary Ware
Changes by Zachary Ware : -- assignee: -> steve.dower components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware title: Issue in the MSVC compiler class in distutils on Python 3.5 -> _msvccompiler.py doesn't properly support manifests versions: +Python 3.6

[issue23749] asyncio missing wrap_socket (starttls)

2015-08-05 Thread Guido van Rossum
Guido van Rossum added the comment: Why does the start_tls() function need to know the internal structure of the Transport? I'm hesitant to add this API to Transport; it somehow feels wrong to put such an implementation-specific thing there. E.g. I presume you can't do this for an UDP transpor

[issue24759] Idle: add ttk widgets as an option

2015-08-05 Thread Al Sweigart
Changes by Al Sweigart : -- nosy: +Al.Sweigart ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue24798] _msvccompiler.py doesn't properly support manifests

2015-08-05 Thread Steve Dower
Steve Dower added the comment: It looks like manifests aren't generated with CRT version info anymore either, so I'll take this opportunity to clean up the build process some more too. -- ___ Python tracker __

[issue23749] asyncio missing wrap_socket (starttls)

2015-08-05 Thread Yury Selivanov
Yury Selivanov added the comment: > Why does the start_tls() function need to know the internal structure of the > Transport? If start_tls() is added to the loop, it will (likely) have the following signature: loop.start_tls(transport) then I'd want it to check if the `transport` is on

[issue23749] asyncio missing wrap_socket (starttls)

2015-08-05 Thread Guido van Rossum
Guido van Rossum added the comment: OK, got it. SGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7aa2d3e1c885 by Yury Selivanov in branch '3.4': Issue #23812: Fix asyncio.Queue.get() to avoid loosing items on cancellation. https://hg.python.org/cpython/rev/7aa2d3e1c885 New changeset d5644d7e222d by Yury Selivanov in branch '3.5': Issue #23812:

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-05 Thread Yury Selivanov
Yury Selivanov added the comment: The fix is committed. Closing the issue. Thanks a lot, Gustavo! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker _

[issue24798] _msvccompiler.py doesn't properly support manifests

2015-08-05 Thread Steve Dower
Steve Dower added the comment: I've simplified the manifest handling: * embed by default, since we no longer need to filter CRT SxS info * omit UAC info from DLLs * use full PATH when running tools * some other tidying Not necessarily going to wait for lots of reviews, as I know very few people

[issue24778] mailcap.findmatch() ........ Shell Command Injection in filename

2015-08-05 Thread Bernd Dietzel
Bernd Dietzel added the comment: # for the docs ... quoting of the filename when you call mailcap.findmatch() f=";xterm;#.txt" # Shell Command Demo ... xterm will run if quote() fails import mailcap import random try: from shlex import quote except ImportError: from pipes import quote d=mai

[issue24799] IDLE should detect changes to open files by other processes

2015-08-05 Thread Al Sweigart
New submission from Al Sweigart: Many IDEs will check for changes to their opened files made by other programs. This is usually done with a quick check when the IDE's window gets focus. A dialog will tell the user the file has changed on disk and ask if they want to reload it. This dialog is o

[issue22329] Windows installer can't recover partially installed state

2015-08-05 Thread Ethan Henderson
Ethan Henderson added the comment: I have the same issue on 3.4.3 x64 on Windows 10 x64. I set PYTHONHOME and PYTHONPATH (Just to C:/Python34), but that didn't fix the problem. -- nosy: +Zbee ___ Python tracker _

[issue24778] mailcap.findmatch: document shell command Injection danger in filename parameter

2015-08-05 Thread R. David Murray
R. David Murray added the comment: I have no idea what your code samples are trying to accomplish, I'm afraid, but that's not the kind of documentation I'm advocating anyway. -- title: mailcap.findmatch() Shell Command Injection in filename -> mailcap.findmatch: document she

[issue24778] mailcap.findmatch: document shell command Injection danger in filename parameter

2015-08-05 Thread Bernd Dietzel
Bernd Dietzel added the comment: What i do is the last doc is like this : 1) Replace the filename with a random name 2) Run mailcap.findmatch() with the random name 3) If exists, replace the quote characters ' before and behind the random name with nothing. 4) Now the random name has no quoting

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-05 Thread Fabian
Fabian added the comment: Thank you for figuring it out and providing a patch after I couldn't really give good information. I haven't been able to test it for myself but your explanation makes sense :) -- ___ Python tracker

[issue24800] Incorrect handling of local variables in comprehensions with exec()

2015-08-05 Thread Peter Eastman
New submission from Peter Eastman: The following script demonstrates a bug in the exec() function in Python 3.4. (It works correctly in 2.7). script = """ print(a) print([a for i in range(5)]) """ exec(script, globals(), {"a":5}) It produces the following output: 5 Traceback (most recent cal

[issue22329] Windows installer can't recover partially installed state

2015-08-05 Thread Steve Dower
Steve Dower added the comment: +Martin, who apparently never made it onto nosy. You should clear those variables, run a Repair, and then uninstall. This error typically is because pip has become corrupted and cannot be removed. This does not affect Python 3.5 or later. -- nosy: +loewi

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2015-08-05 Thread Robert Collins
Robert Collins added the comment: @Gerhard would you like that ported to cPython for you? @Tom - I think that if the patch applies to 2.7.x we should apply it there since its very unlikely to break non-buggy code. -- nosy: +rbcollins versions: +Python 3.6 _

[issue22329] Windows installer can't recover partially installed state

2015-08-05 Thread Ethan Henderson
Ethan Henderson added the comment: I deleted those variables and tried running a repair but still got the "specified account already exists" schpeel. I then tried running an uninstall and got the same error as last time there too. There's presently no pip at all; there is no python folder on C:

[issue13224] Change str(x) to return only the qualname for some types

2015-08-05 Thread Robert Collins
Changes by Robert Collins : -- nosy: +rbcollins ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24800] Incorrect handling of local variables in comprehensions with exec()

2015-08-05 Thread R. David Murray
R. David Murray added the comment: exec is subtle. See the explanation linked from issue 23087, which while not *exactly* on point explains the underlying problem (a comprehension is a new scope, and exec can't reach an intermediate scope the way a compiled function can). As far as the diffe

[issue13224] Change str(x) to return only the qualname for some types

2015-08-05 Thread Robert Collins
Robert Collins added the comment: The patch is a little stale but it seems easy enough to fix up. I'll commit it tomorrowish in the absence of other discussion. -- ___ Python tracker __

[issue24778] mailcap.findmatch: document shell command Injection danger in filename parameter

2015-08-05 Thread R. David Murray
R. David Murray added the comment: Ah, that's a clever idea. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-08-05 Thread Mark Roseman
Mark Roseman added the comment: Yup. Revised extdlg-sorted.patch attached. Thanks for noticing that! -- Added file: http://bugs.python.org/file40131/extdlg-sorted.patch ___ Python tracker _

[issue24370] OrderedDict behavior is unclear with misbehaving keys.

2015-08-05 Thread Eric Snow
Eric Snow added the comment: Fair enough. -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue22329] Windows installer can't recover partially installed state

2015-08-05 Thread Steve Dower
Steve Dower added the comment: I need to see the detailed log to be any more helpful. Can you try running this command and post the log here: msiexec /l*vx log.txt /x {9529565F-E693-3F11-B3BF-8CD545F5F9A0} (Note that the UUID is different from earlier because it matches 3.4.3.amd64 and the pr

[issue24778] mailcap.findmatch: document shell command Injection danger in filename parameter

2015-08-05 Thread Bernd Dietzel
Bernd Dietzel added the comment: Thanks :-) As you may noticed i now choosed to use a random name made of the chars of "PYTHON" in BIG letters instead of small letters i used before. Thats because i do not want to get in trouble with the little "t" in %t wich is replaced by the subst function

[issue24800] Incorrect handling of local variables in comprehensions with exec()

2015-08-05 Thread Peter Eastman
Peter Eastman added the comment: I don't believe that explanation is correct. You can just as easily get the same problem without explicitly passing a map to exec(). For example: def f(): script = """ print(a) print([a for i in range(5)]) """ a = 5 exec(script) f() The d

[issue24800] Incorrect handling of local variables in comprehensions with exec()

2015-08-05 Thread R. David Murray
R. David Murray added the comment: Yes it is. The comprehension is a *new* scope, within the outer scope of the exec, and it *cannot see* the variables in the outer scope of the exec. You have the same problem if you try to use a comprehension in that way in a class statement at the class le

[issue24800] Incorrect handling of local variables in comprehensions with exec()

2015-08-05 Thread Peter Eastman
Peter Eastman added the comment: Then fix the documentation. This behavior directly contradicts the documentation of the exec() function. The question is not what scope the comprehension runs in, it's what scope the script runs in. See my third example. A comprehension in the f() function

[issue22329] Windows installer can't recover partially installed state

2015-08-05 Thread Ethan Henderson
Ethan Henderson added the comment: Running that in my command prompt outputs "Access is denied," even after disabling UAC. Running that in bash just gives me a popup for Windows Installer. Is the UUID going to be different for 3.4.3 intel x64 (I have intel, not amd)? -- __

[issue24800] exec docs should note that the no argument form in a local scope is really the two argument form

2015-08-05 Thread R. David Murray
R. David Murray added the comment: OK, it looks like what the documentation of exec is missing is the fact that calling exec with no arguments in a non-global is equivalent to calling it with *two* arguments. That is, your "exec(script)" statement is equivalent to "exec(script, globals(), loc

[issue24800] exec docs should note that the no argument form in a local scope is really the two argument form

2015-08-05 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-05 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22329] Windows installer can't recover partially installed state

2015-08-05 Thread Steve Dower
Steve Dower added the comment: Start from an elevated command prompt. There's only one 64-bit build, so that'll be it. Our name for it is amd64, even though it applies to both Intel and AMD. -- ___ Python tracker

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2015-08-05 Thread Mark Roseman
Mark Roseman added the comment: I'd like to revisit this, particularly in the context of some of the discussions regarding future improvements of IDLE. Assume we have a barebones Tcl/Tk framework build of e.g. 8.6.4 as part of the installer (core Tcl/Tk, not like e.g. ActiveTcl). Would someth

[issue24791] *args regression

2015-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4cb64628673 by Yury Selivanov in branch '3.5': Issue #24791: Fix grammar regression for call syntax: 'g(*a or b)'. https://hg.python.org/cpython/rev/e4cb64628673 New changeset 4c89dd5199e5 by Yury Selivanov in branch 'default': Merge 3.5 (issue #24

[issue24791] *args regression

2015-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 40c391d12741 by Yury Selivanov in branch '3.5': Issue #24791: More tests in test_parser https://hg.python.org/cpython/rev/40c391d12741 New changeset a572137b4f05 by Yury Selivanov in branch 'default': Merge 3.5 (issue #24791; more tests in test_pars

[issue24791] *args regression

2015-08-05 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24391] Better repr for threading objects

2015-08-05 Thread Robert Collins
Robert Collins added the comment: So, I think the majority opinion seems to be: AIUI the patch doesn't quite do that, so I'm going to pop this back to patch review. That said, Serhiy, if you fix it up, just commit it please :) -- nosy: +rbcollins stage: commit review -> patch review

[issue22329] Windows installer can't recover partially installed state

2015-08-05 Thread Ethan Henderson
Ethan Henderson added the comment: My log.txt: http://puu.sh/jqLWR.txt Turns out that my antivirus was blocking that command from running before. -- ___ Python tracker ___ _

[issue22329] Windows installer can't recover partially installed state

2015-08-05 Thread Steve Dower
Steve Dower added the comment: Thanks. Unfortunately I can't get anything helpful from that log because it's failing too early. It seems like you have some corruption in your Windows installer database, since it isn't even getting far enough into the Python installer. I'd track down a troubles

[issue24795] Make event loops with statement context managers

2015-08-05 Thread STINNER Victor
STINNER Victor added the comment: +1 for me. Asyncio examples already have this try/finally pattern. I already proposed to support context manager some months ago. Guido, I don't understand your point. Usually the main function id loop.run_until_complete/.run_forever. That's all. It doesn't mean

[issue13224] Change str(x) to return only the qualname for some types

2015-08-05 Thread Martin Panter
Martin Panter added the comment: I’m a bit confused. In the current patch, the new type_str() function appears to use the “qualname” (which I support), but some of the test changes seem to contradict this, e.g.: >>> C.foo(1) -classmethod 1 +classmethod C 1 Also, I think this new feature sho

  1   2   >