[issue33351] Support compiling with clang-cl on Windows

2018-04-24 Thread pmpp
Change by pmpp : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33351] Support compiling with clang-cl on Windows

2018-04-24 Thread Ethan Smith
New submission from Ethan Smith : The clang folks have been hard at work making an ABI compatible backend to clang for Windows. Additionally they have created a cl compatible driver for clang, which can be used in lieu of cl itself. Clang-cl has been adopted to build Chrome

[issue33317] `repr()` of string in NFC and NFD forms does not differ

2018-04-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Tue, Apr 24, 2018, at 04:33, Pekka Klärck wrote: > > Pekka Klärck added the comment: > > I didn't submit this as a bug report but as an enhancement request. From > usability point of view, saying that

[issue33128] PathFinder is twice on sys.meta_path

2018-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: Hartmut, thanks for the issue report, and Pablo, thanks for the PR to resolve it! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33128] PathFinder is twice on sys.meta_path

2018-04-24 Thread miss-islington
miss-islington added the comment: New changeset 52a5a17338dfa7fed259027e1ecceba9c8491189 by Miss Islington (bot) in branch '3.7': bpo-33128 Fix duplicated call to importlib._install_external_importers (GH-6273)

[issue33337] Provide a supported Concrete Syntax Tree implementation in the standard library

2018-04-24 Thread Zsolt Dollenstein
Change by Zsolt Dollenstein : -- nosy: +zsol ___ Python tracker ___ ___

[issue33128] PathFinder is twice on sys.meta_path

2018-04-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +6290 ___ Python tracker ___

[issue33128] PathFinder is twice on sys.meta_path

2018-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 0977091dca59709864b14cfc129388f1f0de7bf7 by Nick Coghlan (Pablo Galindo) in branch 'master': bpo-33128 Fix duplicated call to importlib._install_external_importers (GH-6273)

[issue33343] [argparse] Add subcommand abbreviations

2018-04-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> bethard nosy: +bethard ___ Python tracker ___

[issue33211] lineno and col_offset are wrong on function definitions with decorators

2018-04-24 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___

[issue17050] argparse.REMAINDER doesn't work as first argument

2018-04-24 Thread paul j3
paul j3 added the comment: Since this feature is buggy, and there isn't an easy fix, we should probably remove any mention of it from the docs. We can still leave it as an undocumented legacy feature. There is precedent for leaving `nargs` constants undocumented.

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2018-04-24 Thread iunknwn
iunknwn added the comment: I feel like there are two reasonable options here: 1) We can implement a thread pool with basic resource tracking. This means idle threads get recycled, and threads that have been sitting idle for a while are terminated as demand drops, so

[issue33316] PyThread_release_lock always fails

2018-04-24 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: In all PyMUTEX_* and most PyCOND_* functions, all the underlying APIs are void. So there's no point for the functions to return anything other than as convention. A comment at the start of condvar.h says: "APIs generally return 0 on

[issue33346] Syntax error with async generator inside dictionary comprehension

2018-04-24 Thread Eric N. Vander Weele
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker ___ ___

[issue32552] Improve text for file arguments in argparse.ArgumentDefaultsHelpFormatter class

2018-04-24 Thread paul j3
paul j3 added the comment: This subclass makes are one method change: from: def _get_help_string(self, action): return action.help to: def _get_help_string(self, action): help = action.help if '%(default)' not in action.help:

[issue33343] [argparse] Add subcommand abbreviations

2018-04-24 Thread paul j3
paul j3 added the comment: This issue was raised in https://bugs.python.org/issue12713, argparse: allow abbreviation of sub commands by users A patch was implemented, and then reverted when it was found to be buggy. Subcommands are not parsed the same as long options.

[issue17050] argparse.REMAINDER doesn't work as first argument

2018-04-24 Thread Alden
Alden added the comment: Paul. This is a bug, not a feature in argparse. Devin is 100% correct. According to the docs REMAINDER should be greedy and is used for passing arguments to sub commands. In your example the expected behavior is that if you do put "d

[issue33343] [argparse] Add subcommand abbreviations

2018-04-24 Thread Brett Cannon
Change by Brett Cannon : -- title: Subcommand abbreviations -> [argparse] Add subcommand abbreviations ___ Python tracker ___

[issue33275] glob.glob should explicitly note that results aren't sorted

2018-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that anything that has the same FS-determined sorted or not behavior should get the same note, for the same reason. Ben, can you test? Eryk, can you enlighten us further? PS: Ben, when responding by email, please delete the quote,

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-04-24 Thread Alisue Lambda
Alisue Lambda added the comment: I've found an workaround. The point is that 'with s' should be included in a coroutine which will be timed-out. import asyncio import socket ADDR = ('10.0.2.1', 22) async def check(loop): s =

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-04-24 Thread Alisue Lambda
Alisue Lambda added the comment: I should have mentioned that the script works well on macOS and Linux. This issue exists only on Windows. -- ___ Python tracker

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-04-24 Thread Alisue Lambda
New submission from Alisue Lambda : This is my first time to create an issue on the python bug tracker so let me know if I don't follow the rule which I need to follow. # Summary Using 'loop.sock_connect' with 'asyncio.wait_for' raises 'OSError [WinError 10038]' in

[issue1284316] Win32: Security problem with default installation directory

2018-04-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: For those installing Python 2.7, I share here for others the [Powershell module](https://www.dropbox.com/s/62m9easad0iakat/python.ps1?dl=0) I include in my profile. With this module loaded, `get-python-ver 2.7.14` installs Python 2.7.14

[issue33347] zlibmodule undefined reference

2018-04-24 Thread Lucian Cristian
Lucian Cristian added the comment: it seems that python-config --libs doesn't detect -lz and appending -lz fixes the problem -PYTHON_LIBS="`\"${PYTHONCONFIG}\" --libs`" +PYTHON_LIBS="`\"${PYTHONCONFIG}\" --libs` -lz" --

[issue24356] venv documentation incorrect / misleading

2018-04-24 Thread Elena Oat
Change by Elena Oat : -- keywords: +patch pull_requests: +6289 stage: needs patch -> patch review ___ Python tracker ___

[issue33337] Provide a supported Concrete Syntax Tree implementation in the standard library

2018-04-24 Thread Guido van Rossum
Guido van Rossum added the comment: Lukasz, pleased consider seriously to move to a 3rd party package. Even pgen2. On Mon, Apr 23, 2018, 21:12 Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > The stdlib is a

[issue32797] Tracebacks from Cython modules no longer work

2018-04-24 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Alternatively, instead of not implementing `loader.get_source()`, we could define a new semantic: if it returns `NotImplemented`, assume that the loader doesn't know how to get the sources. In that case, linecache would fall back to the

[issue33349] 2to3 fails to parse async generators in non-async functions

2018-04-24 Thread Zsolt Dollenstein
Change by Zsolt Dollenstein : -- keywords: +patch pull_requests: +6288 stage: -> patch review ___ Python tracker ___

[issue33275] glob.glob should explicitly note that results aren't sorted

2018-04-24 Thread Ben FrantzDale
Ben FrantzDale added the comment: Great point. Looks like the phrase is "in arbitrary order" in the docs for those (both 2.7 and 3), which is better than saying nothing. I'd still prefer a bit more specificity about the potential gotcha since "arbitrary" seems a lot less

[issue33275] glob.glob should explicitly note that results aren't sorted

2018-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are there such notes in the descriptions of os.listdir(), os.scandir(), os.walk(), os.fwalk() and corresponding Path methods? If explicitly document the sorting, this should be made for all files enumerating functions.

[issue33275] glob.glob should explicitly note that results aren't sorted

2018-04-24 Thread Elena Oat
Change by Elena Oat : -- keywords: +patch pull_requests: +6287 stage: needs patch -> patch review ___ Python tracker ___

[issue33344] Use logical negation of integers directly in arithmatic propostions and equations

2018-04-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug ___ Python tracker ___

[issue33349] 2to3 fails to parse async generators in non-async functions

2018-04-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +benjamin.peterson, lukasz.langa, yselivanov ___ Python tracker ___

[issue33266] 2to3 doesn't parse all valid string literals

2018-04-24 Thread Zsolt Dollenstein
Change by Zsolt Dollenstein : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33349] 2to3 fails to parse async generators in non-async functions

