[issue35208] IDLE: Squeezed lines count ignores window width

2018-12-13 Thread Tal Einat
Tal Einat added the comment: My mistake on the reproduction; try: print('a'*1+'\n'). It does not trigger auto-squeezing, though this is an obvious case where it should be triggered. (Manual squeezing also results in showing just 1 as the line count.) --

[issue34313] Tkinter crashes with Tk-related error on macOS with ActiveTcl 8.6

2018-12-13 Thread Tal Einat
Tal Einat added the comment: We already have a warning about Tk versions on macOS, see macosx.tkVersionWarning(). It is currently printed in new shell windows.It would be straightforward to add warnings when using anything other than 8.5.18 or 8.6.8+. I suggest this approach. As for

[issue35488] pathlib Path.match does not behave as described

2018-12-13 Thread anthony shaw
New submission from anthony shaw : The documentation for pathlib PurePath.match(needle) says it accepts "glob-style pattern.". For an absolute path with a recursive pattern (**) it doesn't match correct for more than 1 directory level. All of the assertions in the attached file should pass.

[issue35487] setup()'s package_data not following directory symlink

2018-12-13 Thread F. Eugene Aumson
F. Eugene Aumson added the comment: The two environments in question (a 3.7.1 one, and a 3.7.0 one) differ in other ways. I have done an apples-to-apples comparison of those two versions, in the same local environment, and this issue does not exist. Sorry for the noise. -- stage:

[issue35485] Mac: tkinter windows turn black while resized

2018-12-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume that tip has patches not in the distributed 8.6.9. Ned, if my system is not unique and this is fixed by an identifiable patch, please consider including it. -- keywords: +3.7regression ___ Python

[issue35208] IDLE: Squeezed lines count ignores window width

2018-12-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are 2 questions. 1. Should we review squeezer, in light of further complemplation and experience, and possibly patch it in a couple of weeks or so? Yes. 2. Is there such a severe bug that we should possibly rush a fix and ask Ned to cherry-pick

[issue35487] setup()'s package_data not following directory symlink

2018-12-13 Thread F. Eugene Aumson
New submission from F. Eugene Aumson : I have a package using setup.py. I want the package to include some data files, which are located in my source directory. Building my package in my 3.7.0 environment includes the data files as expected. Building the same exact package in my 3.7.1

[issue35485] Mac: tkinter windows turn black while resized

2018-12-13 Thread Kevin Walzer
Kevin Walzer added the comment: Cannot reproduce this with the tip of Tk core-8-6-branch on Mojave and IDLE 3.7.1. Window appears normal and no flickering when resizing. -- ___ Python tracker

[issue35486] subprocess module breaks backwards compatibility with import hooks

2018-12-13 Thread David Wilson
David Wilson added the comment: Having considered this for a few hours, it seems the following is clear: - 3.6 introduces ModuleImportError - 3.7 begins using it within importlib - 3.8 first instance of stdlib code catching it - PEP-302 and PEP-451 are the definitive specifications for how

[issue35486] subprocess module breaks backwards compatibility with import hooks

2018-12-13 Thread David Wilson
Change by David Wilson : -- title: subprocess module breaks backwards compatibility with older import hooks -> subprocess module breaks backwards compatibility with import hooks ___ Python tracker

[issue35486] subprocess module breaks backwards compatibility with older import hooks

2018-12-13 Thread David Wilson
David Wilson added the comment: Corrected GitHub link for the commit: https://github.com/python/cpython/commit/880d42a3b24 -- ___ Python tracker ___

[issue35486] subprocess module breaks backwards compatibility with older import hooks

2018-12-13 Thread David Wilson
New submission from David Wilson : The subprocess package since 880d42a3b24 / September 2018 has begun using this idiom: try: import _foo except ModuleNotFoundError: bar However, ModuleNotFoundError may not be thrown by older import hook implementations, since that subclass was only

[issue35402] Upgrade macOS and Windows installers to Tcl 8.6.9 and Tk 8.6.9.1

2018-12-13 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +10377 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34313] Tkinter crashes with Tk-related error on macOS with ActiveTcl 8.6

2018-12-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I get it now. [:8] meant .0 to .7 inclusive, like range(8). I understand that until last spring, the tcl/tk/tkinter situation on Mac was a bit like the old American wild west. But then Ned more or less tamed it for 3.7 and now 3.6. We no longer install

[issue34313] Tkinter crashes with Tk-related error on macOS with ActiveTcl 8.6

2018-12-13 Thread Tal Einat
Tal Einat added the comment: > Vlad says in msg323040 "on 8.6.8 I didn't see issues" and in msg326778 "The > issues appear with ... Tk 8.6.[:8]". Different 'issues'? Nope, same issues: Vlad was saying that 8.6.x versions of Tcl/Tk *before* 8.6.8 displayed these issues, but 8.6.8 is fine.

