[issue25783] test_traceback.test_walk_stack() fails when run directly (without regrtest)

2015-12-03 Thread Nan Wu
Nan Wu added the comment: Put in a fix. Let me know if it looks ok. -- nosy: +Nan Wu Added file: http://bugs.python.org/file41232/fix_test_walk_stack_failed_as_script_patch ___ Python tracker

[issue25755] Test test_property failed if run twice

2015-12-03 Thread Nan Wu
Nan Wu added the comment: Thanks for catching this failure. In the patch, property doc is restore after write operation. -- nosy: +Nan Wu Added file: http://bugs.python.org/file41233/fix_test_property_doc_writable_patch ___ Python tracker

[issue14285] Traceback wrong on ImportError while executing a package

2015-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: I'm wondering if there might be a simpler option: use rpartition() to strip off any trailing segment (whether that's "__main__" or not), and then always do a plain dynamic import of that package (if any). Something like the following at the start of

[issue15068] fileinput requires two EOF when reading stdin

2015-12-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 2.7 Added file: http://bugs.python.org/file41226/fileinput_no_buffer-2.7.patch ___ Python tracker

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-12-03 Thread Florin Papa
Florin Papa added the comment: Hi Antoine, The Py_INIT_BOUNDS calls were used because MPX generated a very large number of error messages about pointer bounds violations at compile or run time, that made Python unusable. The approach was to analyze the errors and ignore checking if no

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-12-03 Thread Florin Papa
Florin Papa added the comment: Hi Stefan, > Yes, I dislike that, too. The question is why gcc has supported > the "struct hack" for more than 20 years but needs an annotation > just for MPX. The "struct hack" represents a problem for MPX because it intentionally exceeds the bounds of the

[issue15068] fileinput requires two EOF when reading stdin

2015-12-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue24934] django_v2 benchmark not working in Python 3.6

2015-12-03 Thread Florin Papa
Florin Papa added the comment: I have adapted the existent patch to the new benchmarks codebase. Please see the new patch (django_v3_2.patch) in the files section. The benchmark expects to have django in lib/Django-1.9 folder. The Django-1.9 sources are attached separately because of their

[issue24934] django_v2 benchmark not working in Python 3.6

2015-12-03 Thread Florin Papa
Changes by Florin Papa : Added file: http://bugs.python.org/file41222/Django-1.9.tar.gz ___ Python tracker ___

[issue15068] fileinput requires two EOF when reading stdin

2015-12-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file41224/fileinput_no_buffer.patch ___ Python tracker ___

[issue15068] fileinput requires two EOF when reading stdin

2015-12-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file41225/fileinput_no_buffer.patch ___ Python tracker ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-03 Thread Eryk Sun
Eryk Sun added the comment: REG_SZ and REG_EXPAND_SZ are documented as null-terminated strings [1], which shouldn't have an embedded null character. As such, the default result in the high-level environment of Python shouldn't have embedded nulls. However, since the buffer is sized, I think

[issue24934] django_v2 benchmark not working in Python 3.6

2015-12-03 Thread Florin Papa
Florin Papa added the comment: I have attached django_v3_3.patch, as the previous one did not include the added file (performance/bm_django_v3.py). -- Added file: http://bugs.python.org/file41223/django_v3_3.patch ___ Python tracker

[issue15068] fileinput requires two EOF when reading stdin

