[issue35815] Able to instantiate a subclass with abstract methods from __init_subclass__ of the ABC

2019-01-23 Thread Jazeps Basko
New submission from Jazeps Basko : I am creating and registering singleton instances of subclasses of ABC in the ABC's __init_subclass__ and I just noticed that I am able to instantiate even the classes which have abstract methods. import abc class Base(abc.ABC): def

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-23 Thread Eryk Sun
Eryk Sun added the comment: It's worth noting the consequences of changing the application directory (i.e. the "%__APPDIR__%" dynamic variable from GetEnvironmentVariableW). This is the first directory checked in most cases when Windows searches for a file, including the

[issue33397] IDLE help viewer: let users control font size

2019-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The configdialog font tab sample could also use font resizing. #24776. -- versions: -Python 3.6 ___ Python tracker ___

[issue24776] IDLE: Improve config dialog font change user interface

2019-01-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24776] IDLE: Improve config dialog font change user interface

2019-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I now think that the proper widget for font resizing might be a ttk.Spinbox (but see below). #33962 discusses issues around using this widget. #33397 is about adding local font resizing with hot key or mousewheel to text and help viewers via a new

[issue35814] Syntax quirk with variable annotations

2019-01-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35814] Syntax quirk with variable annotations

2019-01-23 Thread Raymond Hettinger
New submission from Raymond Hettinger : Am not sure how much we care about this, but parenthesis around tuples stops being optional when there is a variable annotation. >>> from typing import Tuple >>> t = 10, 'hello' # Parens not normally required >>> t: Tuple[int, str]

[issue25522] IDLE: warn if save-as name matches stdlib name

2019-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Beginners import stdlib files such as random. And they save scripts with such name, and accidentally import the script when not desired. Beginners should learn how to test a script by running a test file provided by an instructor or written themselves. In

[issue35813] shared memory construct to avoid need for serialization between processes

2019-01-23 Thread Davin Potts
Change by Davin Potts : -- keywords: +patch, patch pull_requests: +11470, 11471 stage: -> patch review ___ Python tracker ___ ___

[issue35813] shared memory construct to avoid need for serialization between processes

2019-01-23 Thread Davin Potts
Change by Davin Potts : -- keywords: +patch, patch, patch pull_requests: +11470, 11471, 11472 stage: -> patch review ___ Python tracker ___

[issue35813] shared memory construct to avoid need for serialization between processes

2019-01-23 Thread Davin Potts
Change by Davin Potts : -- keywords: +patch pull_requests: +11470 stage: -> patch review ___ Python tracker ___ ___

[issue35813] shared memory construct to avoid need for serialization between processes

2019-01-23 Thread Davin Potts
New submission from Davin Potts : A facility for using shared memory would permit direct, zero-copy access to data across distinct processes (especially when created via multiprocessing) without the need for serialization, thus eliminating the primary performance bottleneck in the most

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-23 Thread Steve Dower
Steve Dower added the comment: FWIW, a symlink should be able to launch the Store Python - the problem with the old approach was it never tried to launch the original Python, but only load it's DLLs which won't work (maybe there's a way to enable the app context, but that would still

[issue35812] Don't log an exception from the main coroutine in asyncio.run()

2019-01-23 Thread Andrew Svetlov
New submission from Andrew Svetlov : We use `asyncio.run()` (well, a backported to python3.6 private copy) in our application. The problem is: when `asyncio.run(main_coro(args))` raises an exception it is both raised to a caller and passed to `loop.call_exception_handler()` by

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-23 Thread Eryk Sun
New submission from Eryk Sun : In 3.7.2 on Windows, venv now uses a redirecting launcher 'script' for python[w].exe. This replaces (on Windows only) the setup requirement to copy or symlink the interpreter binaries (i.e. python[w].exe, python37.dll, and vcruntime140.dll). Apparently this is

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2019-01-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2019-01-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Added #32592 as a dependency since that is removing the Vista code mentioned here. Once that change is merged, then this would be a simpler change to make. -- dependencies: +Drop support of Windows Vista in Python 3.7 nosy: +cheryl.sabella

[issue18610] wsgiref.validate expects wsgi.input read to give exactly one arg

2019-01-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: -11469 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18610] wsgiref.validate expects wsgi.input read to give exactly one arg

2019-01-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: -11468 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18610] wsgiref.validate expects wsgi.input read to give exactly one arg

2019-01-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +11467, 11468, 11469 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue18610] wsgiref.validate expects wsgi.input read to give exactly one arg

2019-01-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +11467, 11468 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue18610] wsgiref.validate expects wsgi.input read to give exactly one arg

2019-01-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +11467 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue5028] tokenize.generate_tokens doesn't always return logical line

2019-01-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- components: +Documentation -Library (Lib) keywords: +easy stage: -> needs patch versions: +Python 3.8 -Python 2.6 ___ Python tracker ___

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-01-23 Thread Terrence Brannon
Terrence Brannon added the comment: I would like to add to this bug - the password field on the URL cannot contain a pound sign or question mark or the parser incorrectly parses the URL, as this gist demonstrates - https://gist.github.com/metaperl/fc6f43bf6b9a9f874b8f27e29695e68c

[issue35767] unittest loader doesn't work with partial test functions

2019-01-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +11464, 11465, 11466 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35767] unittest loader doesn't work with partial test functions

2019-01-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset fd628cf5adaeee73eab579393cdff71c8f70cdf2 by Łukasz Langa (Jason Fried) in branch 'master': bpo-35767: Fix unittest.loader to allow partials as test_functions (#11600)

[issue35767] unittest loader doesn't work with partial test functions

2019-01-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +11464 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35767] unittest loader doesn't work with partial test functions

2019-01-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +11464, 11465 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35810] Object Initialization Bug with Heap-allocated Types

2019-01-23 Thread Eddie Elizondo
Change by Eddie Elizondo : -- keywords: +patch, patch, patch pull_requests: +11461, 11462, 11463 stage: -> patch review ___ Python tracker ___

[issue35810] Object Initialization Bug with Heap-allocated Types

2019-01-23 Thread Eddie Elizondo
Change by Eddie Elizondo : -- keywords: +patch, patch pull_requests: +11461, 11462 stage: -> patch review ___ Python tracker ___

[issue35810] Object Initialization Bug with Heap-allocated Types

2019-01-23 Thread Eddie Elizondo
Change by Eddie Elizondo : -- keywords: +patch pull_requests: +11461 stage: -> patch review ___ Python tracker ___ ___

[issue35810] Object Initialization Bug with Heap-allocated Types

2019-01-23 Thread Eddie Elizondo
New submission from Eddie Elizondo : Heap-allocated Types initializing instances through `PyObject_{,GC}_New{Var}` will *NOT* not have their refcnt increased. This was totally fine under the assumption that static types are immortal. However, heap-allocated types MUST participate in

[issue20911] urllib 'headers' is not a well defined data type

2019-01-23 Thread R. David Murray
R. David Murray added the comment: There has been considerable rewriting of the header handling code since I filed this. I would not be surprised if the issue is no longer valid. If you want to double check, look for the places that the headers attribute is created in the various

[issue35537] use os.posix_spawn in subprocess

2019-01-23 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Another problem with posix_spawn() on glibc: it doesn't report errors to the parent process when run under QEMU user-space emulation and Windows Subsystem for Linux. This is because starting with commit [1] (glibc 2.25) posix_spawn() relies on address

[issue23903] Generate PC/python3.def by scraping headers

2019-01-23 Thread Neil Schemenauer
Change by Neil Schemenauer : -- nosy: +nascheme ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35537] use os.posix_spawn in subprocess

2019-01-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset f6243ac1e4828299fe5a8e943d7bd41cab1f34cd by Victor Stinner in branch 'master': bpo-35537: subprocess can use posix_spawn with pipes (GH-11575) https://github.com/python/cpython/commit/f6243ac1e4828299fe5a8e943d7bd41cab1f34cd --

[issue34656] [CVE-2018-20406] memory exhaustion in Modules/_pickle.c:1393

2019-01-23 Thread Matej Cepl
Matej Cepl added the comment: Python 3.4 doesn't allow C99 constructs, so I had to update the patch to reorder iterator declarations. Just if any future colleague Python Linux distro maintainer needs it. -- Added file:

[issue10915] Make the PyGILState API compatible with multiple interpreters

2019-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch probably doesn't apply anymore. -- stage: patch review -> needs patch versions: +Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker

[issue35711] Print information about an unexpectedly pending error before crashing

2019-01-23 Thread STINNER Victor
STINNER Victor added the comment: > A failure (crash) from such asserts provides no information on its own about > the unhandled exception itself to help the developer track down the C API use > error that led to this state. Maybe someone should try to modify faulthandler to display the

[issue27035] Cannot set exit code in atexit callback