[issue35402] Upgrade macOS and Windows installers to Tcl 8.6.9 and Tk 8.6.9.1

2018-12-13 Thread Steve Dower
Steve Dower added the comment: Setting DefaultWindowsSdkVersion to 10.0.15063.0 seems to work for the Python 3.7 and 3.8 builds. Unless there's a security reason (which I don't believe there is), there's no need to worry about 3.6. -- versions: -Python 3.6

[issue34313] Tkinter crashes with Tk-related error on macOS with ActiveTcl 8.6

2018-12-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I installed 64-bit 3.7.2rc1 on my Macbook, with 8.6.9, and so far IDLE itself runs fine. (Other than new blackout issue reported in #34313.) I will let someone else test 32/64 bit release, which Ned says also uses 8.6.9. Vlad says in msg323040 "on 8.6.8 I

[issue35485] Mac: tkinter windows turn black while resized

2018-12-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35485] Mac: tkinter windows turn black while resized

2018-12-13 Thread Terry J. Reedy
New submission from Terry J. Reedy : I updated to Mohave and did *not* switch to new dark theme.] I installed 64 bit 3.7.2rc1. Start IDLE. import tkinter root = tkinter.Tk() Black on white Tk window appears. Move mouse until resize arrow appears. Left click. Move mouse. Window turns

[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2018-12-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.5 is and 3.6 will soon be on security fix only status. Robert, please verify that this is still an issue with 3.7 and the current build files. -- nosy: +terry.reedy versions: +Python 3.7 -Python 3.5, Python 3.6

[issue35465] [asyncio] Document loop.add_signal_handler

2018-12-13 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Done, https://github.com/python/cpython/pull/11145 -- ___ Python tracker ___ ___ Python-bugs-list

[issue35465] [asyncio] Document loop.add_signal_handler

2018-12-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +10376 stage: -> patch review ___ Python tracker ___ ___

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-13 Thread Marcin
Marcin added the comment: I'm very honoured with your request. Doing this for the first time with Python, hope you can accept it despite warnings. https://github.com/python/cpython/pull/11144 -- ___ Python tracker

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +10375 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34766] BaseProxy cache should be cleaned when Manager client is reconnected

2018-12-13 Thread Yongnan Wu
Yongnan Wu added the comment: pong -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35484] Segmentation fault due to faulthandler on Solaris

2018-12-13 Thread Jakub Kulik
Jakub Kulik added the comment: The exact failing test is test_register_chain(). Output of this failed test (as expected for segmentation fault): == FAIL: test_register_chain (test.test_faulthandler.FaultHandlerTests)

[issue35484] Segmentation fault due to faulthandler on Solaris

2018-12-13 Thread Jakub Kulik
Change by Jakub Kulik : Added file: https://bugs.python.org/file47994/reproduce.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35484] Segmentation fault due to faulthandler on Solaris

2018-12-13 Thread Jakub Kulik
New submission from Jakub Kulik : When running tests on Solaris (amd64) I noticed that one test in test_faulthandler.py fails with the segmentation fault. I have attached program reproducing this issue and its core stack trace. Program runs entirely with *Ending* printed as well and

[issue35483] tarfile.extractall on existing symlink in Ubuntu overwrites target file, not symlink, unlinke GNU tar

2018-12-13 Thread Michael Brandl
New submission from Michael Brandl : In Ubuntu 16.04, with python 3.5, as well as custom built 3.6 and 3.7.1: Given a file foo.txt (with content "foo") and a symlink myLink to it, packed in a tar, and a file bar.txt (with content "bar") with a symlink myLink to it, packed in another tar,

[issue35482] python372rc1.chm is ill

2018-12-13 Thread Ma Lin
Change by Ma Lin : Added file: https://bugs.python.org/file47991/372rc1_compile_progress.png ___ Python tracker ___ ___ Python-bugs-list

[issue35482] python372rc1.chm is ill

2018-12-13 Thread Ma Lin
Change by Ma Lin : Added file: https://bugs.python.org/file47990/371_compile_progress.png ___ Python tracker ___ ___ Python-bugs-list

[issue35482] python372rc1.chm is ill

2018-12-13 Thread Ma Lin
Change by Ma Lin : Added file: https://bugs.python.org/file47989/372rc1_chm_files.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35482] python372rc1.chm is ill

2018-12-13 Thread Ma Lin
New submission from Ma Lin : python372rc1.chm can't be opened, it seems the compiling is not successful. Compare to python371.chm, the file size reduced a lot: python371.chm 8,534,435 bytes python372rc1.chm 5,766,102 bytes Some files in chm are missing, see attached pictures:

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-13 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch pull_requests: +10374 stage: -> patch review ___ Python tracker ___ ___

[issue35481] Run Tasks cannot Concurrent

2018-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: A task should have `await` inside to give to loop a chance to switch to another task (or get canceled). It is not an asyncio bug but a part of specified behavior. Your code could be modified as async def readdev(dev): while True:

[issue35208] IDLE: Squeezed lines count ignores window width

2018-12-13 Thread Tal Einat
Tal Einat added the comment: Note the lack of newline at the end; that triggers the problematic path in the current calculation. -- ___ Python tracker ___

[issue35208] IDLE: Squeezed lines count ignores window width

2018-12-13 Thread Tal Einat
Tal Einat added the comment: As I mentioned when opening this issue: 'a'*200 (or 'a'*1). -- ___ Python tracker ___ ___

[issue35208] IDLE: Squeezed lines count ignores window width

2018-12-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the example I gave on the PR, 200 70 char lines, the squeezed box says 200 lines with or without line wrapping (before the patch). What is a simple case that you think is buggy? -- ___ Python tracker

[issue35367] FileExistsError During os.symlink() Displays Arrow in the Wrong Direction

2018-12-13 Thread Windson Yang
Change by Windson Yang : -- pull_requests: +10373 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35208] IDLE: Squeezed lines count ignores window width

2018-12-13 Thread Tal Einat
Tal Einat added the comment: Squeezer currently does take wrapping into account, i.e. it does take IDLE's "soft" line wrapping into account when counting lines. Therefore the auto-squeeze criterion of "at least X lines" does lead to auto-squeezing for any mixture of very long lines and/or

[issue31446] _winapi.CreateProcess (used by subprocess) is not thread-safe

2018-12-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue35472] python 3.7.2 rc1 bumped the build requirements for no reason

2018-12-13 Thread Matthias Klose
Matthias Klose added the comment: "if one uses the doc Makefile venv target". which is not possible for distributions which are not allowed to use anything but the distro to build the distro. so why bumping the version requirement to 1.7 instead of 1.6.6? Afaicu this is the required

[issue31446] _winapi.CreateProcess (used by subprocess) is not thread-safe

2018-12-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Information about borrowed references is taken from Doc/data/refcounts.dat. -- ___ Python tracker ___

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10372 stage: needs patch -> patch review ___ Python tracker ___

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: docs@python -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2018-12-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: >>My gut feeling is that this is some issue with your system or environment. > I Doubt it, happens with another MacBook air which is literally out of the > box, no mods. But on the other hand most other users (including myself and Ned) don't have this

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-13 Thread Aaqa Ishtyaq
Aaqa Ishtyaq added the comment: I was going through the source code to understand what is going on, but I can't find any function that returns a borrowed reference for 'PyImport_AddModuleObject'. Also, should I need to familiar with these macros and how they work?

[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2018-12-13 Thread James Crowther
James Crowther added the comment: Hi Ronald, I've replied to your comments below >My gut feeling is that this is some issue with your system or environment. I Doubt it, happens with another MacBook air which is literally out of the box, no mods. >Some more questions: >- Is this is a

[issue35481] Run Tasks cannot Concurrent

2018-12-13 Thread youngchaos
youngchaos added the comment: #!/usr/bin/env python # coding: utf-8 import struct, asyncio, os async def readdev(dev): while True: buf=os.read(dev, 480) print([struct.unpack('llHHi', buf[i*24:(i+1)*24]) for i in range(len(buf)//24)]) mouse=os.open('/dev/input/event2',

[issue35481] Run Tasks cannot Concurrent

2018-12-13 Thread youngchaos
New submission from youngchaos : import struct, asyncio, os async def readdev(dev): while True: buf=os.read(dev, 480) print([struct.unpack('llHHi', buf[i*24:(i+1)*24]) for i in range(len(buf)//24)]) mouse=os.open('/dev/input/event2', os.O_RDONLY)

[issue35481] Run Tasks cannot Concurrent

2018-12-13 Thread youngchaos
Change by youngchaos : -- components: asyncio nosy: asvetlov, youngchaos, yselivanov priority: normal severity: normal status: open title: Run Tasks cannot Concurrent type: behavior versions: Python 3.7 ___ Python tracker

[issue35431] Add a function for computing binomial coefficients to the math module

2018-12-13 Thread Mark Dickinson
Mark Dickinson added the comment: [Tim] > My two cents: > > - Spell it comb(n, k). > - TypeError if args aren't ints. > - ValueError if not 0 <= k <= n. +1 to all of this. -- ___ Python tracker

[issue31823] Opaque default value for close_fds argument in Popen.__init__

2018-12-13 Thread Martin Panter
Martin Panter added the comment: The only problem with the 3.7+ documentation is the note about 3.2. Several paragraphs under , it still says “Changed in version 3.2: The default for ‘close_fds’ was changed from

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-13 Thread Ammar Askar
Ammar Askar added the comment: A good place to start might be to search for a function that says it returns a borrowed reference in the source tree. For example, "PyImport_AddModule" says it returns a borrowed reference. In the search you'll find the relevant file here: