[issue2943] Distutils should generate a better error message when the SDK is not installed

2016-03-30 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue26673] Tkinter error when opening IDLE configuration menu

2016-03-30 Thread SilentGhost
Changes by SilentGhost : -- components: +Tkinter nosy: +gpolo, kbk, roger.serwy, serhiy.storchaka, terry.reedy ___ Python tracker

[issue26488] hashlib command line interface

2016-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur. The blocksize should be fixed and large (perhaps 256kB). -- ___ Python tracker ___

[issue26653] bisect raises a TypeError when hi is None

2016-03-30 Thread Mike Lenzen
Mike Lenzen added the comment: Sounds good, but then I think the docs could be clearer about this. I scratched my head at the function signature bisect.bisect_left(a, x, lo=0, hi=len(a)) because it isn't valid (in Python, maybe in C?), so I checked the source and saw hi=None. I'm not sure how

[issue26675] Appending to a large list flushes old entries

2016-03-30 Thread Swaprava Nath
Swaprava Nath added the comment: I realised that this is a normal behavior, I just had two for loops, nested, and every time the inner for loop runs, the list flushes. No worries, sorry! -- resolution: -> not a bug ___ Python tracker

[issue26675] Appending to a large list flushes old entries

2016-03-30 Thread Swaprava Nath
Changes by Swaprava Nath : -- status: open -> closed ___ Python tracker ___ ___

[issue26675] Appending to a large list flushes old entries

2016-03-30 Thread Swaprava Nath
Changes by Swaprava Nath : Removed file: http://bugs.python.org/file42330/knapsack.py ___ Python tracker ___

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Demur Rumed
Demur Rumed added the comment: Added back HAVE_ARGUMENT & HAS_ARG. As a result printing has removed arguments Removed some code which was labelled unrelated This does _not_ include having f_lasti be -1 instead of -2 -- Added file: http://bugs.python.org/file42331/wpy2.patch

[issue26675] Appending to a large list flushes old entries