2019-01-23 Thread George King
George King added the comment: I agree that regardless of the underlying issue, the docs should match the behavior. Additionally, I hope the docs will note the exact release at which the behavior changed. @serhiy-storchaka do you have any opinion on this? I took a brief look at your commit

[issue27035] Cannot set exit code in atexit callback

2019-01-23 Thread Kumar Akshay
Kumar Akshay added the comment: Sure, I would love to! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35779] Print friendly version message in REPL

2019-01-23 Thread Eric Snow
Eric Snow added the comment: Thanks for clarifying, Ma Lin. At this point there just isn't enough strong justification for making any change here. So I'm closing the issue. Also, making a PR for this likely wouldn't be the best use of your time. However, if you're interested in

[issue35680] [2.7] Coverity scan: Passing freed pointer "name" as an argument to "Py_BuildValue" in _bsddb module.

2019-01-23 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Closing this as it's not really a bug in the code, and I don't think spending too much time on python2 is worth it. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2019-01-23 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18078] threading.Condition to allow notify on a specific waiter

2019-01-23 Thread João Bernardo
João Bernardo added the comment: Don't keep your hopes up. People here don't like implementing features they don't understand about even if they could verify elsewhere it works well. My solution at the time was to create a decent "Condition" class based on the original one (subclassing this

[issue35713] Fatal Python error: _PySys_BeginInit: can't initialize sys module

2019-01-23 Thread STINNER Victor
STINNER Victor added the comment: """ > Fatal Python error: _PySys_BeginInit: can't initialize sys module I have no idea why you get this error. You should try to run this function in a debugger like gdb and run the code step by step to see what happens. """ I pushed 3 changes to get

[issue35713] Fatal Python error: _PySys_BeginInit: can't initialize sys module

2019-01-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset ab67281e95de1a88c4379a75a547f19a8ba5ec30 by Victor Stinner in branch 'master': bpo-35713: Reorganize sys module initialization (GH-11658) https://github.com/python/cpython/commit/ab67281e95de1a88c4379a75a547f19a8ba5ec30 --

[issue33686] test_concurrent_futures: test_pending_calls_race() failed on x86 Windows7 3.6

2019-01-23 Thread STINNER Victor
STINNER Victor added the comment: Should be fixed by bpo-33716. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35809] test_concurrent_futures.ProcessPoolForkExecutorDeadlockTest fails intermittently on Travis and passes in verbose mode

2019-01-23 Thread STINNER Victor
STINNER Victor added the comment: > Sample crash : https://travis-ci.org/python/cpython/jobs/483394585#L2781 Some info from pythoninfo, not sure if they are relevant: CC.version: clang version 5.0.0 (tags/RELEASE_500/final) platform.libc_ver: glibc 2.19 platform.platform:

[issue28890] logging.handlers: Document that QueueListener is a daemon thread

2019-01-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip, xtreak versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___

[issue35809] test_concurrent_futures.ProcessPoolForkExecutorDeadlockTest fails intermittently on Travis and passes in verbose mode

2019-01-23 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I can see this test failing intermittently many times on Travis during the first run and to pass later during a verbose run hence the failure is not visible. I don't know the exact cause and haven't checked the buildbots. Search also didn't

[issue35726] QueueHandler formatting affects other handlers

2019-01-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +11457, 11458, 11459, 11460 ___ Python tracker ___ ___ Python-bugs-list

[issue35726] QueueHandler formatting affects other handlers

2019-01-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +11457, 11458, 11459 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35726] QueueHandler formatting affects other handlers

2019-01-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +11457 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35726] QueueHandler formatting affects other handlers

2019-01-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +11457, 11458 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35713] Fatal Python error: _PySys_BeginInit: can't initialize sys module

2019-01-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11454, 11455, 11456 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35713] Fatal Python error: _PySys_BeginInit: can't initialize sys module

2019-01-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11454 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35713] Fatal Python error: _PySys_BeginInit: can't initialize sys module

2019-01-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11454, 11455 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20911] urllib 'headers' is not a well defined data type

2019-01-23 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18078] threading.Condition to allow notify on a specific waiter

2019-01-23 Thread Richard Whitehead
Richard Whitehead added the comment: Condition.wait_for_any is still a desirable feature, e.g. to wait on multiple command queues, or a work queue and a command queue. Is there any chance of pulling this into the latest version? -- nosy: +richardnwhitehead

[issue10915] Make the PyGILState API compatible with multiple interpreters

2019-01-23 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: