[issue33359] curses.has_key failure

2018-04-25 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +6304 ___ Python tracker ___

[issue32209] Crash in set_traverse Within the Garbage Collector's collect_generations()

2018-04-25 Thread Connor W Fitzgerald
Connor W Fitzgerald added the comment: I'm going to close this. It's been a really long time and this was for an assignment and I rewrote it before we put it into a github repo so I don't even have the buggy code still. Additionally I think it may have been the

[issue32209] Crash in set_traverse Within the Garbage Collector's collect_generations()

2018-04-25 Thread Connor W Fitzgerald
Change by Connor W Fitzgerald : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue33363] async for statement is not a syntax error in sync context

2018-04-25 Thread Zsolt Dollenstein
New submission from Zsolt Dollenstein : Since 3.7, async generators can be used in non-async functions. The way this is implemented allows the following to be valid syntax: def f(): async for i in aiterable: pass return 1 The return value of the above

[issue33363] async for statement is not a syntax error in sync context

2018-04-25 Thread Nathaniel Smith
Change by Nathaniel Smith : -- nosy: +njs priority: release blocker -> normal ___ Python tracker ___

[issue33363] async for statement is not a syntax error in sync context

2018-04-25 Thread Yury Selivanov
Yury Selivanov added the comment: Wow, this is a regression that has to be fixed in 3.7. -- nosy: +ned.deily, yselivanov priority: normal -> release blocker ___ Python tracker

[issue33363] async for statement is not a syntax error in sync context

2018-04-25 Thread Nathaniel Smith
Nathaniel Smith added the comment: Sorry, not sure why bpo decided to reset the priority there. -- priority: normal -> release blocker ___ Python tracker

[issue33359] curses.has_key failure

2018-04-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 3219bbf6a159110d293dcfef2d5889ab020f4c5b by Benjamin Peterson in branch '2.7': fix running the curses.has_key module (closes bpo-33359) (GH-6608)

[issue27485] urllib.splitport -- is it official or not?

2018-04-25 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks! This is now fixed for Python 3.8 \o/ -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.8 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue33362] string strip() strips extra characters that it shouldn't

2018-04-25 Thread David Ghiurco
New submission from David Ghiurco : No PR is attached since the issue is pretty trivial to reproduce but important nonetheless: string = "LDA/AIC2/1919uc1b354363457" print(string) print(string.lstrip("LDA/")) the stripped string should be "AIC2/1919uc1b354363457" but is

[issue33362] string strip() strips extra characters that it shouldn't

2018-04-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: the argument to string.strip (also lstrip and rstrip) is not an exact substring to remove, but a set of characters to remove: py> 'zyxzz1234'.strip('xyz') '1234' -- nosy: +steven.daprano resolution: -> not a bug stage:

[issue33362] string strip() strips extra characters that it shouldn't

2018-04-25 Thread pmpp
pmpp added the comment: lstrip(chars=None, /) method of builtins.str instance Return a copy of the string with leading whitespace removed. If chars is given and not None, remove characters in chars instead. all L D A / single chars get removed, while there is

[issue33362] string strip() strips extra characters that it shouldn't

2018-04-25 Thread David Ghiurco
David Ghiurco added the comment: Thanks guys. I should have used .replace(). My bad. -- ___ Python tracker ___

[issue33305] Improve syntax error for numbers with leading zero

2018-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In Python 2.5 `0or[]` is valid syntax, but it is not valid in newer versions. What is the good error message for this case? -- ___ Python tracker

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

2018-04-25 Thread Ethan Smith
Change by Ethan Smith : -- nosy: +Ethan Smith ___ Python tracker ___ ___ Python-bugs-list

[issue33345] Documentation for PowerShell instructions

2018-04-25 Thread Steve Piercy
Steve Piercy added the comment: After reviewing PowerShell syntax, I found it is impractical to support in Pyramid's documentation. The discussion we had may be useful. https://github.com/Pylons/pyramid/issues/3260 -- ___

[issue33351] Support compiling with clang-cl on Windows

2018-04-25 Thread Alex Walters
Alex Walters added the comment: Is this the same as the clang/llvm C1 that you can enable from inside Visual Studio? -- nosy: +tritium ___ Python tracker

