[issue30749] Non-atomic and unusual (wrong) rename behavior under OS X

2017-06-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: What version of macOS did you test on? -- ___ Python tracker ___ ___

[issue6739] IDLE: refuse invalid key bindings

2017-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Guilherme, thank you for the patch. Sorry it took so long to be applied. Cheryl, thank you for making the PR. Writing invalid, exception-raising sequences to user config files was a definite bug. -- resolution: -> fixed stage: test needed ->

[issue6739] IDLE: refuse invalid key bindings

2017-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 64a0c266e78c6b5363668012fa7fb614f6018930 by terryjreedy in branch '3.6': [3.6] bpo-6739: IDLE: Check for valid keybinding in config_keys (GH-2377) (#2397) https://github.com/python/cpython/commit/64a0c266e78c6b5363668012fa7fb614f6018930

[issue29304] dict: simplify lookup functions

2017-06-25 Thread Tim Peters
Tim Peters added the comment: Oops! I undercounted the shifts in the current scheme: there's an additional shift for "perturb". That doesn't exist in the "double hashing" alternatives. -- ___ Python tracker

[issue29304] dict: simplify lookup functions

2017-06-25 Thread Tim Peters
Tim Peters added the comment: I suggest reading the thread I started here[1] before pursuing this: it looks very likely that the entire collision resolution scheme should be replaced with one of the "double hashing" ones given there, a bona fide algorithmic improvement for small tables and

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Osvaldo, could you please create a pull request on GitHub based on your first patch? But use list() instead of dict(). -- ___ Python tracker

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-06-25 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: Has enough time passed that you can use the C11 atomic types and operations instead of special-casing these for each compiler? (e.g. http://en.cppreference.com/w/c/atomic/atomic_store) -- ___ Python tracker

[issue6739] IDLE: refuse invalid key bindings

2017-06-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2444 ___ Python tracker ___ ___

[issue6739] IDLE: refuse invalid key bindings

2017-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8c78aa70c888a370af18896a72cabd00e4120f09 by terryjreedy (csabella) in branch 'master': bpo-6739: IDLE: Check for valid keybinding in config_keys (#2377) https://github.com/python/cpython/commit/8c78aa70c888a370af18896a72cabd00e4120f09

[issue29304] dict: simplify lookup functions

2017-06-25 Thread Xavier G. Domingo
Changes by Xavier G. Domingo : -- nosy: +xgdomingo ___ Python tracker ___ ___

[issue30757] pyinstaller can be added to docs, py2exe ref can be updated

2017-06-25 Thread Denis Akhiyarov
Changes by Denis Akhiyarov : -- pull_requests: +2443 ___ Python tracker ___ ___

[issue30757] pyinstaller can be added to docs, py2exe ref can be updated

2017-06-25 Thread Denis Akhiyarov
New submission from Denis Akhiyarov: https://github.com/python/cpython/pull/1158 It is not clear why this FAQ item is written in addition to this document: https://github.com/python/cpython/blob/master/Doc/faq/windows.rst#how-do-i-make-python-scripts-executable

[issue30756] ttk: GUI tests fail on Ubuntu

2017-06-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch type: -> behavior ___ Python tracker ___

[issue30756] ttk: GUI tests fail on Ubuntu

2017-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: My Win 10 machine consistently runs 272 tests OK in 3 seconds. -- ___ Python tracker ___

[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-25 Thread Nick Coghlan
Nick Coghlan added the comment: We have quite a few of them: https://github.com/python/cpython/tree/master/Lib/test/crashers Python 2.7 is ancient, so our tolerance for intrusive interpreter level fixes to address rare problems that are easy to avoid at the development level is pretty low.

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-25 Thread Nick Coghlan
Nick Coghlan added the comment: Sorry, I wasn't clear: I don't see any problem for the cases that don't optimize local variable access, and don't think any of those should change. Instead, I think we should tighten up the formal specification of locals() to better match how it is actually

[issue17960] Clarify the required behaviour of locals()

2017-06-25 Thread Nick Coghlan
Changes by Nick Coghlan : -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___ ___

[issue30756] ttk: GUI tests fail on Ubuntu

2017-06-25 Thread Louie Lu
Changes by Louie Lu : -- components: +Tkinter title: GUI tests fail on Ubuntu -> ttk: GUI tests fail on Ubuntu ___ Python tracker ___

[issue30576] http.server should support HTTP compression (gzip)

2017-06-25 Thread Glenn Linderman
Glenn Linderman added the comment: "veery" should be "veering" in above comment, sorry. -- ___ Python tracker ___

[issue30576] http.server should support HTTP compression (gzip)

2017-06-25 Thread Glenn Linderman
Glenn Linderman added the comment: Martin, I understood what you meant, but sadly, doing that least to confusion. Follow your link, it displays fine, and then save the file. At least in Firefox, the default name to save as is "nGzip — A File Compressor.html". This looks appropriate, but the

[issue30749] Non-atomic and unusual (wrong) rename behavior under OS X

2017-06-25 Thread Alex Groce
Alex Groce added the comment: Checked, and this is a problem on Python 3 as well as 2.7. -- title: Non-atomic and unusual (wrong) rename behavior under OS X, Python 2.7.13 -> Non-atomic and unusual (wrong) rename behavior under OS X versions: -Python 2.7

[issue30687] build.bat should locate msbuild.exe rather than vcvarsall.bat

2017-06-25 Thread Steve Dower
Steve Dower added the comment: The bug is MSBuild 15.0 should be able to locate earlier versions of VC, even if you haven't installed it for VS 2017. -- ___ Python tracker

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Created issue 30756. On Sun, Jun 25, 2017 at 2:10 PM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > You should have enough data to open an issue; make Serhiy Storchaka (and > me) nosy. Does the same test fail

[issue30756] GUI tests fail on Ubuntu

2017-06-25 Thread Cheryl Sabella
New submission from Cheryl Sabella: Running the tests over up to date build on Ubuntu 16.04 64-bit. ./python -m test.test_ttk_guionly -v Sometimes this runs without failure and sometimes it 'hangs' and then produces failures. When it hangs, my computer freezes completely. As you can see,

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: You should have enough data to open an issue; make Serhiy Storchaka (and me) nosy. Does the same test fail consistently or not? % of failures. When it takes longer, is there a particular place in the stream of results where it pauses? When I run it on

[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-25 Thread George Shuklin
George Shuklin added the comment: Unfixed crash of code interpreter? This is sad. -- ___ Python tracker ___

[issue7985] access to infinitely recursive list

2017-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Correction to the last message. Issue5765 was a 3.x issue. It was fixed for 3.3+, and it was decided to not fix it for 2.7 and 3.2. This issue is not reproduced in 3.3+. -- nosy: +serhiy.storchaka ___ Python

[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Which is a duplicate of issue5765 fixed for Python 3.3+. It was decided to not fix issue5765 for 2.7. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> stack overflow evaluating eval("()"

[issue27945] Various segfaults with dict

2017-06-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2442 ___ Python tracker ___ ___

[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: Looks like a duplicate of http://bugs.python.org/issue7985 -- nosy: +mark.dickinson ___ Python tracker ___

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2017-06-25 Thread Matthew Woodcraft
Matthew Woodcraft added the comment: That alias (C.UTF-8 to en_US.UTF-8) is surely a bug in itself nowadays. I've filed #30755 . -- nosy: +mattheww ___ Python tracker

[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2017-06-25 Thread Matthew Woodcraft
New submission from Matthew Woodcraft: I have a system where the default locale is C.UTF-8, and en_US.UTF-8 is not installed. But locale.normalize() unhelpfully converts "C.UTF-8" to "en_US.UTF-8". So the following crashes for me: python3.6 -c "import locale;locale.setlocale(locale.LC_ALL,

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Sometimes that test fails and sometimes it doesn't, even if I run it several times in a row. When it does fail, it runs a lot longer than when it doesn't. So, I'm trying to figure out the difference before reporting it. Since the failure takes time, I'm

[issue30687] build.bat should locate msbuild.exe rather than vcvarsall.bat

2017-06-25 Thread Pär Björklund
Pär Björklund added the comment: I don't believe that this is a bug in Visual Studio as MSBuild is used for .NET projects as well it should be available even without the C++ tooling installed. Checking for the targets file seems like a workable solution. --

[issue30754] textwrap.dedent mishandles empty lines

2017-06-25 Thread Julian Berman
New submission from Julian Berman: ⊙ python2 -c 'from textwrap import dedent; print repr(dedent(" " * 2 + "\n" + " " * 4 + "\n"))' '\n\n' instead of the presumed '\n \n' The same appears to be the case for py3.6. (At first glance, this seems unrelated to http://bugs.python.org/issue19479

[issue30703] test_multiprocessing_forkserver hangs on the master branch

2017-06-25 Thread Matt Billenstein
Matt Billenstein added the comment: Yes, I'll email you the details. -- ___ Python tracker ___ ___

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-06-25 Thread Steve Dower
Steve Dower added the comment: > Would there be any interest of implementing them for MSVC/ARM as well Sure, since you're there. It's not easy to test, but I know people who are doing it, so it'll get noticed eventually. Maybe there's some sort of stress test we can write that is likely to

[issue30753] not able to execute print command on page 16 of documentation

2017-06-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is a bug in your code, not Python, and the error tells you how to fix it. You have to indent the block. >>> while b < 1000: ... print(b, end=',') ... a, b = b, a+b Remember to press TAB or spacebar inside indented blocks. You should work

[issue30753] not able to execute print command on page 16 of documentation

2017-06-25 Thread Vishal Devgn
New submission from Vishal Devgn: >>> a, b = 0, 1 >>> while b < 1000: ... print(b, end=',') ... a, b = b, a+b in 3.6 as soon as i write print command, it displays an indentation error. -- files: 1.png messages: 296821 nosy: Vishal Devgn priority: normal severity: normal status: open

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-06-25 Thread Pär Björklund
Pär Björklund added the comment: Antoine said it best. It's very hard to prove that this code is correct or incorrect as it requires multiple threads accessing the same variable and very specific timings to produce an actual issue. My PR only solved half of the issue because I didn't really

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-25 Thread Stefan Behnel
Stefan Behnel added the comment: Can the PR be applied then? It looks good to me. -- ___ Python tracker ___

[issue30752] Basic subtraction is wrong ( 1.83 - 1.52 == 0.31000000000000005)

2017-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: This is working as expected. Python's floats use the hardware-provided _binary_ floating-point format, which can't represent every finite decimal value exactly. I recommend reading https://docs.python.org/3.6/tutorial/floatingpoint.html for more information.

[issue30752] Basic subtraction is wrong ( 1.83 - 1.52 == 0.31000000000000005)

2017-06-25 Thread René Podlogar
New submission from René Podlogar: My Python-Installations Python 2.7.12, Python 3.4.5 @linux64 and the CLI on the python.org-Website (interactive shell) affected: Python 3.6.0 (default, Jan 13 2017, 00:00:00) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-25 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: -2416 ___ Python tracker ___ ___

[issue30695] add a nomemory_allocator to the _testcapi module

2017-06-25 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: -2415 ___ Python tracker ___ ___

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-06-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: The general issue those macros want to prevent is that modern CPUs have a tendency to execute a lot of stuff out-of-order, *including* memory operations. From the perspective of a single hardware core (or thread, really), that's fine since it has a

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2017-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The part of this issue ('=' in putenv()) is fixed in issue30746. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue30746] Reject environment variable names containing '='

2017-06-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30746] Reject environment variable names containing '='

2017-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 787826c9316b03ac8a197078ec1cdf98fa840c5c by Serhiy Storchaka in branch '2.7': [2.7] bpo-30746: Prohibited the '=' character in environment variable names (GH-2382) (#2393)

[issue30746] Reject environment variable names containing '='

2017-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 99e9eb6111ef6a11bfff358866c9f2b0c201ac08 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30746: Prohibited the '=' character in environment variable names (GH-2382) (#2392)

[issue30746] Reject environment variable names containing '='

2017-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9c2dc0c58a878ac3d1c44dd0048f8e1cfab2790e by Serhiy Storchaka in branch '3.6': [3.6] bpo-30746: Prohibited the '=' character in environment variable names (GH-2382) (#2391)

[issue30746] Reject environment variable names containing '='

2017-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset af5392f5c6f8014659e995840df6ee7b5017f743 by Serhiy Storchaka in branch 'master': bpo-30746: Port more tests for os.spawnvpe() and os.execve() from 2.7. (#2394) https://github.com/python/cpython/commit/af5392f5c6f8014659e995840df6ee7b5017f743

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-25 Thread Nathaniel Smith
Nathaniel Smith added the comment: Interesting idea! I'm not sure I fully understand how it would work though. What would you do for the frames that don't use the fast array, and where locals() currently returns the "real" namespace? How are you imagining that the trace function writeback

[issue30422] Add roadmap.txt section to idlelib

2017-06-25 Thread 18z
18z added the comment: I strongly agree with the idea of writing documents that describe a bit of history to help orient new contributors to IDLE as to where the involved contributors see it going. As a new comer, before I started to trace the codes of idlelib. A question bothers me all the

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-25 Thread Nick Coghlan
Nick Coghlan added the comment: To make the behaviour more consistent in 3.7, I'd be more inclined to go in the other direction: make locals() return a truly independent snapshot when used in a function, rather than sharing a single snapshot between all locals() calls. Shared snapshots that

[issue30647] CODESET error on AMD64 FreeBSD 10.x Shared 3.x caused by the PEP 538

2017-06-25 Thread Nick Coghlan
Nick Coghlan added the comment: Current status of the PR: - testing suggests that "nl_langinfo(CODESET)" fails with LC_CTYPE=UTF-8 on Mac OS X as well, but that doesn't matter for Python start-up, since we hardcode UTF-8 as the locale encoding and never call nl_langinfo - on Linux however,

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-25 Thread Nathaniel Smith
Nathaniel Smith added the comment: It isn't obvious to me whether the write-through proxy idea is a good one on net, but here's the rationale for why it might be. Currently, the user-visible semantics of locals() and f_locals are a bit complicated. AFAIK they aren't documented anywhere

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-06-25 Thread Ammar Askar
Ammar Askar added the comment: Looks like that error is coming from the fact that the Powershell on that buildbot is outdated. As the documentation notes: https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/invoke-webrequest > This cmdlet was introduced in