2016-03-30 Thread Swaprava Nath
New submission from Swaprava Nath: I'm storing several variables in a list after a computation in a for loop. I'm bundling the variables in a tuple and appending this tuple to a list. So, the structure should be: iter 1: list = [tuple1] iter 2: list = [tuple1, tuple2] iter 3: list = [tuple1,

[issue26674] 【typo】 Japanese Documentation

2016-03-30 Thread Ezio Melotti
Ezio Melotti added the comment: The Japanese translation is not officially maintained by us -- you should report this to the translators. They should also update the page at http://docs.python.jp/3/bugs.html since it points to this bug tracker (I assume this is how you got here). Thanks

[issue26674] 【typo】 Japanese Documentation

2016-03-30 Thread Eitaro Kuwabara
New submission from Eitaro Kuwabara: I found a tiny typo in Japanese Documentation(Python3.5.1) http://docs.python.jp/3/library/pathlib.html#general-properties あなたが今までこのモジュールを使用したことがないか、あなたの作業にどのクラスを使うのが正しいのか自身がないのであれば、Path はもっともあなたに必要なものです。Path はコードが実行されているプラットフォーム用の 具象パス のインスタンスを作成します。

[issue26658] test_os fails when run on Windows ramdisk

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: I'm fine with the tests for CreateFunction failing for an ImDisk virtual drive, however something needs to be changed with the test to not remove the test directory on tearDown(). Changing it to use a temporary directory to link against is a workaround, but

[issue2943] Distutils should generate a better error message when the SDK is not installed

2016-03-30 Thread Karl Stahl
Changes by Karl Stahl : -- nosy: +Karl Stahl ___ Python tracker ___ ___ Python-bugs-list

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-03-30 Thread wim glenn
Changes by wim glenn : -- nosy: +wim.glenn ___ Python tracker ___ ___ Python-bugs-list

[issue26623] JSON encode: more informative error

2016-03-30 Thread Mahmoud Lababidi
Mahmoud Lababidi added the comment: Is there a use case where the representation is too long? I think it may be useful to see the representation, but perhaps you are correct. -- ___ Python tracker

[issue18844] allow weights in random.choice

2016-03-30 Thread Steven Basart
Steven Basart added the comment: Hey serhiy.storchaka I can edit the code to output just one value if called with simply a list and then return a list of values if called with the optional amount parameter. My code also needs to check that amount >= 1. My code was mostly just to restart

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Brett Cannon
Brett Cannon added the comment: Thanks to Demur and Raymond for running the benchmarks. All of these numbers look good and with Raymond saying the code looks cleaner and everyone so far -- including me -- liking the overall idea this definitely seems worth continuing to work on. Thanks for

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___

[issue26494] Double deallocation on iterator exhausting

2016-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 905b5944119c by Serhiy Storchaka in branch '3.5': Issue #26494: Fixed crash on iterating exhausting iterators. https://hg.python.org/cpython/rev/905b5944119c New changeset 73ce47d4a7b2 by Serhiy Storchaka in branch 'default': Issue #26494: Fixed

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Steve Dower
Steve Dower added the comment: Ergh... that's awkward (but it explains why some of my own machines are missing bits). Victor, I'll get back to you about the watchdog once I'm at an actual PC. This week I'm at a conference. -- ___ Python tracker

[issue26658] test_os fails when run on Windows ramdisk

2016-03-30 Thread Eryk Sun
Eryk Sun added the comment: I see now. It's not a problem with the junction. In the stat implementation, after verifying that the directory or file is a reparse point, it opens it again without FILE_FLAG_OPEN_REPARSE_POINT, in order to open the target instead of the link. I don't understand

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: After attempting to find the installer for ucrtbased.dll on my dev machine and reading various blog posts on the Visual C++ Team Blog and hunting through several KB articles, I've come across what I think is needed for an up-to-date Universal CRT. When

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Report on Darwin Raymonds-2013-MacBook-Pro.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64 i386 Total CPU cores: 8 ### 2to3 ### Min: 4.680941 -> 4.437426: 1.05x faster Avg: 4.703692 ->

[issue26673] Tkinter error when opening IDLE configuration menu

2016-03-30 Thread wysaard
New submission from wysaard: I'm using Python 3.5.1 on Arch Linux. I've restalled the python package which provides IDLE, and the tkinter package which is used by IDLE, but to no effect. My problem is this: When in the menu at the top in IDLE, I click on Options -> Configure IDLE, the menu

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Steve Dower
Steve Dower added the comment: So you've still got the old ucrtbased.dll on the buildbot, which is why we're still seeing the issue. Because it's a different OS I'm not surprised to see a difference between ucrtbase.dll instances. There should be an installer for the debug runtime somewhere

[issue26655] pathlib glob case sensitivity issue on Windows

2016-03-30 Thread Udo Eberhardt
Udo Eberhardt added the comment: Meanwhile I realized this problem as well. There is no easy solution to determine exact spelling of the entire path. So it seems there is no simple solution to my problem. The concept of treating file system paths case-insensitive (as Windows does) seems to be

[issue26658] test_os fails when run on Windows ramdisk

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: To reproduce: P:\python-default>PCBuild\amd64\python_d.exe Python 3.6.0a0 (default:708beeb65026, Mar 30 2016, 08:50:27) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os, _winapi >>>

[issue26488] hashlib command line interface

2016-03-30 Thread Christian Heimes
Christian Heimes added the comment: I see a potential performance issue here. The block size is a small value, usually a couple of kb. With such a small value, the runtime will be dominated by Python call overhead and syscalls. -- ___ Python

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: I would have responded sooner, but add me to the list of those not receiving tracker notifications... My buildbot is running Windows 7 with all updates (last checked 3/29) and VS2015 Update 1. ucrtbase: 10.0.10586.9 (11/19/2015) ucrtbased:

[issue26655] pathlib glob case sensitivity issue on Windows

2016-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For now glob(r'c:\very\long\case\insensitive\path\*.txt') have to iterate names only in one directory. For restoring actual path case it have to iterate all parent directories: r'c:\very\long\case\insensitive\path', r'c:\very\long\case\insensitive',

[issue26488] hashlib command line interface

2016-03-30 Thread Aviv Palivoda
Aviv Palivoda added the comment: Sorry on the late response for some reason i don't receive email notification from the tracker for the past few days. 1) Thanks for the review SilentGhost the patch attached include your CR suggestions. 2) Raymond I have fixed the problem with ctrl+D. I tried

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Demur Rumed
Demur Rumed added the comment: While it's good to know benchmarking in core Python goes beyond the microbenchmarks included in the distribution, I'm having some trouble with hg.python.org/benchmarks due to my system only having 256MB of ram I've attached results for 2 benchmarks: 2to3 & regex

[issue26672] regrtest missing in the module name

2016-03-30 Thread Axel Luttgens
New submission from Axel Luttgens: Relevant page: https://docs.python.org/2/library/test.html One may read (section 25.5.2): Specifying all as the value for the -u option enables all possible resources: python -m test -uall. I guess this should be: Specifying all as the

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I'm seeing about a 7% improvement to pystone. -- ___ Python tracker ___

[issue26670] Add a developer mode: -X dev command line option

2016-03-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: Why does this patch execv() the interpreter to set options? I'd expect it to be possible to get the same result by updating the argument parsing code in Py_Main. -- nosy: +ronaldoussoren ___ Python tracker

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Demur, I think you're on the right track here. It will nice to be rid of the HAVE_ARGUMENT tests and to not have to decode the arguments one-byte at a time. Overall, the patch looks good (although it includes several small unrelated changes). Besides

[issue26027] Support Path objects in the posix module

2016-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Clean up path_converter in posixmodule.c ___ Python tracker ___

[issue26671] Clean up path_converter in posixmodule.c

2016-03-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: path_converter in Modules/posixmodule.c sequentially tries to convert an argument to str, bytes, and int. If previous conversion is failed, it clears the error and tries with type. This can hide some errors (such as MemoryError) and even cause using

[issue18844] allow weights in random.choice

2016-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I disagree. My patch adds two functions because they serve two different purposes. weighted_choice() returns one random value as other functions in the random module. weighted_choice_generator() provides more efficient way to generate random values, since

[issue26670] Add a developer mode: -X dev command line option

2016-03-30 Thread STINNER Victor
New submission from STINNER Victor: Attached patch implements the idea proposed on the python-ideas mailing list: https://mail.python.org/pipermail/python-ideas/2016-March/039314.html The patch is a proof-of-concept. The code still contains FIXME. -- files: dev_mode.patch keywords:

[issue26509] spurious ConnectionAbortedError logged on Windows

2016-03-30 Thread Sebastien Bourdeauducq
Sebastien Bourdeauducq added the comment: Can someone please commit the patch? -- ___ Python tracker ___ ___

[issue26653] bisect raises a TypeError when hi is None

2016-03-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue26669] time.localtime(float("NaN")) does not raise a ValueError on all platforms

2016-03-30 Thread Gregory P. Smith
New submission from Gregory P. Smith: time.localtime(float("NaN")) raises a ValueError on x86_64 using the few compilers I have tested it with. (this makes sense) >>> time.localtime(float("NaN")) Traceback (most recent call last): File "", line 1, in ValueError: (75, 'Value too large for

[issue18844] allow weights in random.choice

2016-03-30 Thread Steven Basart
Steven Basart added the comment: Hello rhettinger. I filled out the form thanks for letting me know about it. Is there anything else I have to do? Hey serhiy.storchaka There were several things "wrong" with the previous implementation in my opinion. 1st they tried to add too much. Which

[issue26295] Random failures when running test suite in parallel (-m test -j0) caused by test_regrtest

2016-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset e47e00723e5d by Victor Stinner in branch 'default': Issue #26295: Enhanc test_regrtest.test_tools_script_run_tests() https://hg.python.org/cpython/rev/e47e00723e5d -- ___ Python tracker

[issue26295] Random failures when running test suite in parallel (-m test -j0) caused by test_regrtest

2016-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset e29f12ed by Victor Stinner in branch 'default': Issue #26295: Fix test_regrtest.test_tools_buildbot_test() https://hg.python.org/cpython/rev/e29f12ed -- ___ Python tracker