[issue33351] Support compiling with clang-cl on Windows

2018-04-25 Thread Ethan Smith
Ethan Smith added the comment: No, this is provided from llvm.org. You can find it as e.g. "Clang for Windows (64-bit)" here: http://releases.llvm.org/download.html#6.0.0 The Clang/C2 in Visual Studio is very different, and deprecated anyway. --

[issue33315] Allow queue.Queue to be used in type annotations

2018-04-25 Thread Ethan Smith
Change by Ethan Smith : -- nosy: +Ethan Smith ___ Python tracker ___ ___ Python-bugs-list

[issue33351] Support compiling with clang-cl on Windows

2018-04-25 Thread Alex Walters
Alex Walters added the comment: When supporting platforms comes up, there's a usual list of questions, especially for windows. I can remember two of them off the top of my head: * Are you suggesting that CPython's build system move away from MSVC as the platform

[issue22454] Adding the opposite function of shlex.split()

2018-04-25 Thread Matthijs Kooijman
Change by Matthijs Kooijman : -- nosy: +Matthijs Kooijman ___ Python tracker ___

[issue27645] Supporting native backup facility of SQLite

2018-04-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6292 ___ Python tracker ___ ___

[issue32706] test_check_hostname() of test_ftplib started to fail randomly

2018-04-25 Thread STINNER Victor
STINNER Victor added the comment: Christian Heimes: "Ned, I'm going to rewrite part of the test infrastructure during beta phase. (...)" Any progress on rewriting these tests? -- ___ Python tracker

[issue33041] Issues with "async for"

2018-04-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6293 ___ Python tracker ___ ___

[issue32710] test_asyncio leaked [4, 4, 3] memory blocks, sum=11 on AMD64 Windows8.1 Refleaks 3.x

2018-04-25 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.8 ___ Python tracker ___ ___

[issue32710] test_asyncio leaked [4, 4, 3] memory blocks, sum=11 on AMD64 Windows8.1 Refleaks 3.x

2018-04-25 Thread STINNER Victor
STINNER Victor added the comment: The test is still leaking memory blocks. Any progress on investigating the issue? -- ___ Python tracker

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2018-04-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6291 ___ Python tracker ___ ___

[issue32652] test_distutils: BuildRpmTestCase tests fail on RHEL buildbots

2018-04-25 Thread STINNER Victor
STINNER Victor added the comment: test_distutils pass on s390x RHEL 3.x buildbot. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31606] [Windows] Tests failing on installed Python 3.7a1 on Windows

2018-04-25 Thread STINNER Victor
STINNER Victor added the comment: > test_regrtest: "ERROR: test_pcbuild_rt (test.test_regrtest.ProgramsTestCase)" > because the tested script is not installed. I created bpo-33352 for this one. -- ___ Python tracker

[issue33352] Windows: test_regrtest fails on installed Python

2018-04-25 Thread STINNER Victor
New submission from STINNER Victor : Failure on Windows 10 with Python 3.7 beta 3: == ERROR: test_pcbuild_rt (test.test_regrtest.ProgramsTestCase)

[issue33353] test_asyncio: test_sock_sendfile_mix_with_regular_send() hangs on FreeBSD

2018-04-25 Thread STINNER Victor
New submission from STINNER Victor : Example with a timeout of 10 seconds: vstinner@freebsd$ ./python -m test -v test_asyncio -m test_sock_sendfile_mix_with_regular_send -v --timeout=10 == CPython 3.8.0a0 (heads/master:0977091dca, Apr 25 2018, 14:02:04) [Clang 4.0.0

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-04-25 Thread STINNER Victor
New submission from STINNER Victor : Windows10 3.x: http://buildbot.python.org/all/#/builders/3/builds/817 Timeout (0:15:00)! Thread 0x1e5c (most recent call first): File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_mmap.py", line 754 in _make_test_file

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-04-25 Thread STINNER Victor
STINNER Victor added the comment: The test also fails on Windows10 3.6 and Windows10 3.7. -- ___ Python tracker ___

[issue31606] [Windows] Tests failing on installed Python 3.7a1 on Windows

2018-04-25 Thread STINNER Victor
STINNER Victor added the comment: I tested Python 3.7 beta 3: test_marshal crashed and test_tools fails when running with python -m test -j2, but it seems like these two issues were already fixed in the 3.7 development branch. I close this issue. --

[issue33354] Python2, FreeBSD: test_ssl fails on non-ASCII path

2018-04-25 Thread STINNER Victor
New submission from STINNER Victor : The FreeBSD 2.7 buildbot is failing because of test_ssl: test test_ssl failed -- Traceback (most recent call last): File "/usr/home/buildbot/python/2.7.koobs-freebsd10/build/Lib/test/test_ssl.py", line 1005, in test_load_dh_params

[issue33354] Python2: test_ssl fails on non-ASCII path

2018-04-25 Thread STINNER Victor
STINNER Victor added the comment: The issue is not specific to FreeBSD, it depends on the locale (on the Python filesystem encoding). I reproduced the issue on Linux: vstinner@apu$ LC_ALL=C ./python -m test test_ssl Run tests sequentially 0:00:00 load avg: 0.27 [1/1]

[issue33356] Windows 10 buildbot: test__xxsubinterpreters.test_already_running() fails randomly

2018-04-25 Thread STINNER Victor
New submission from STINNER Victor : Windows10 3.x: test_already_running() failed once, but passed when run again: http://buildbot.python.org/all/#/builders/3/builds/817/steps/3/logs/stdio == FAIL:

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-04-25 Thread STINNER Victor
STINNER Victor added the comment: Similar bug on AMD64 Windows8 3.x buildbot: Timeout (0:15:00)! Thread 0x1014 (most recent call first): File "D:\buildarea\3.x.bolen-windows8\build\lib\test\test_mmap.py", line 754 in _make_test_file File

[issue33357] [EASY C] test_posix.test_posix_spawn_file_actions() leaks memory

2018-04-25 Thread STINNER Victor
New submission from STINNER Victor : vstinner@apu$ ./python -m test test_posix -R 3:3 -m test.test_posix.PosixTester.test_posix_spawn_file_actions Run tests sequentially 0:00:00 load avg: 0.58 [1/1] test_posix beginning 6 repetitions 123456 .. test_posix leaked [7, 7,

[issue33357] [EASY C] test_posix.test_posix_spawn_file_actions() leaks memory

2018-04-25 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal ___ Python tracker ___ ___

[issue33358] x86 Ubuntu Shared 3.x: test_embed.test_pre_initialization_sys_options() fails

2018-04-25 Thread STINNER Victor
New submission from STINNER Victor : Re-running test 'test_embed' in verbose mode test_bpo20891 (test.test_embed.EmbeddingTests) ... ok test_forced_io_encoding (test.test_embed.EmbeddingTests) ... ok test_pre_initialization_api (test.test_embed.EmbeddingTests) ... ok

[issue33281] ctypes.util.find_library not working on macOS

2018-04-25 Thread Michael Felt
Michael Felt added the comment: On 15/04/2018 07:56, Ned Deily wrote: > Ned Deily added the comment: > > Thanks for the report and the good detective work! I see the same results. > It appears that the error was introduced by >

[issue33357] [EASY C] test_posix.test_posix_spawn_file_actions() leaks memory

2018-04-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think PR6332 is already addressing this https://github.com/python/cpython/pull/6332 , right? -- ___ Python tracker

[issue33357] [EASY C] test_posix.test_posix_spawn_file_actions() leaks memory

2018-04-25 Thread STINNER Victor
STINNER Victor added the comment: I confirm that PR 6332 fixes the leak. -- ___ Python tracker ___

[issue33357] [EASY C] test_posix.test_posix_spawn_file_actions() leaks memory

2018-04-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- superseder: -> expose posix_spawn(p) ___ Python tracker ___

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

2018-04-25 Thread Eryk Sun
Eryk Sun added the comment: As I said, some file systems such as NTFS and ISO 9660 (or Joliet) store directories in lexicographically sorted order. NTFS does this using a b-tree and case-insensitive comparison, which helps the driver efficiently implement filtering a

[issue33258] Unable to install 3.6.5 on Windows Server 2008

2018-04-25 Thread Carl
Carl added the comment: The Windows server 2008 is in the process of being updated to 2012. Thanks for all the feedback -- stage: -> resolved status: open -> closed ___ Python tracker

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2018-04-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy -patch stage: -> needs patch versions: +Python 3.7, Python 3.8 -Python 3.4 ___ Python tracker

[issue30613] Distutils register command creates non-standard multipart data

2018-04-25 Thread Kaeptm Blaubaer
Kaeptm Blaubaer added the comment: Yes, I think it's relevant, "not require register anymore, although other package indexes might" This means other package indexes are required to be able to parse this HTTP. That's not good and has lead to workarounds (chishop

[issue33351] Support compiling with clang-cl on Windows

2018-04-25 Thread Ethan Smith
Ethan Smith added the comment: >* Are you suggesting that CPython's build system move away from MSVC as the >platform compiler for Windows? Not immediately, I don't think we should give up on the stability that currently exists with the cl based compilation. However, I

[issue22069] TextIOWrapper(newline="\n", line_buffering=True) mistakenly treat \r as a newline

2018-04-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy stage: -> needs patch versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue30613] Distutils register command creates non-standard multipart data

2018-04-25 Thread Kaeptm Blaubaer
Change by Kaeptm Blaubaer : -- keywords: +patch pull_requests: +6294 stage: -> patch review ___ Python tracker ___

[issue30613] Distutils register command creates non-standard multipart data

2018-04-25 Thread Éric Araujo
Éric Araujo added the comment: I think this is a duplicate, could you search existing bugs? But given issue33071 , is this still relevant? -- ___ Python tracker

[issue33280] Update link to Tcl/Tk 8.6 man pages in tkinter.rst

2018-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 67a8f4fed3169e1b8c947c10f6e06863e399ae32 by Serhiy Storchaka (Andrés Delfino) in branch 'master': bpo-33280: Reorganize external Tcl/Tk references. (GH-6473)

[issue33314] Bad rendering in the documentation for the os module

2018-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6a1799e6f02ef0db85d96d45d1f0a40ae72c9afe by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7': bpo-33314: Fix rendering issues in the documentation for the os module (GH-6525) (GH-6597)

[issue33280] Update link to Tcl/Tk 8.6 man pages in tkinter.rst

2018-04-25 Thread miss-islington
miss-islington added the comment: New changeset 53d36cc961ff2080fa91a216cce718295259d723 by Miss Islington (bot) in branch '3.7': bpo-33280: Reorganize external Tcl/Tk references. (GH-6473)

[issue33280] Update link to Tcl/Tk 8.6 man pages in tkinter.rst

2018-04-25 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +6299 ___ Python tracker ___ ___

[issue33280] Update link to Tcl/Tk 8.6 man pages in tkinter.rst

2018-04-25 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +6303 ___ Python tracker ___ ___

[issue33330] Better error handling in PyImport_Cleanup()

2018-04-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +6296 ___ Python tracker ___

[issue33330] Better error handling in PyImport_Cleanup()

2018-04-25 Thread miss-islington
miss-islington added the comment: New changeset 291c9d4f74f3c7c57ae18e1aca617206795a090d by Miss Islington (bot) in branch '3.7': bpo-0: Improve error handling in PyImport_Cleanup(). (GH-6564)

[issue33330] Better error handling in PyImport_Cleanup()

2018-04-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6300 ___ Python tracker ___ ___

[issue33330] Better error handling in PyImport_Cleanup()

2018-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 6606 replaces PyErr_Clear() with PyErr_WriteUnraisable(). This may add an unexpected noise at shutdown' but on other hand, this may be a helpful information in the case if something wrong happen. It doesn't produce

[issue33334] Add support of NOP and EXTENDED_ARG in stack_effect()

2018-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 57faf348872d1d0af1808c82f535cf220d64b028 by Serhiy Storchaka in branch 'master': bpo-4: Support NOP and EXTENDED_ARG in dis.stack_effect(). (#6566)

[issue33280] Update link to Tcl/Tk 8.6 man pages in tkinter.rst

2018-04-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +6295 ___ Python tracker ___

[issue33330] Better error handling in PyImport_Cleanup()

2018-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e9d9494d6b2a5e0c2d48d22c7f0d5e95504b4f7e by Serhiy Storchaka in branch 'master': bpo-0: Improve error handling in PyImport_Cleanup(). (GH-6564)

[issue33359] curses.has_key failure

2018-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: python -m curses.has_key -- keywords: +easy nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker

[issue33330] Better error handling in PyImport_Cleanup()

2018-04-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6301 ___ Python tracker ___ ___

[issue33359] curses.has_key failure

2018-04-25 Thread Uzume
New submission from Uzume : The following change is broken and should be reverted (for the one file anyway): https://github.com/python/cpython/commit/6e3dbbdf39f3b4eb6f18c0165e446df17218b7dc#diff-c322497c7350a91fc1d78da0bb76b5b5 This does not seem to affect master

[issue33280] Update link to Tcl/Tk 8.6 man pages in tkinter.rst

2018-04-25 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +6297 ___ Python tracker ___ ___

[issue33314] Bad rendering in the documentation for the os module

2018-04-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +6298 ___ Python tracker ___

[issue33330] Better error handling in PyImport_Cleanup()

2018-04-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6302 ___ Python tracker ___ ___

[issue33334] Add support of NOP and EXTENDED_ARG in stack_effect()

2018-04-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue33330] Better error handling in PyImport_Cleanup()

2018-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 55299fffe328c3d2dfc222a22116b7e53bf2e962 by Serhiy Storchaka in branch '2.7': [2.7] bpo-0: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6605)

[issue33330] Better error handling in PyImport_Cleanup()

2018-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b16681fb1e63f45361d1d68333d6dbdd4bf5435d by Serhiy Storchaka in branch '3.6': [3.6] bpo-0: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6604)

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

2018-04-25 Thread Guido van Rossum
Guido van Rossum added the comment: I think merging the tokenizers still makes sense. We can then document top-level tokenize.py (in 3.8 and later) as guaranteed to be able to tokenize anything going back to Python 2.7. And since lib2to3/pgen2 it is undocumented I presume

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2018-04-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the update. Since I still can't reproduce on Linux, perhaps you (or one of our resident Windows experts) can try to propose a patch fixing the issue? -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden,

[issue33360] ALternative recipe for password using secrets

2018-04-25 Thread Juan Postlbauer
New submission from Juan Postlbauer : Chapter 15.3.4 shows a recipe with an infinite potential loop. An alternative would be: ''.join(sorted([choice(string.ascii_lowercase) for i in range(1)]+[choice(string.ascii_uppercase) for i in range(1)]+[choice(string.digits) for i in

[issue3692] improper scope in list comprehension, when used in class declaration

2018-04-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: I'm re-opening this, since the behavior sounds like a bug to me. While I understand why it behaves the way it is now, but it seems wrong behavior. Perhaps we should look into finding a solution. -- nosy: +Mariatta

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2018-04-25 Thread Paul Goins
Paul Goins added the comment: I've confirmed this issue on Windows. Attached is an SSCCE which seems to reliably reproduce the issue in a Windows environment. Long story short: if a KeyboardInterrupt occurs during Thread.join(), there's a good chance that

[issue33361] readline() + seek() on io.EncodedFile breaks next readline()

2018-04-25 Thread Diego Argueta
New submission from Diego Argueta : It appears that calling readline() on a codecs.EncodedFile stream breaks seeking and causes subsequent attempts to iterate over the lines or call readline() to backtrack and return already consumed lines. A minimal example: ```

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

2018-04-25 Thread Łukasz Langa
Łukasz Langa added the comment: [njs] > "there's a bug in handling this python 2 code, so black won't be able to > reformat it until the next major python release" Nah, we're still allowed to fix bugs in micro releases. We should have more of those instead of sitting on

[issue27485] urllib.splitport -- is it official or not?

2018-04-25 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0250de48199552cdaed5a4fe44b3f9cdb5325363 by Łukasz Langa (Cheryl Sabella) in branch 'master': bpo-27485: Rename and deprecate undocumented functions in urllib.parse (GH-2205)