[issue32424] Synchronize copy methods between Python and C implementations of xml.etree.ElementTree.Element

2019-04-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > As it stands, calling Element.__deepcopy__() will succeed with the C > implementation and fail with the Python implementation. You should not call it directly. Use copy.deepcopy(). > What is > different about the C implementation that requires the definit

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-16 Thread Ryan
Ryan added the comment: Hi Steven, > PermissionError: [WinError 5] 拒绝访问。: 'L:\\Temp' to EN > PermissionError: [WinError 5] Access denied.: 'L:\\Temp' -- ___ Python tracker ___

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: Thanks Ryan. > PermissionError: [WinError 5] 拒绝访问。: 'L:\\Temp' Can you translate the error message into English for us please? -- ___ Python tracker __

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-16 Thread Ryan
Ryan added the comment: Hi Steven, Thanks for your reply, I paste the output I executed just now as below. You can see that the both version of Python are running in the same shell with the same permission. And the frequency of this problem is always happen. BTW, the network disk is an intrane

[issue35663] webbrowser.py firefox bug [python3, windows 10]

2019-04-16 Thread Tanmay Jain
Tanmay Jain added the comment: Fix: If you set firefox as your default browser then we get correct return from browser_controller.open(url) -- ___ Python tracker ___

[issue36645] re.sub() library entry does not adequately document surprising change in behavior between versions

2019-04-16 Thread mollison
mollison added the comment: You have not understood my message. I know that text is already there. My point is that because it's in a separate paragraph, it looks like it's not part of Changed in 3.7. There is nowhere else on the page where a change description is in a separate paragraph fr

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: Please don't post screen shots of text, copy and paste the text as text. Screen shots are hostile to the blind and visually impaired as screen-readers don't work with them. They make it impossible for us to copy your code to run it ourselves, and text in sc

[issue36645] re.sub() library entry does not adequately document surprising change in behavior between versions

2019-04-16 Thread Josh Rosenberg
Josh Rosenberg added the comment: I believe the second note under "Changed in 3.7" is intended to address this: > Empty matches for the pattern are replaced when adjacent to a previous > non-empty match. Obviously not as detailed as the What's New entry, but it's there. -- nosy: +jo

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-16 Thread Ryan
New submission from Ryan : My script need scan a netdisk directory to get the content of it. I use os.listdir() method for an easy implement, then I got permission error when executing in Python 3.x, but the same code is working fine in Python 2.7,I attached a screenshot for explaining the pr

[issue36642] make unicodedata "const"

2019-04-16 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue36641] make docstring in C const

2019-04-16 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue36642] make unicodedata "const"

2019-04-16 Thread Inada Naoki
Inada Naoki added the comment: New changeset 6fec905de5c139017f36b212e54cac46959808fe by Inada Naoki in branch 'master': bpo-36642: make unicodedata const (GH-12855) https://github.com/python/cpython/commit/6fec905de5c139017f36b212e54cac46959808fe -- ___

[issue36641] make docstring in C const

2019-04-16 Thread Inada Naoki
Inada Naoki added the comment: New changeset 926b0cb5f688808dc11448a0bf3e452d1b92c232 by Inada Naoki in branch 'master': bpo-36641: Add "const" to PyDoc_VAR macro (GH-12854) https://github.com/python/cpython/commit/926b0cb5f688808dc11448a0bf3e452d1b92c232 -- ___

[issue19961] MacOSX: Tkinter build failure when building without command-line tools

2019-04-16 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue36645] re.sub() library entry does not adequately document surprising change in behavior between versions

2019-04-16 Thread mollison
New submission from mollison : This is regarding the change to re.sub() between 3.6 and 3.7 that results in different behavior even for simple cases like the following: re.sub('a*','b', 'a') returns 'b' in 3.6 and 'bb' in 3.7 This change is well documented here: https://docs.python.org/3/what

[issue35297] untokenize documentation is not correct

2019-04-16 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36432] Running python test suite fails on macOS 10.14.4 with resource.RLIMIT_STACK error

2019-04-16 Thread Berker Peksag
Berker Peksag added the comment: I can also confirm that reverting 335ab5b66f432ae3713840ed2403a11c368f5406 fixes the problem. -- nosy: +berker.peksag type: -> behavior ___ Python tracker _

[issue33783] Use proper class markup for random.Random docs

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: I pushed Matthias's change. Thanks Matthias! I am not sure that it implements exactly what Nick asked. Reopen the issue if it is not the case. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___

[issue33783] Use proper class markup for random.Random docs

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset a6fce19968cd39dfbc2684f97ca3184d9996f61e by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-33783: Use proper class markup for random.Random docs (GH-7817) (GH-12859) https://github.com/python/cpython/commit/a6fce19968cd39dfbc2684f97c

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: My PR is consistent with the behavior you described in your zsh example, no? which doesn't find python if PATH is empty or equal to ":". -- ___ Python tracker __

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2019-04-16 Thread Stefan Behnel
Stefan Behnel added the comment: I submitted a PR that changes the API back to an empty string. While lxml uses None here, an all-strings mapping is simply more convenient. I will start supporting both in lxml from the next release. Comments welcome. --

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2019-04-16 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: +12784 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue36644] Improve documentation of slice.indices()

2019-04-16 Thread PEW's Corner
New submission from PEW's Corner : The slice class is described in the Built-In Functions document: https://docs.python.org/3/library/functions.html#slice ... but that entry fails to mention the indices() method, and states that slice objects "have no other explicit functionality" beyond the

[issue34160] ElementTree not preserving attribute order

2019-04-16 Thread Stefan Behnel
Stefan Behnel added the comment: I rejected the (now conflicting) PR that adds a sorting option. I also sent Victor a tentative (and trivial) patch for the pungi package. -- ___ Python tracker __

[issue36643] Forward reference is not resolved by dataclasses.fields()

2019-04-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue35866] concurrent.futures deadlock

2019-04-16 Thread Jakub Wilk
Jakub Wilk added the comment: https://github.com/python/cpython/pull/12704 doesn't fix the bug for me. Reverting 3b699932e5ac3e76031bbb6d700fbea07492641d doesn't fix it either. -- ___ Python tracker

[issue36643] Forward reference is not resolved by dataclasses.fields()

2019-04-16 Thread Misha Drachuk
New submission from Misha Drachuk : Forward reference is not resolved by `dataclasses.fields()`, but it works with `typing.get_type_hints()`. E.g. from dataclasses import dataclass, fields from typing import Optional, get_type_hints @dataclass class Nestable: child: Optional['Nestable']

[issue35866] concurrent.futures deadlock

2019-04-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd appreciate it if someone with an application running into the issue could be tested with my PR from issue36533 (https://github.com/python/cpython/pull/12704) applied. -- ___ Python tracker

[issue35866] concurrent.futures deadlock

2019-04-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: Please do not blindly revert that. See my PR in https://bugs.python.org/issue36533 which is specific to this "issue" with logging. -- versions: +Python 3.8 ___ Python tracker

[issue35866] concurrent.futures deadlock

2019-04-16 Thread cagney
cagney added the comment: (disclaimer: I'm mashing my high level backtraces in with @jwiki's low level backtraces) The Python backtrace shows the deadlocked process called 'f' which then 'called': import ctypes which, in turn 'called': from _ctypes import Union, Structure, Array and

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-16 Thread Jakub Wilk
Jakub Wilk added the comment: which(1) is not standardized, and there are many[*] implementations with different behavior in corner cases. For example, this happens with zsh 5.7.1 on Debian: % which python /usr/bin/python % PATH= which python python % PATH=. which python ./p

[issue33783] Use proper class markup for random.Random docs

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 31e8d69bfe7cf5d4ffe0967cb225d2a8a229cc97 by Victor Stinner (Matthias Bussonnier) in branch 'master': bpo-33783: Use proper class markup for random.Random docs (GHè7817) https://github.com/python/cpython/commit/31e8d69bfe7cf5d4ffe0967cb225d2a8a229

[issue33783] Use proper class markup for random.Random docs

2019-04-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +12783 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: > What do you mean, "no consensus could be found"? I don't see anyone objecting > the change. I propose a change to always link and a change to never link. I don't see any tracking towards one option. It seems like there are issues on Android. Anyway, this

[issue36558] Change time.mktime() return type from float to int?

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: https://mail.python.org/pipermail/python-dev/2019-April/157125.html Guido van Rossum wrote: "Consistency with C should not be the issue -- consistency between the time functions is important. (...) So let's drop the idea." I close the issue. -- res

[issue36263] test_hashlib.test_scrypt() fails on Fedora 29

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: OpenSSL regression has been fixed in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1688284 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 12858 to os.confstr("CS_PATH") if available in shutil.which() and distutils.spawn.find_executable(), but also change the behavior when the PATH environment variable is set to an empty string: use an empty string, don't use os.confstr("CS_PATH") no

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12782 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-16 Thread Steve Dower
Steve Dower added the comment: We should be able to use alternate characters in the SET call, or just drop the quotes completely. In theory they make sense, but there's no trailing whitespace to worry about here. -- ___ Python tracker

[issue36607] asyncio.all_tasks() crashes if asyncio is used in multiple threads

2019-04-16 Thread Nick Davies
Change by Nick Davies : -- type: -> behavior versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2019-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: What do you mean, "no consensus could be found"? I don't see anyone objecting the change. -- ___ Python tracker ___

[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: > Downstream (RHEL) issue: > https://bugzilla.redhat.com/show_bug.cgi?id=1585201 This issue has been closed as "not a bug". -- Since this issue has been created, no consensus could be found. So I close the issue to keep the status quo. In short, RTLD_LOCAL

[issue35697] _decimal: Implement the previously rejected changes from #7442.

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: I'm no longer interested to rewrite my patch to avoid _Py_GetLocaleconvNumeric() which comes from the internal API, so I close my PR. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed __

[issue36631] test_urllib2net: test_ftp_no_timeout() killed after a timeout of 15 min

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: > It seems like test_urllib2net.test_ftp_no_timeout() has no timeout: it should > use a timeout to not block the whole test suite if the FTP server is down. Well. I didn't read the name of the test... I'm not sure that it makes any sense to add a timeout to

[issue36558] Change time.mktime() return type from float to int?

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: I started a thread on python-dev: https://mail.python.org/pipermail/python-dev/2019-April/157121.html -- ___ Python tracker ___ _

[issue34160] ElementTree not preserving attribute order

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: PR 10452 is still open. Should it be closed if you consider that we must not add an optional sort_attrs=False attribute? -- ___ Python tracker _

[issue35866] concurrent.futures deadlock

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: A least 2 projects were broken by the logging change: libreswan and Anaconda. > I've filed a Fedora bug report that points to this one: > That's related to the libreswan project. Last year, there was an

[issue35866] concurrent.futures deadlock

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: Gregory: It seems like https://github.com/python/cpython/commit/3b699932e5ac3e76031bbb6d700fbea07492641d is causing deadlocks which is not a good thing. What do you think of reverting this change? -- nosy: +gregory.p.smith _

[issue34160] ElementTree not preserving attribute order

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: FYI pungi project is also broken by this change and it blocks Fedora Rawhide to upgrade to Python 3.8: https://bugzilla.redhat.com/show_bug.cgi?id=1698514 -- nosy: +vstinner ___ Python tracker

[issue36616] Optimize thread state handling in function call code

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: Jeroen Demeyer closed his PR 12839, so I close the issue as well. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36508] python-config --ldflags must not contain LINKFORSHARED ("-Xlinker -export-dynamic" on Linux)

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: The bug is fixed in 3.7 and master (future 3.8) branches. I prefer to leave 2.7 unchanged. I close the issue. Python 2.7 is affected as well, but I'm really scared to touch the build system of Python 2.7 which is very stable. Even for Python 3.7, I wasn't fu

[issue36508] python-config --ldflags must not contain LINKFORSHARED ("-Xlinker -export-dynamic" on Linux)

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset cd46b09b0863c787dd54c433fae52bd8bdfaecd0 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-36508: python-config don't export LINKFORSHARED (GH-12661) (GH-12748) https://github.com/python/cpython/commit/cd46b09b0863c787dd54c433fae52bd

[issue36641] make docstring in C const

2019-04-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue36642] make unicodedata "const"

2019-04-16 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12781 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-04-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 2b7f93b99afbe78e4e567d9252d9470d29f387c8 by Stéphane Wirtel in branch 'master': bpo-36345: Update wsgiref example (GH-12562) https://github.com/python/cpython/commit/2b7f93b99afbe78e4e567d9252d9470d29f387c8 --

[issue36642] make unicodedata "const"

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: Can you write a PR? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue36642] make unicodedata "const"

2019-04-16 Thread Inada Naoki
New submission from Inada Naoki : diff --git a/Tools/unicode/makeunicodedata.py b/Tools/unicode/makeunicodedata.py index 9327693a17..2550b8f940 100644 --- a/Tools/unicode/makeunicodedata.py +++ b/Tools/unicode/makeunicodedata.py @@ -1249,7 +1249,7 @@ class Array: size = getsize(self.dat

[issue36641] make docstring in C const

2019-04-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue36641] make docstring in C const

2019-04-16 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12780 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue36641] make docstring in C const

2019-04-16 Thread Inada Naoki
Inada Naoki added the comment: Without any configure options: $ size python python-const textdata bss dec hex filename 2980860 448880 131672 3561412 3657c4 python 3185372 244464 131664 3561500 36581c python-const -- ___ Pyt

[issue36641] make docstring in C const

2019-04-16 Thread Inada Naoki
New submission from Inada Naoki : In most case, docstring in C is constant. Can we add "const"? If we can, it can avoid allocating and copying several KBs. --- a/Include/pymacro.h +++ b/Include/pymacro.h @@ -69,4 +69,4 @@ /* Define macros for inline documentation. */ -#define PyDoc_VAR(name)

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-16 Thread Michael Felt
Michael Felt added the comment: Never mind - typos in the files I did work on. iow, I found a way to get the filename, and am cleaning up the errors. -- ___ Python tracker __

[issue36635] Add _testinternalcapi module

2019-04-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12779 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36626] asyncio run_forever blocks indefinitely

2019-04-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: Not sure about `create_task()`. Usually you create tasks from async code, where the `_write_to_self()` call is not needed. Handling writing to self-pipe is not free, starting very many tasks at once can hit performance. Stopping the loop is another beast, w

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: > I wonder if we can add -fmax-type-align=8 for extension types... No, we cannot: it's a temporary fix. The flag causes compilation error if it's added to old version of clang or to a C compiler different than clang. > Any ideas about reduce impact for Pyth

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-16 Thread Inada Naoki
Inada Naoki added the comment: > In 3.8, the union used to ensure alignment on a C double is gone. Note that two uintptr_t is aligned 16bytes on 64bit platforms and 8bytes on 32bit platforms. Python 3.7 is worse than 3.8. It used "double dummy" to align by 8 bytes, not 16 bytes. We should us

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: Alexey Izbyshev: "I think that we can even drop dup-based validation from is_valid_fd() since there is a corner case for Linux too: if a descriptor opened with O_PATH inherited as a standard one, dup() will succeed but fstat() will fail in kernels before 3.6.

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-16 Thread Michael Felt
Michael Felt added the comment: OK. I have been chewing my bone. I hope not too much indigestion. Who has a pointer for the antacid? Getting base branch for PR ... origin/master Getting the list of files that have been added/changed ... 72 files Fixing Python file whitespace ... Traceback (mo

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-16 Thread Saba Kauser
Saba Kauser added the comment: Thanks Karthikeyan. The behavior is specific to anaconda when I use the python/pip that comes with it. When I use the pip from anaconda, e.g:/Users/skauser/anaconda3/bin/pip pip install ibm_db Installation is success,but when I import ibm_db, I get this error

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2019-04-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12778 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2019-04-16 Thread STINNER Victor
STINNER Victor added the comment: > ktrace shows that dup(0) succeeded but fstat(0) failed. Aha, the problem is still the is_valid_fd() function: /* Prefer dup() over fstat(). fstat() can require input/output whereas dup() doesn't, there is a low risk of EMFILE/ENFILE at Python

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Anacond and ibm_db are not part of CPython distribution. Can you please add a script and explain over how it's a bug with CPython? There are also previous reports when searching for "ibm_db" and I am not sure if these are bugs with CPython too. ht

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-16 Thread Saba Kauser
New submission from Saba Kauser : Hi, I have added a post install class that's working fine when I do "pip install ibm_db" on MAC. However, when I use the python/pip from anaconda3(python 3.7), the same pip is not executing the post install script. Can some one please take a look at assist. Th

[issue16079] list duplicate test names with patchcheck

2019-04-16 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the link Gregory. I will write a script based on ast and check its output against pylint and against the current script based on tokenize. The travis() function of Tools/scripts/patchcheck.py may be modified to import this script and run it only o

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-04-16 Thread serge-sans-paille
serge-sans-paille added the comment: @vstinner: once you have a portable version of alignof, you can deciding to *not* use the pool allocator if the required alignment is greater than 8B, or you could modify the pool allocator to take alignment information as an extra parameter? --

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-16 Thread Eryk Sun
Eryk Sun added the comment: > my user path contains a stray double quotation mark (") Steve, do you think we should work around this by first removing double quote characters from PATH? This will fix the user's PATH, making one or more directories searchable again, but it could have side eff

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-16 Thread Bastian Wenzel
Bastian Wenzel added the comment: Ok I think I found my problem. The system path of of my machine is ok but my user path contains a stray double quotation mark (") like this: C:\Program Files\Git\bin";C:\Tools\antlr;C:\Program Files (x86)\Common Files\Oracle\Java\javapath ... With this I am

[issue36639] Provide list.rindex()

2019-04-16 Thread 林自均
林自均 added the comment: Hi @SilentGhost, Thank you for the feedback. The PR is only a WIP and a placeholder. Hi @xtreak, Thank you for searching that mailing list for me. However, after reading the thread, it seems that we didn't have any conclusion on whether we should add list.rindex() or n

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2019-04-16 Thread Andrey Paramonov
Andrey Paramonov added the comment: Hello! Below is updated implementation containing more consistent error handling. The main rough edges encountered: 1. asyncio.Queue alone proved insufficient for precise control of limit, as asyncio.create_task() schedules created Task() immediately and i

[issue36639] Provide list.rindex()

2019-04-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New methods to builtins generally require a python-ideas discussion. Search brings up an old discussion for rindex and rremove : https://mail.python.org/pipermail/python-ideas/2009-May/004506.html . It also would make users ask for tuple.rindex as

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-16 Thread Bastian Wenzel
Bastian Wenzel added the comment: So if I replace this section from venv's activate.bat: if defined _OLD_VIRTUAL_PATH ( set "PATH=%_OLD_VIRTUAL_PATH%" ) else ( set "_OLD_VIRTUAL_PATH=%PATH%" ) with the part from virtualenv's activate.bat: REM if defined _OLD_VIRTUAL_PATH ( if not defi

[issue36572] python-snappy install issue during Crossbar install with Python 3.7.3 (Windows x86 executable installer)

2019-04-16 Thread SilentGhost
SilentGhost added the comment: This doesn't seem like a Python issue at all. I would suggest to turn to the crossbario project in the first place, and report it to them if the fix for their 1521 bug does not fix it for you. -- nosy: +SilentGhost resolution: -> third party stage: ->

[issue36638] typeperf.exe is not in all skus of Windows SKUs

2019-04-16 Thread SilentGhost
Change by SilentGhost : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware type: crash -> behavior ___ Python tracker ___ ___

[issue36639] Provide list.rindex()

2019-04-16 Thread SilentGhost
SilentGhost added the comment: That's a fairly bare-bones implementation you're providing in your PR. Such a feature would need documentation, tests, news entry. I'm not endorsing or discarding your idea, but these are the general requirements for the feature of this level. -- compo