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

2015-08-05 Thread eryksun
eryksun added the comment: If exec gets two separate objects as globals and locals, the code will be executed as if it were embedded in a class definition. Probably there needs to be more clarification of the compilation context. Class definitions support lexical closures, whereas source

[issue21279] str.translate documentation incomplete

2015-08-05 Thread Zachary Ware
Zachary Ware added the comment: Very minor grammatical fixes, reflowed the .rst docs, and re-added the codecs module mention in a less obtrusive manner, but the patch is committed. Thank you Kinga, Martin, and John! -- nosy: +zach.ware ___ Python

[issue21279] str.translate documentation incomplete

2015-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset ae53bd5decae by Zachary Ware in branch '3.4': Issue #21279: Flesh out str.translate docs https://hg.python.org/cpython/rev/ae53bd5decae New changeset 064b569e38fe by Zachary Ware in branch '3.5': Issue #21279: Merge with 3.4

[issue24802] PyFloat_FromString Buffer Over-read

2015-08-05 Thread John Leitch
New submission from John Leitch: Python suffers from a buffer over-read in PyFloat_FromString() that is caused by the incorrect assumption that buffers returned by PyObject_GetBuffer() are null-terminated. This could potentially result in the disclosure of adjacent memory. PyObject *

[issue24787] csv.Sniffer guesses M instead of \t or , as the delimiter

2015-08-05 Thread Skip Montanaro
Skip Montanaro added the comment: Tiago, sorry, but your last post with results is completely unintelligible. Can you toss the table in a file and attach it instead? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24787

[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, yes, so a class body at global scope or something like that :) LOAD_CLASSDEREF is another whole level of complication to the scoping weirdness for classes; see issue 19979 and issue 24129. -- ___ Python

[issue24804] https://www.python.org/ftp/python/2.7.4/python-2.7.4.msi actually installs 2.7.7

2015-08-05 Thread Zachary Ware
Zachary Ware added the comment: The report is almost certainly not accurate and is probably a result of trying to install 2.7.4 on top of 2.7.7, which will not work (the 2.7.7 python27.dll is newer and not overwritten). Either way, neither version is supported anymore. --

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I made a different fix for avoid the error posted when running. Sanad, PLEASE test running a file with astral char, the same way you did before, to see is there are any other problems. I cannot get such a file into an Idle editor on Windows. I *think* this

[issue24805] Python installer having problem in installing Python for all users in Windows

2015-08-05 Thread Debarshi Goswami
New submission from Debarshi Goswami: Python installer (msi) having problem in installing Python for all users in Windows. It gets installed for installing user only. I was able to log the python output and found the below in the log. MSI (s) (8C:D0) [07:13:00:212]: Determined that existing

[issue24801] right-mouse click in IDLE on Mac doesn't work

2015-08-05 Thread Mark Roseman
Changes by Mark Roseman m...@markroseman.com: -- components: +IDLE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24801 ___ ___ Python-bugs-list

[issue24787] csv.Sniffer guesses M instead of \t or , as the delimiter

2015-08-05 Thread Tiago Wright
Tiago Wright added the comment: I've run the Sniffer against 1614 csv files on my computer and compared the delimiter it detects to what I have set manually. Here are the results: SnifferHuman,;\t\(blank)Error:)ceMpGrand TotalError rate,498 2 110 1 5122.7%; 1 10.0%\t3

[issue24802] PyFloat_FromString Buffer Over-read

2015-08-05 Thread John Leitch
John Leitch added the comment: Attaching repro -- Added file: http://bugs.python.org/file40133/PyFloat_FromString_Buffer_Over-read.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24802 ___

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

2015-08-05 Thread Eric Snow
Eric Snow added the comment: If I don't get any feedback before then, I'll commit the patch on Friday. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___

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

2015-08-05 Thread Eric Snow
Eric Snow added the comment: @Fabian, hey, thanks for bringing it to our attention! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___ ___

[issue24802] PyFloat_FromString Buffer Over-read

2015-08-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- type: behavior - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24802 ___ ___

[issue24803] PyNumber_Long Buffer Over-read.patch

2015-08-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 2.7, Python 3.4, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24803 ___

[issue24802] PyFloat_FromString Buffer Over-read

2015-08-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka components: +Interpreter Core nosy: +serhiy.storchaka stage: - patch review type: security - behavior versions: +Python 2.7, Python 3.4, Python 3.6 ___ Python tracker

[issue24805] Python installer having problem in installing Python for all users in Windows

2015-08-05 Thread Zachary Ware
Zachary Ware added the comment: The default for the 3.4 installer is to install for all users, so it's strange that you can't get it to install for all users. The log message you quote suggests that there's already a Python 3.4 installed per-user, is that the case? What results do you get

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset dda625798111 by Terry Jan Reedy in branch '3.4': Issue #23672: Allow Idle to edit and run files with astral chars in name. https://hg.python.org/cpython/rev/dda625798111 New changeset 97d50e6247e1 by Terry Jan Reedy in branch '3.5': Issue

[issue24801] right-mouse click in IDLE on Mac doesn't work

2015-08-05 Thread Mark Roseman
New submission from Mark Roseman: For popup menus, control-click works, but right-click on mouse buttons that support it, doesn't work. This is a followup to #10404, last addressed in 2010. As noted there, right click behaviour should be supported. The right click Tk text bindings on Mac

[issue18082] Inconsistent behavior of IOBase methods on closed files

2015-08-05 Thread Martin Panter
Martin Panter added the comment: The documentation https://docs.python.org/dev/library/io.html#io.IOBase says “. . . calling any method (even inquiries) on a closed stream is undefined. Implementations may raise ValueError”. So IMO you shouldn’t rely on any particular success or failure

[issue24803] PyNumber_Long Buffer Over-read.patch

2015-08-05 Thread John Leitch
New submission from John Leitch: Python suffers from a buffer over-read in PyNumber_Long() that is caused by the incorrect assumption that buffers returned by PyObject_GetBuffer() are null-terminated. This could potentially result in the disclosure of adjacent memory. PyObject *

[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

[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

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

2015-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume sorting the list is a trivial matter. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24782 ___ ___

[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]: zipimporter object test_controller_test.zip In [5]: zf.load_module('kitconsole')

[issue24792] zipimporter masks import errors

2015-08-05 Thread Amund Hov
Changes by Amund Hov amund@gmail.com: -- type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24792 ___ ___

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue2292

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue24272

[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

[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

[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

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue24795

[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 rep...@bugs.python.org http://bugs.python.org/issue15944

[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

[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? --

[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

[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

[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

[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

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

2015-08-05 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- Removed message: http://bugs.python.org/msg248043 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24129 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue24272 ___ ___

[issue24796] Deleting names referencing from enclosed and enclosing scopes

2015-08-05 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi levkivs...@gmail.com: -- nosy: +levkivskyi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24796 ___ ___ Python-bugs-list

[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

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

2015-08-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +email nosy: +barry, r.david.murray type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24797 ___

[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 ericsnowcurren...@gmail.com: -- nosy: +brett.cannon, eric.snow, gregory.p.smith, ncoghlan, superluser, twouters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24792 ___

[issue19699] Update zipimport for PEP 451

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +gregory.p.smith, superluser, twouters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19699 ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +brett.cannon, eric.snow, ncoghlan, superluser versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23734

[issue24792] zipimporter masks import errors

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- versions: +Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24792 ___ ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow, superluser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23327 ___ ___

[issue5950] Make zipimport work with zipfile containing comments

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +superluser versions: +Python 3.6 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5950 ___

[issue19883] Integer overflow in zipimport.c

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19883 ___ ___

[issue19699] Update zipimport for PEP 451

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19699 ___ ___

[issue19883] Integer overflow in zipimport.c

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow, superluser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19883 ___ ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- type: crash - behavior versions: +Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23327 ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +superluser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21062 ___ ___

[issue17004] Expand zipimport to include other compression methods

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +gregory.p.smith, superluser versions: +Python 3.6 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17004 ___

[issue1116520] Prefix search is filesystem-centric

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +gregory.p.smith, superluser versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1116520 ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +superluser versions: +Python 3.6 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19081 ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +superluser versions: +Python 3.6 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14678 ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +superluser versions: +Python 3.6 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16651 ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +brett.cannon, gregory.p.smith, superluser stage: - patch review versions: +Python 3.6 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15713

[issue8400] zipimporter find_module fullname mis-documented

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8400 ___

[issue8400] zipimporter find_module fullname mis-documented

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +brett.cannon, gregory.p.smith, superluser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8400 ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- stage: - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17633 ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +superluser versions: +Python 3.6 -Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14905 ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +gregory.p.smith, superluser versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17633 ___

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

2015-08-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14905 ___ ___

[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

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

2015-08-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- 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:

[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 rep...@bugs.python.org http://bugs.python.org/issue23812

[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

[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

[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

[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 rep...@bugs.python.org

[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

[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

[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 rep...@bugs.python.org

[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 call

[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:

[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

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

2015-08-05 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- nosy: +rbcollins ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___ ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue13224

[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 rep...@bugs.python.org http://bugs.python.org/issue24778 ___ ___ Python-bugs-list

[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 rep...@bugs.python.org http://bugs.python.org/issue24782

  1   2   >