[issue36069] asyncio: create_connection cannot handle IPv6 link-local addresses anymore (linux)

2019-02-22 Thread Leonardo Mörlein
Change by Leonardo Mörlein : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue36069] asyncio: create_connection cannot handle IPv6 link-local addresses anymore (linux)

2019-02-22 Thread Leonardo Mörlein
Leonardo Mörlein added the comment: Oh, you are correct. So this can be closed. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue34981] Unable to install Python from web-based installer and executable installer

2019-02-22 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay the PR is ready. If you all are mostly comfortable with it, it would great to get this in for the second alpha so that people have a chance to work with it. -- nosy: +davin ___ Python tracker

[issue35810] Object Initialization does not incref Heap-allocated Types

2019-02-22 Thread Christian Tismer
Christian Tismer added the comment: Neil, that is the absolute super-move! When all types are heap types, then I have no longer the problem that I cannot get at slots from builtin types, with all are static. I am very much for that change, because then I can make my stable ABI implementation

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Kevin Mai-Hsuan Chia
New submission from Kevin Mai-Hsuan Chia : It seems the result of `asyncio.Server.sockets` after `asyncio.Server.close()` is performed becomes `[]` instead of `None` since python 3.7. However, in the [document 3.7 and 3.8](https://docs.python.org/3.8/library/asyncio-eventloop.html#asyncio.Ser

[issue31162] urllib.request.urlopen CERTIFICATE_VERIFY_FAILED error

2019-02-22 Thread Martin Panter
Change by Martin Panter : -- resolution: -> not a bug status: open -> pending title: urllib.request.urlopen error -> urllib.request.urlopen CERTIFICATE_VERIFY_FAILED error ___ Python tracker ___

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-02-22 Thread Saba Kauser
New submission from Saba Kauser : Hi, I am building my python ibm_db driver on python 3.7 using the setup.py under https://github.com/SabaKauser/python-ibmdb/blob/master/IBM_DB/ibm_db/setup.py with 2to3 compatibility as: python setup.py build and installing as: python setup.py install I have

[issue35810] Object Initialization does not incref Heap-allocated Types

2019-02-22 Thread Petr Viktorin
Petr Viktorin added the comment: Changing all types to heap types is definitely a gigantic task. First let's make heap types more usable and bug-free, and then it will be easier :) (I do have an agenda here: improving heap types usable is also yak-shaving* for making modules play nice with s

[issue36064] docs: urllib.request.Request not accepting iterables data type

2019-02-22 Thread Martin Panter
Martin Panter added the comment: I agree the documentation is insufficient. It should have said if “data” is iterated, it must yield bytes-like objects. I agree it is unwise to yet more special cases for the uploaded data types. When Lye passed the dictionary of three keys and values, I suspe

[issue35889] sqlite3.Row doesn't have useful repr

2019-02-22 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: There is no need to add explicit knowledge of reprlib to the Row object or vice versa. Those who use reprlib to limit output size will have no problem. Reprlib already truncates arbitrary reprs at the string level: https://github.com/python/cpython/blob/22

[issue36076] ssl.get_server_certificate should use SNI

2019-02-22 Thread Maciej Grela
New submission from Maciej Grela : The ssl.get_server_certificate function doesn't send SNI information causing an wrong certificate to be sent back by the server (or connection close in some cases). This can be seen when trying to use get_server_certificate against a site behind cloudflare.

[issue35859] Capture behavior depends on the order of an alternation

2019-02-22 Thread Ma Lin
Ma Lin added the comment: A bug harvest, see PR11756, maybe sre has more bugs. Those bug exist since Python 2. Any ideas from regular expression experts? -- ___ Python tracker __

[issue35307] Command line help example is missing "--prompt" option

2019-02-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +12009 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

2019-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Code looks much better now. I'm still not convinced "SharedMemory(name=None, create=False, size=0)" is the best API. How are you supposed to "create or attach" atomically? You can do that with O_EXCL but as it stands this is not togglable via the API. Al

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: Thanks Raymond. Apologies for commenting here instead of at the PR. While I've been fighting with more intermittedly broken than usual internet access, Github has stopped supporting my browser. I can't upgrade the browser without upgrading the OS, and I ca

[issue35307] Command line help example is missing "--prompt" option

2019-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you @daftwullie for the report and for the PR! And thank you, @xtreak for triaging and for the reminder. :-) -- nosy: +cheryl.sabella resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 _

[issue36077] Inheritance dataclasses fields and default init statement

2019-02-22 Thread Кирилл Чуркин
New submission from Кирилл Чуркин : I found a problem when use inherit dataclasses. When I define parent dataclass with field(s) with default (or default_factory) properties, and inherit child dataclass from parent, i define non-default field in it and got `TypeError('non-default argument {f.na

[issue36077] Inheritance dataclasses fields and default init statement

2019-02-22 Thread SilentGhost
Change by SilentGhost : -- nosy: +eric.smith versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Emmanuel Arias
Emmanuel Arias added the comment: Yes, that is a problem (in principle) of the docs. But I think that would be appropriate return None if is closed. -- nosy: +eamanu ___ Python tracker _

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

2019-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Also, there is no way to delete/unwrap memory without using an existing SharedMemory instance, which is something we may not have on startup. Perhaps we should have a "shared_memory.unlink(name)" function similar to os.unlink() which simply calls C shm_un

[issue35512] patch.dict resolves in_dict eagerly (should be late resolved)

2019-02-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: If I understand the issue correctly it's as below is a simple reproducer where target is resolved with {'a': 1} during the construction of the decorator [0] though it's redefined later in the program as target = dict(a=2). Also here due to this sin

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Emmanuel Arias
Emmanuel Arias added the comment: hmm looking in depth when the server is closed, currently return None. -- ___ Python tracker ___

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Emmanuel Arias
Emmanuel Arias added the comment: Maybe would be great mention that the None is still return for closed server -- ___ Python tracker ___ __

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +12010 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue31162] urllib.request.urlopen CERTIFICATE_VERIFY_FAILED error

2019-02-22 Thread Emmanuel Arias
Emmanuel Arias added the comment: hmmm I think that is not a bug. I think that this is a certification problem, literally. -- nosy: +eamanu status: pending -> open ___ Python tracker ___

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Kevin Mai-Hsuan Chia
Kevin Mai-Hsuan Chia added the comment: Excuse me, I tried 3.7.2 and 3.8.0a1+ with the following code and still failed. Could you help me to try this? or can you give me a pointer to the code returning `None`? Sorry for the inconvenience and thanks a lot. ``` import asyncio import platform

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Emmanuel Arias
Emmanuel Arias added the comment: @mhchia yes! sorry! I was testing the .close() return. yes you are right is confused. I will modified the PR. Thanks -- ___ Python tracker

[issue36035] pathlib.Path().rglob() breaks with broken symlinks

2019-02-22 Thread Jörg Stucke
Change by Jörg Stucke : -- pull_requests: +12011 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue36035] pathlib.Path().rglob() breaks with broken symlinks

2019-02-22 Thread Jörg Stucke
Jörg Stucke added the comment: I tried to add a test file in https://github.com/python/cpython/pull/11988 To fix all now broken tests I had to add a try except block to the _WildcardSelector as well (analogous to the _RecursiveWildcardSelector). I could only check on Linux and I have no idea

[issue35512] patch.dict resolves in_dict eagerly (should be late resolved)

2019-02-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: I agree that’s a good reproducer. Thanks for looking into this! -- ___ Python tracker ___ ___ Pyt

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-02-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +12012 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-02-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset a40681dd5db8deaf05a635eecb91498dac882aa4 by Victor Stinner (Stéphane Wirtel) in branch 'master': bpo-36019: Use pythontest.net instead of example.com in network tests (GH-11941) https://github.com/python/cpython/commit/a40681dd5db8deaf05a635eecb9

[issue33944] Deprecate and remove pth files

2019-02-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22239] asyncio: nested event loop

2019-02-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue29871] Enable optimized locks on Windows

2019-02-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-02-22 Thread STINNER Victor
STINNER Victor added the comment: > New changeset a40681dd5db8deaf05a635eecb91498dac882aa4 by Victor Stinner > (Stéphane Wirtel) in branch 'master': > bpo-36019: Use pythontest.net instead of example.com in network tests > (GH-11941) I'm not sure that this change will fix https://bugs.python.

[issue35662] Windows #define _PY_EMULATED_WIN_CV 0 bug

2019-02-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue35826] Typo in example for async with statement with condition

2019-02-22 Thread Emmanuel Arias
Emmanuel Arias added the comment: This issue could be closed, right? -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list m

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Kevin Mai-Hsuan Chia
Kevin Mai-Hsuan Chia added the comment: Sure thing. Should it be discussed more detailed before the PR? If the document or the returned value is controversial, I would like to contribute if needed. Thanks :) -- ___ Python tracker

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Emmanuel Arias
Emmanuel Arias added the comment: > Sure thing. Should it be discussed more detailed before the PR? If the > document or the returned value is controversial, I would like to contribute > if needed. Thanks :) Please, make the comments on the PR. This way, other reviewer can see your comments

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-02-22 Thread miss-islington
miss-islington added the comment: New changeset 6163210089148ad31c270695f7273fc3561a211a by Miss Islington (bot) in branch '3.7': bpo-36019: Use pythontest.net instead of example.com in network tests (GH-11941) https://github.com/python/cpython/commit/6163210089148ad31c270695f7273fc3561a211a

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread Axel
New submission from Axel : Example source: from argparse import ArgumentParser, SUPPRESS == parser = ArgumentParser() parser.add_argument('i', nargs='?', type=int, default=SUPPRESS) args = parser.parse_args([]) == results in: error: argument integer: invalid int value: '=

[issue35392] Create asyncio/sockutils.py

2019-02-22 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue36035] pathlib.Path().rglob() breaks with broken symlinks

2019-02-22 Thread Jörg Stucke
Jörg Stucke added the comment: As expected the Windows CI build failed. All test fails were caused by: OSError: [WinError 1921] The name of the file cannot be resolved by the system: 'C:\\projects\\cpython\\build\\test_python_936\\@test_936_tmp\\brokenLinkLoop' Therefore, I added WinError 1921

[issue36079] pdb on setuptools "ValueError: underlying buffer has been detached"

2019-02-22 Thread Gerrit Holl
New submission from Gerrit Holl : I am unable to use `pdb` to debug a problem I have with the `python-hdf4` installer. The exception in the program to be debugged is printed twice, followed by an exception in pdb itself, ending with `ValueError: underlying buffer has been detached`. See bel

[issue36077] Inheritance dataclasses fields and default init statement

2019-02-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add a simple reproducer to understand the issue in little more detail? I could see some tests along with different cases producing the error message at https://github.com/python/cpython/blob/a40681dd5db8deaf05a635eecb91498dac882aa4/L

[issue36077] Inheritance dataclasses fields and default init statement

2019-02-22 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35826] Typo in example for async with statement with condition

2019-02-22 Thread Kevin Mai-Hsuan Chia
Kevin Mai-Hsuan Chia added the comment: Cool! Thanks for the reminder. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've made both suggested changes, "examples"->"samples" and set the defaults to the standard normal distribution. To bypass Github, I've attached a diff to this tracker issue. Let me know what you think :-) -- Added file: https://bugs.python.org

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread Axel
Axel added the comment: Some more details: The problem is not the order of assignment in take_action: Defaults have been set by: def parse_known_args(self, args=None, namespace=None): ... # add any action defaults that aren't present for action in self._actions:

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Julien Palard
Julien Palard added the comment: Behavior changed in commit c9070d03f5169ad6e171e641b7fa8feab18bf229 (Jan 2018) but has been documented as returning None since 8ebeb03740dad4d9edd65de88f82840a05070941 (Jul 2014). -- nosy: +mdk, vstinner, yselivanov __

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread Axel
Change by Axel : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue36080] Ensurepip fails to install pip into a nested virtual environment (on Windows)

2019-02-22 Thread Sammy Gillespie
New submission from Sammy Gillespie : Running Windows 10 Enterprise. Create a virtual environment: > python -m venv .venv Activate that virtual environment and attempt to create another virtual environment using the same command. This new environment will not contain pip (or anything other t

[issue36064] docs: urllib.request.Request not accepting iterables data type

2019-02-22 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +12013 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36080] Ensurepip fails to install pip into a nested virtual environment (on Windows)

2019-02-22 Thread Sammy Gillespie
Sammy Gillespie added the comment: To expand on this. Using: > python -m pip in the second virtual environment (which does not have pip) gives the following usage example: > Usage: > C:\venv_test\\Scripts\python.exe -m pip [options] Yet the python running this command is not in venv_1

[issue36080] Ensurepip fails to install pip into a nested virtual environment (on Windows)

2019-02-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this similar to issue35872? Can you please specify the full version of Python as in 3.7.0 or later? -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, xtreak, zach.ware ___ Python trac

[issue28453] SSLObject.selected_alpn_protocol() not documented

2019-02-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12014 stage: needs patch -> patch review ___ Python tracker ___ ___ Py

[issue36080] Ensurepip fails to install pip into a nested virtual environment (on Windows)

2019-02-22 Thread Sammy Gillespie
Sammy Gillespie added the comment: This is identical to https://bugs.python.org/issue35872 I am running 3.7.2 -- ___ Python tracker ___ __

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-22 Thread Raymond Hettinger
Change by Raymond Hettinger : Added file: https://bugs.python.org/file48162/normdist_22feb2019.diff ___ Python tracker ___ ___ Python-bugs-l

[issue22239] asyncio: nested event loop

2019-02-22 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-22 Thread Raymond Hettinger
Change by Raymond Hettinger : Removed file: https://bugs.python.org/file48161/normdist_22feb2019.diff ___ Python tracker ___ ___ Python-bugs

[issue36081] Cannot set LDFLAGS containing $

2019-02-22 Thread Rolf Eike Beer
New submission from Rolf Eike Beer : My use case is: LDFLAGS=-Wl,-rpath,'$ORIGIN/../lib' This works fine for everything build directly by the Makefile, but for everything that is build through the python distutils this breaks. This is not an issue of the python side, it happens because the Ma

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Kevin Mai-Hsuan Chia
Kevin Mai-Hsuan Chia added the comment: @mdk That's interesting. May I ask which one is the preferred behavior, `None` or `[]`? IMO both make sense, but `None` is more consistent with the behavior in previous versions. If it is the case, may I work on fixing this(`None` to `[]`) as a practic

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Emmanuel Arias
Emmanuel Arias added the comment: > @mdk That's interesting. May I ask which one is the preferred behavior, > `None` or `[]`? IMO changing the returned of the sockets could represent a big change, and I think that this need to be discuss -- ___

[issue36080] Ensurepip fails to install pip into a nested virtual environment (on Windows)

2019-02-22 Thread Sammy Gillespie
Change by Sammy Gillespie : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-22 Thread Raymond Hettinger
Change by Raymond Hettinger : Added file: https://bugs.python.org/file48163/normdist_22feb2019.diff ___ Python tracker ___ ___ Python-bugs-l

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-22 Thread Raymond Hettinger
Change by Raymond Hettinger : Removed file: https://bugs.python.org/file48162/normdist_22feb2019.diff ___ Python tracker ___ ___ Python-bugs

[issue36082] The built-in round() function giving a wrong output

2019-02-22 Thread Juho Pesonen
New submission from Juho Pesonen : As the title says I have got some wrong outputs with the round() built-in function. The bug occurs only with certain numbers though. (I've had problems only with the number 2.5, but I assume that there is more than one number that gives wrong output.) Here a

[issue36082] The built-in round() function giving a wrong output

2019-02-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/whatsnew/3.0.html > The round() function rounding strategy and return type have changed. Exact > halfway cases are now rounded to the nearest even result instead of away from > zero. (For example, round(2.5) now returns 2

[issue36082] The built-in round() function giving a wrong output

2019-02-22 Thread SilentGhost
SilentGhost added the comment: This is the documented behaviour. It might seem counter-intuitive, but it's is not likely to change. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-22 Thread Francis MB
Francis MB added the comment: Good options itemization! >> This would give us a clean, fast API with no flags: >> mode(Iterable) -> scalar >> multimode(Iterable) -> list [...] >> For any of those options, we should still add a separate multimode() >> function. [..] >> * Add a Deprecation w

[issue36082] The built-in round() function giving a wrong output

2019-02-22 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This is called banker rounding and is done on purpose to limit the accumulation of errors when summing a list of rounded integers. You can read https://en.m.wikipedia.org/wiki/Rounding#Round_half_to_even and look at IEEE 754 for more information. -- no

[issue35943] PyImport_GetModule() can return partially-initialized module

2019-02-22 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread miss-islington
miss-islington added the comment: New changeset df5cdc11123a35065bbf1636251447d0bfe789a5 by Miss Islington (bot) (Emmanuel Arias) in branch 'master': bpo-36074: Result of `asyncio.Server.sockets` after `Server.close()` after is not clear (GH-11987) https://github.com/python/cpython/commit/

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Julien Palard
Julien Palard added the comment: Thanks Emmanuel for the PR (yes those PRs do not need NEWS). Thanks Kevin for the proposition to try fixing it the other way around, that's appreciated, don't hesitate to filter on easy issues there's some others :) -- resolution: -> fixed stage: patc

[issue33927] Allow json.tool to have identical infile and outfile

2019-02-22 Thread hervé
Change by hervé : -- pull_requests: +12015 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

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

2019-02-22 Thread Davin Potts
Davin Potts added the comment: > Code looks much better now. I'm still not convinced > "SharedMemory(name=None, create=False, size=0)" is the best API. > How are you supposed to "create or attach" atomically? We are consciously choosing to not support an atomic "create or attach". This sign

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @steven.daprano Bit off topic but you can also append .patch in the PR URL to generate patch file with all the commits made in the PR up to latest commit and .diff provides the current diff against master. They are plain text and can be downloaded

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > shouldn't be "mode" at some point be replaced by "multimode" ? No. The signature is completely incompatible with the existing mode() function. Like MS Excel which has two functions, MODE.SGNL and MODE.MULT, we should also have two functions, each with

[issue36067] subprocess terminate() "invalid handle" error when process is gone

2019-02-22 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > Interesting. Because both errors/conditions are mapped to > ERROR_INVALID_HANDLE we need the creation time. I can work on a patch for > that. I don't understand why any patch for CPython is needed at all. Using invalid handles is a serious programming bu

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread paul j3
paul j3 added the comment: Defaults are handled into two stages. At the start of parsing defaults are added to the Namespace. At the end of parsing intact defaults are evaluated with 'type'. But a nargs='?' positional gets special handling. It matches an empty string, so it is always 'seen

[issue36066] Add `empty` block to `for` and `while` loops.

2019-02-22 Thread WloHu
WloHu added the comment: Sorry for beeing ignorant about python-ideas. The linked proposal is almost exatly what I've requested here, the differences are that it discusses other keyword alternatives and mine suggests an alternative for making empty generators false. If lack of follow-up in

[issue36077] Inheritance dataclasses fields and default init statement

2019-02-22 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I think this is what is referring Кирилл Чуркин to: Python 3.7.2 (default, Jan 13 2019, 12:50:01) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from dataclasses import dataclass >>> @data

[issue36083] Misformated manpage: --check-hash-based-pycs ´default´|´always´|´never´

2019-02-22 Thread Miro Hrončok
New submission from Miro Hrončok : man python3.7 or man python3.8 says this in synopsis: python [ -B ] [ -b ] [ -d ] [ -E ] [ -h ] [ -i ] [ -I ] [ -m module-name ] [ -q ] [ -O ] [ -OO ] [ -s ] [ -S ] [ -u ] [ -v ] [ -V ] [ -W argument ] [ -x ] [ [ -X option ] -

[issue36077] Inheritance dataclasses fields and default init statement

2019-02-22 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not keen on re-ordering parameters. Maybe it could be done if specified with a parameter to @dataclass. -- ___ Python tracker ___ ___

[issue36077] Inheritance dataclasses fields and default init statement

2019-02-22 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I see your point. On the other hand, a new parameter would also increase the complexity for the user. Maybe it should not be seen as re-ordering but just a "zipping" them correctly: @dataclass class Parent: i: int j: int = 0 @dataclass class Child(P

[issue36046] support dropping privileges when running subprocesses

2019-02-22 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36046] support dropping privileges when running subprocesses

2019-02-22 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Patrick, could you provide more background that would explain your choice of setreuid/setregid functions and the desired handling of supplementary groups? I'm not a security expert, so I may not have sufficient expertise to judge on that, but maybe my quest

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread paul j3
paul j3 added the comment: By defining a custom 'type' function: def foo(astr): if astr is argparse.SUPPRESS: raise KeyError return astr I get the full traceback 1831 def take_action(action, argument_strings, option_string=None): 1832

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-02-22 Thread Jake Tesler
New submission from Jake Tesler : This functionality adds a native Thread ID to threading.Thread objects. This ID (TID), similar to the PID of a process, is assigned by the OS (kernel) and is generally used for externally monitoring resources consumed by the running thread (or process). This

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-02-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12016 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36085] Enable better DLL resolution

2019-02-22 Thread Steve Dower
New submission from Steve Dower : So the fundamental problem is that the default DLL search path on Windows changes in various contexts, and the only consistent approach is the most difficult to support with current packaging tools. The result is .pyd files that need to resolve .dll dependenc

[issue36085] Enable better DLL resolution

2019-02-22 Thread Steve Dower
Steve Dower added the comment: I nosied both Windows and import experts, and I'm about to go ping relevant numpy/scipy people on https://github.com/numpy/numpy/pull/13019 Personally, I would prefer option #1, despite the pain it would cause. It is the better long-term supported option, and A

[issue33944] Deprecate and remove pth files

2019-02-22 Thread Steve Dower
Steve Dower added the comment: I took a look at the docs PR, and honestly I don't even get what the "intended" uses of executable code are supposed to be. The examples are "load 3rd-party import hooks, adjust PATH variable", but the only cases I can think of where you'd need to do these in a

[issue36085] Enable better DLL resolution

2019-02-22 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue36086] Split IDLE into separate feature in Windows installer

2019-02-22 Thread Jacob Bundgaard
New submission from Jacob Bundgaard : I don't use IDLE to edit Python files, but do use tcl/tk for Python projects on Windows. Therefore, it would be useful for me to be able to install tcl/tk without also installing IDLE. However, in the Windows installer, tcl/tk and IDLE are bundled togethe

[issue36085] Enable better DLL resolution

2019-02-22 Thread Eryk Sun
Eryk Sun added the comment: > Proposal #1: CPython calls SetDefaultDllDirectories() [2] on startup SetDefaultDllDirectories() affects the entire process, so it would needlessly break the world -- especially for embedding applications and ctypes users that have relied on adding directories t

  1   2   >