2015-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Using readlines() instead of readline() was added in 4dbbf322a9df for performance. But it looks that now this is not needed. Naive implementation with readline() is about 2 times slower, but with careful optimization we can achieve the same performance (or

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-03 Thread Eryk Sun
Eryk Sun added the comment: > add a QueryRawValue[Ex] function Or QueryValueEx and EnumValue could take a boolean argument named "raw" or "binary", which if True forces the data to be returned as REG_BINARY regardless of its assigned type. -- ___

[issue25144] 3.5 Win install fails with "TARGETDIR"

2015-12-03 Thread Ben
Ben added the comment: Still a problem with python-2.7.10.amd64.msi. A bit surprising that this has not been addressed since 2015.05.23... -- nosy: +cbj4074 ___ Python tracker

[issue25788] fileinput.hook_encoded has no way to pass arguments to codecs

2015-12-03 Thread Laura Creighton
New submission from Laura Creighton: Right now there is no way, aside from writing your own openhook, to get around the limitation that openhook=fileinput.hook_encoded("utf") will open things with the default option for codecs.open() of errors=strict. Adding a way to pass the errors argument

[issue23936] Wrong references to deprecated find_module instead of find_spec

2015-12-03 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> brett.cannon ___ Python tracker ___

[issue25709] Problem with string concatenation and utf-8 cache.

2015-12-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___

[issue25788] fileinput.hook_encoded has no way to pass arguments to codecs

2015-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be easy to add the errors parameter to fileinput.hook_encoded(). Do you want to provide a patch Laura? -- components: +Library (Lib) keywords: +easy stage: -> needs patch type: -> enhancement versions: -Python 2.7, Python 3.2, Python 3.3,

[issue11822] Improve disassembly to show embedded code objects

2015-12-03 Thread Todd Dembrey
Changes by Todd Dembrey : -- nosy: +Todd Dembrey ___ Python tracker ___ ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-03 Thread Anshul Agrawal
Anshul Agrawal added the comment: Thanks David, and yes I had guessed as much. Will continue to monitor these emails for a while, in case action is needed from my side. >From an end user perspective, it was discouraging to encounter a bug like this >at such an early stage of using Python3

[issue25788] fileinput.hook_encoded has no way to pass arguments to codecs

2015-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: https://docs.python.org/devguide/#contributing -- components: +Library (Lib) type: -> enhancement versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-03 Thread R. David Murray
R. David Murray added the comment: Anshul: you don't need to worry about this technical discussion unless our windows experts decide this is in fact a bug in matplotlib and/or your machine's registry :) -- ___ Python tracker

[issue23936] Wrong references to deprecated find_module instead of find_spec

2015-12-03 Thread Thomas Kluyver
Thomas Kluyver added the comment: I also ran into confusion with this while trying to write an import hook. Attached is my shot at a docs patch. I've done a slightly larger rewording, trying to make it easier to understand, and added more links between parts of the docs. I left mentions of

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-03 Thread Zachary Ware
Zachary Ware added the comment: There's also backward compatibility to consider here; someone somewhere is depending on getting back \0 in his REG_SZes. If we were to make a change, it could only go in 3.6. With that restriction, I don't see a particularly nice way to get the same behavior

[issue25789] py launcher stderr is not piped to subprocess.Popen.stderr

2015-12-03 Thread Wolfgang Maier
New submission from Wolfgang Maier: from the console: > py -3.7 or any other not installed Python version gives: Requested Python version (3.7) not installed However, when the launcher is executed from python via subprocess.Popen: >>>import subprocess >>>p=subprocess.Popen(['py', '-3.7'],

[issue25788] fileinput.hook_encoded has no way to pass arguments to codecs

2015-12-03 Thread Laura Creighton
Laura Creighton added the comment: I haven't made a patch to Python for over 10 years. Before mercurial. :) Where do you start in terms of 'how to submit a patch'? -- components: -Library (Lib) type: enhancement -> versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5

[issue25788] fileinput.hook_encoded has no way to pass arguments to codecs

2015-12-03 Thread R. David Murray
R. David Murray added the comment: Mercurial didn't change the patch submission process (we're talking about making such changes on python-workflow now...or rather enhancements as the current process should continue to work). The only thing that mercurial changed is how you get a copy of the

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-03 Thread random832
random832 added the comment: Your "backward compatibility" argument makes me think of https://xkcd.com/1172/ 99% of programs written in C or other languages will cut the value off at the first null. One consequence of which is that no-one (except an unfortunate Python program) will _notice_

[issue12923] test_urllib fails in refleak mode

2015-12-03 Thread R. David Murray
Changes by R. David Murray : -- nosy: +martin.panter ___ Python tracker ___ ___

[issue24903] Do not verify destdir argument to compileall

2015-12-03 Thread R. David Murray
Changes by R. David Murray : -- stage: needs patch -> commit review ___ Python tracker ___

[issue25790] shutil.chown function enhancement

2015-12-03 Thread YoSTEALTH
New submission from YoSTEALTH: A very simple but useful enhancement for shutil.chown function Currently "shutil.chown" function effects only one directory or file user/group permission by adding "recursive" parameter it can easily effect all sub-directories/files Source:

[issue22709] restore accepting detached stdin in fileinput binary mode

2015-12-03 Thread R. David Murray
Changes by R. David Murray : -- stage: -> commit review ___ Python tracker ___ ___

[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2015-12-03 Thread R. David Murray
Changes by R. David Murray : -- stage: -> commit review ___ Python tracker ___ ___

[issue25793] ">""

2015-12-03 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file41229/s.php ___ Python tracker ___

[issue25787] Add an explanation what happens with subprocess parent and child processes when signals are sent

2015-12-03 Thread Martin Panter
Martin Panter added the comment: These are mainly questions of the OS, not really of Python or the subprocess module. I’m not sure the Python documentation is the right place for this information, unless it gives a misleading impression. At least in Unix, signals may be sent to the child

[issue25790] shutil.chown function enhancement

2015-12-03 Thread YoSTEALTH
YoSTEALTH added the comment: Thanks David. I hope this is what a patch file should be! Attached. -- keywords: +patch Added file: http://bugs.python.org/file41230/shutil.patch ___ Python tracker

[issue25793] spam

2015-12-03 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed title: ">"" spam ___ Python tracker

[issue25790] shutil.chown function enhancement

2015-12-03 Thread R. David Murray
R. David Murray added the comment: You still didn't describe in prose what your proposed enhancement is, but looking at the patch I can now see you are proposing to add a recursive flag. This has already been proposed and discussed, and the conclusion was a separate function would be better

[issue23936] Wrong references to deprecated find_module instead of find_spec

2015-12-03 Thread Martin Panter
Martin Panter added the comment: Thanks for adding that link to ModuleSpec, it is definitely needed to make sense of a lot of stuff. I left some review comments and questions. If the behaviour of sys.meta_path has changed, I think it needs a “New/changed in version X” notice. If it makes the

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-03 Thread Eryk Sun
Eryk Sun added the comment: > I don't like the idea of having a mismatch between what we set and > what we get, even if what we're setting technically shouldn't be > allowed. Currently if you set a string with null, you won't see it using either regedit.exe or reg.exe: >>> import os,

[issue25778] winreg.EnumValue does not truncate strings correctly

2015-12-03 Thread Zachary Ware
Zachary Ware added the comment: Ok, that example is an argument I'll accept. I'll give the patch another couple of days for others to review, and commit if nobody beats me to it. It's too late for 3.5.1, but it can probably make 3.4.4. -- stage: patch review -> commit review

[issue14285] Traceback wrong on ImportError while executing a package

2015-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset c4e950338e79 by Martin Panter in branch '2.7': Issue #14285: Do not catch ImportError from __init__.py in runpy https://hg.python.org/cpython/rev/c4e950338e79 -- ___ Python tracker

[issue14285] Traceback wrong on ImportError while executing a package

2015-12-03 Thread Martin Panter
Martin Panter added the comment: Even with my committed fix, tracebacks triggered by initializing a parent package are still suppressed: $ ./python -m hello Traceback (most recent call last): File "/media/disk/home/proj/python/cpython/Lib/runpy.py", line 158, in _run_module_as_main

[issue23220] Documents input/output effects of how IDLE runs user code

2015-12-03 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25787] Add an explanation what happens with subprocess parent and child processes when signals are sent

2015-12-03 Thread Karl Richter
Karl Richter added the comment: Please also explain how to deal with process replacement in child processes (assuming that http://stackoverflow.com/questions/34059576/how-to-register-a-signal-handler-for-a-subprocess/34065587#34065587 is correct). --

[issue19543] Add -3 warnings for codec convenience method changes

2015-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset c89a0f24d5f6 by Serhiy Storchaka in branch '2.7': Issue #19543: Added Py3k warning for decoding unicode. https://hg.python.org/cpython/rev/c89a0f24d5f6 -- ___ Python tracker

[issue25789] py launcher stderr is not piped to subprocess.Popen.stderr

2015-12-03 Thread Eryk Sun
Eryk Sun added the comment: The error() function in PC/launcher.c should call exit(rc) instead of ExitProcess(rc). This allows the CRT to terminate properly and flush the stderr FILE stream. With this change it works as expected: >>> import subprocess >>> p =