[issue36093] UnicodeEncodeError raise from smtplib.verify() method

2019-02-22 Thread Windson Yang
New submission from Windson Yang : AFAIK, the email address should support non-ASCII character (from https://stackoverflow.com/questions/760150/can-an-email-address-contain-international-non-english-characters and SMTPUTF8 option from

[issue36091] clean up async generator from types module

2019-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am sure this change already was discussed in other issue, but I can not find that issue and I am not sure that there is a PR. -- nosy: +serhiy.storchaka ___ Python tracker

[issue36086] Split IDLE into separate feature in Windows installer

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

[issue36091] clean up async generator from types module

2019-02-22 Thread SilentGhost
Change by SilentGhost : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36086] Split IDLE into separate feature in Windows installer

2019-02-22 Thread SilentGhost
Change by SilentGhost : -- nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python-bugs-list

[issue36092] unittest.mock's patch.object and patch.dict are not supported on classmethod, propery and staticmethod

2019-02-22 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : While looking into the unittest.mock tests I came across test_patch_descriptor [0] which makes an early return since patch.object and patch.dict are not supported on staticmethod, classmethod and property as noted in the comment. The tests still

[issue36085] Enable better DLL resolution

2019-02-22 Thread Eryk Sun
Eryk Sun added the comment: > I'm very against doing magic to extract the names from the DLL, but > but maybe we could have a search path in the parent package? Then > add/remove it around importing the module. That works, too. I'm happy either way. We still can't load multiple DLLs with

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

2019-02-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36091] clean up async generator from types module

2019-02-22 Thread Henry Chen
Change by Henry Chen : -- keywords: +patch pull_requests: +12021 stage: -> patch review ___ Python tracker ___ ___

[issue36090] spelling error in PEP219 introduction

2019-02-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am not sure if the tracker can be used for updating a PEP since the PEPs are available in separate GitHub repo that accepts issues and PRs at https://github.com/python/peps . -- nosy: +xtreak ___

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

2019-02-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Looking further this can be solved for a string target in patch.dict which can be resolved again while calling the decorated function. There could be a case where the actual target is specified and in that case mock could only updates the

[issue36091] clean up async generator from types module

2019-02-22 Thread Henry Chen
New submission from Henry Chen : the following script: ``` import sys, types def tr(frame, event, arg): print(frame, event, arg) return tr sys.settrace(tr) ``` gives the output: ``` call None exception (, GeneratorExit(), ) return None ``` This is due to Lib/types.py creating an

[issue34315] Regex not evalauated correctly

2019-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For case-insensitive matching you can use the re.IGNORECASE flag. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue34315] Regex not evalauated correctly

2019-02-22 Thread noah
noah added the comment: I was able to recreate the 'bad' output on Linux using 'bad' input. The issue is caused when you misspell WHERE, regex is looking for the exact word "WHERE", any lowercase (where), multicase (WHeRe), or misspelling (WERE) is going to cause it to return None because

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Supporting nested zip files is a new feature added in 3.7 (see issue22908). New features can be added only in new Python versions. 3.6 currently takes only security bug fixes. -- resolution: -> out of date stage: -> resolved status: open ->

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
Change by Liyu Gong : Removed file: https://bugs.python.org/file48164/a.zip ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
Liyu Gong added the comment: add a.tar -- Added file: https://bugs.python.org/file48166/a.tar ___ Python tracker ___ ___

[issue36089] Formatting/Spelling errors in SimpleHTTPServer docs

2019-02-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
Liyu Gong added the comment: Sorry, I made a mistake. I retested on the following content a.zip ==> abc/def/1.zip zf = zipfile.ZipFile('a.zip') memf = zf.open('abc/def/1.zip', 'r') zf2 = zipfile.ZipFile(memf) will raise an error. However, when a.zip is a tar file containing

[issue36089] Formatting/Spelling errors in SimpleHTTPServer docs

2019-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c7be55208b294e408ff625757198419af8914fdf by Serhiy Storchaka (Alan Grgic) in branch '2.7': bpo-36089: Fix formatting/spelling on SimpleHTTPServer docs. (GH-11995)

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The current behavior looks correct to me. abc/def/1.txt is not a ZIP file, so the error is expected. tarfile.open('a.zip') raises an error too, because a.zip is not a tar file. -- nosy: +serhiy.storchaka status: open -> pending

[issue36087] ThreadPoolExecutor max_workers none issue

2019-02-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. 3.4 is in security fixes only mode and will reach end of life soon. This seems to be a backport of the change in 3.5 that won't be accepted. Since the feature is available in 3.5+ I would recommend upgrading to 3.5 and above

[issue36090] spelling error in PEP219 introduction

2019-02-22 Thread 景云鹏
New submission from 景云鹏 : https://www.python.org/dev/peps/pep-0219/#introduction paragraph2 in more that a year? or in more than a year? -- messages: 336359 nosy: 景云鹏 priority: normal severity: normal status: open title: spelling error in PEP219 introduction

[issue36089] Formatting/Spelling errors in SimpleHTTPServer docs

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

[issue36089] Formatting/Spelling errors in SimpleHTTPServer docs

2019-02-22 Thread Alan Grgic
New submission from Alan Grgic : The warning heading near the top of https://docs.python.org/2/library/simplehttpserver.html contains improperly formatted text and misspells SimpleHTTPServer as 'SimpleHTTServer'. -- assignee: docs@python components: Documentation messages: 336358

[issue36016] Allow gc.getobjects to return the objects tracked by a specific generation

2019-02-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset 175421b58cc97a2555e474f479f30a6c5d2250b0 by Inada Naoki (Pablo Galindo) in branch 'master': bpo-36016: Add generation option to gc.getobjects() (GH-11909) https://github.com/python/cpython/commit/175421b58cc97a2555e474f479f30a6c5d2250b0

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
New submission from Liyu Gong : Suppose a.zip is z zip file containing 'abc/def/1.txt' zf = zipfile.ZipFile('a.zip') memf = zf.open('abc/def/1.txt', 'r') zf2 = zipfile.ZipFile(memf) will raise an error. However, when a.zip is a tar file containing 'abc/def/1.txt', the following codes tf =

[issue36085] Enable better DLL resolution

2019-02-22 Thread Steve Dower
Steve Dower added the comment: I'm very against doing magic to extract the names from the DLL, but maybe we could have a search path in the parent package? Then add/remove it around importing the module. I think you're right that we just need to update the LoadLibrary flags, but will those

[issue36087] ThreadPoolExecutor max_workers none issue

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

[issue36087] ThreadPoolExecutor max_workers none issue

2019-02-22 Thread Tony Hammack
New submission from Tony Hammack : ThreadPoolExecutor(max_workers=None) throws exception when it should not. Inconsistent with 3.4 documentation. If max_workers=None, then it should use the amount of cpus as threadcount. -- components: Library (Lib) messages: 336354 nosy: Tony

[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

[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

[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:

[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

[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

[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

[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 ___ ___

[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

[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

[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

[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:

[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

[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 ___

[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 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 >>>

[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

[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

[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

[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

[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

[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:

[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

[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:

[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)

[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:

[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. --

[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

[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

[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 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

[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 ___ ___

[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 ___ ___

[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 ___ ___

[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 -- ___

[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

[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

[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 ___ ___

[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 ___ ___

[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:

[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:

[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 ___

[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 ___ ___

[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

[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

[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:

[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

[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:

[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
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:

[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:

[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:

[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 ___

[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:

[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

[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

[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

[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:

[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:

[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

[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

[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

[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

[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:

[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:

[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:

[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

[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:

[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:

[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)

[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 ___ ___

  1   2   >