2018-04-24 Thread Zsolt Dollenstein
New submission from Zsolt Dollenstein : This is valid since python3.7: ``` def f(): return (i * 2 async for i in arange(42)) ``` but lib2to3 doesn't parse this properly, because `async` is tokenized as a `NAME` instead of `ASYNC` -- components: 2to3 (2.x to

[issue33344] Use logical negation of integers directly in arithmatic propostions and equations

2018-04-24 Thread Kasra Vand
Change by Kasra Vand : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue33344] Use logical negation of integers directly in arithmatic propostions and equations

2018-04-24 Thread Kasra Vand
Kasra Vand added the comment: I think this will contradict to Python's operators precedence. What I mentioned seems like you're passing the number as an argument to `not`, and this is while `not` is not a function. There is an `operator.not_` function that does the same

[issue33348] lib2to3 doesn't parse f(*[] or [])

2018-04-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : See related issue24176 and issue24791. -- nosy: +benjamin.peterson, lukasz.langa, serhiy.storchaka, yselivanov versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue33348] lib2to3 doesn't parse f(*[] or [])

2018-04-24 Thread Zsolt Dollenstein
Change by Zsolt Dollenstein : -- keywords: +patch pull_requests: +6286 stage: -> patch review ___ Python tracker ___

[issue33348] lib2to3 doesn't parse f(*[] or [])

2018-04-24 Thread Zsolt Dollenstein
Change by Zsolt Dollenstein : -- components: 2to3 (2.x to 3.x conversion tool) nosy: zsol priority: normal severity: normal status: open title: lib2to3 doesn't parse f(*[] or []) type: behavior ___ Python tracker

[issue33344] Use logical negation of integers directly in arithmatic propostions and equations

2018-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And consider the example `3 + not 4 + 5`. -- ___ Python tracker ___

[issue33344] Use logical negation of integers directly in arithmatic propostions and equations

2018-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If `3 + not 4` be accepted, should it be evaluated to the same value as `not 4 + 3`? Currently the result of `not 4 + 3` is False. -- ___ Python tracker

[issue33317] `repr()` of string in NFC and NFD forms does not differ

2018-04-24 Thread Pekka Klärck
Pekka Klärck added the comment: I didn't submit this as a bug report but as an enhancement request. From usability point of view, saying that results differ but you just cannot see the difference is not very helpful. The exact reason I didn't submit this as an

[issue33344] Use logical negation of integers directly in arithmatic propostions and equations

2018-04-24 Thread Kasra Vand
Kasra Vand added the comment: Thanks, Indeed. But my question is more about the syntax and why it's not that straight? The reasons for that is because Python is known as a scientific programming language and many people come with mathematical background and may want to

[issue33347] zlibmodule undefined reference

2018-04-24 Thread Lucian Cristian
New submission from Lucian Cristian : trying to compile a utility in Openwrt and when pip-install is selected and zlib is linked to python I get this: staging_dir/hostpkg/lib/libpython2.7.a(zlibmodule.o): In function `PyZlib_crc32':

[issue33346] Syntax error with async generator inside dictionary comprehension

2018-04-24 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Given this async function: async def elements(n): yield n yield n*2 yield n*3 yield n*4 This definition is considered invalid: async def test(): return { n: [x async for x in elements(n)] for n in range(3)}

[issue33345] Documentation for PowerShell instructions

2018-04-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue33344] Use logical negation of integers directly in arithmatic propostions and equations

2018-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use 3 + (not 4). -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue33345] Documentation for PowerShell instructions

2018-04-24 Thread Steve Piercy
New submission from Steve Piercy : Effective 2017-11-20, PowerShell is now the default command shell on Windows 10, and possibly other versions. Command Prompt (cmd.exe) is still present, just no longer the default.

[issue33344] Use logical negation of integers directly in arithmatic propostions and equations

2018-04-24 Thread Kasra Vand
Kasra Vand added the comment: This may seem not very useful while except 0 for other numbers it returns False but one may want to use another proposition inside `not` that can use either 0 or a nonzero number. Also, in this case we can form more comprehensive logical

[issue33344] Use logical negation of integers directly in arithmatic propostions and equations

2018-04-24 Thread Kasra Vand
New submission from Kasra Vand : Logical Negation of integers in Python always returns a Boolean result which can be achieve using `not`. Sometimes it's necessary to use this result directly in a proposition within a list comprehension (mostly). But if we use `not`