[issue32511] Thread primitives do not report the OS-level error on failure

2018-01-07 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___ Python-bugs-list

[issue31975] Add a default filter for DeprecationWarning in __main__

2018-01-07 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 9b99747386b690007027c3be2a5d7cfe3d3634f5 by Nick Coghlan in branch 'master': bpo-31975 (PEP 565): Show DeprecationWarning in __main__ (GH-4458) https://github.com/python/cpython/commit/9b99747386b690007027c3be2a5d7cfe3d3634f5

[issue31975] Add a default filter for DeprecationWarning in __main__

2018-01-07 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2018-01-07 Thread Nick Coghlan
Nick Coghlan added the comment: As David noted, we updated all the URL parsing functions to be polymorphic back in 3.2: https://docs.python.org/3/library/urllib.parse.html#parsing-ascii-encoded-bytes We left the quoting functions alone, because they already had their own

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2018-01-07 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks. I've added the dependencies, and also granted you triage permissions on the tracker, so you should be able to edit dependencies yourself in the future. -- dependencies: +Add an option to profile to run library module as a

[issue32514] 0x80070002 - The system cannot find the file specified

2018-01-07 Thread Tylor
Tylor added the comment: Here's the second log file. Yeah, it's actually 2 spaces. It happened when I initially setup my computer and it would not let me setup my User Account with a Microsoft Account. Therefore, I settled for a local account which I miss-named with 2

[issue32430] Simplify Modules/Setup{,.dist,.local}

2018-01-07 Thread Martin Panter
Martin Panter added the comment: FWIW there was documentation in the README about the Setup files, removed in Subversion r57681 (= Git revision 1c896e3). It looks like it still survives in the 2.7 version. -- nosy: +martin.panter

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-07 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue32507] Change Windows install to applocal UCRT

2018-01-07 Thread Steve Dower
Steve Dower added the comment: All correct. I believe venv is fine, as it copies all DLLs, but virtualenv is more selective and will need to be updated. -- ___ Python tracker

[issue32514] 0x80070002 - The system cannot find the file specified

2018-01-07 Thread Steve Dower
Steve Dower added the comment: In your TEMP directory there will be at least one other log file near the one you attached. Could you also include those? I wonder if the space at the start of your user name is a problem... --

[issue20104] expose posix_spawn(p)

2018-01-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: rejected -> stage: needs patch -> patch review status: closed -> open type: performance -> enhancement ___ Python tracker

[issue32508] Problem while reading back from a list of lists

2018-01-07 Thread J Viswanathan
J Viswanathan added the comment: Thanks for your sensible advice to produce a short, self-contained and correct example. Attached is the input file (35 lines, 770 bytes) and log (14 lines) Description of the problem and bug: The data consists of 6

[issue32511] Thread primitives do not report the OS-level error on failure

2018-01-07 Thread Dryden Bouamalay
Change by Dryden Bouamalay : -- nosy: +drydenb ___ Python tracker ___ ___

[issue32517] test_read_pty_output() of test_asyncio hangs on x86-64 Sierra 3.6

2018-01-07 Thread STINNER Victor
New submission from STINNER Victor : On buildbot x86-64 Sierra 3.6, since build 163, test_read_pty_output() of test_asyncio started to hang: http://buildbot.python.org/all/#/builders/20/builds/163/steps/4/logs/stdio 0:22:40 load avg: 1.73 [329/406/1] test_asyncio

[issue31931] test_concurrent_futures: ProcessPoolSpawnExecutorTest.test_shutdown_race_issue12456() leaked dangling process on x86 Tiger 3.x

2018-01-07 Thread STINNER Victor
STINNER Victor added the comment: Another recent failure on x86 Tiger 3.x: http://buildbot.python.org/all/#/builders/30/builds/441 test_max_workers_negative (test.test_concurrent_futures.ProcessPoolSpawnProcessPoolExecutorTest) ... 2.63s ok test_no_stale_references

[issue23749] asyncio missing wrap_socket (starttls)

2018-01-07 Thread STINNER Victor
STINNER Victor added the comment: SelectorStartTLSTests failed once on x86 Tiger 3.x in build 453, but then passed, no idea why. http://buildbot.python.org/all/#/builders/30/builds/453 == ERROR:

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-07 Thread STINNER Victor
STINNER Victor added the comment: Failure on x86 Gentoo Installed with X 3.x: http://buildbot.python.org/all/#/builders/103/builds/453 4 tests failed: test_compileall test_import test_importlib test_inspect test test_import crashed -- Traceback (most recent call

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-07 Thread STINNER Victor
STINNER Victor added the comment: Tests fail on Windows since the commit deae6b451fefd5fd3143dd65051e1d341e5a5f84. Example with AMD64 Windows8.1 Non-Debug 3.x: http://buildbot.python.org/all/#/builders/12/builds/426

[issue31963] AMD64 Debian PGO 3.x buildbot: compilation failed with an internal compiler error in create_edge

2018-01-07 Thread STINNER Victor
STINNER Victor added the comment: Different error: http://buildbot.python.org/all/#/builders/47/builds/428 Objects/bytearrayobject.c: In function ‘bytearray_startswith’: Objects/bytearrayobject.c:2429:1: error: the control flow of function ‘bytearray_startswith’

[issue32516] Add a shared library mechanism for win32

2018-01-07 Thread xoviat
xoviat added the comment: Sorry, that should have read: 2. A folder two levels under site-packages that is named '.libs' Please consult the auditwheel source to determine the specific pattern if there is doubt. -- ___ Python

[issue32516] Add a shared library mechanism for win32

2018-01-07 Thread xoviat
New submission from xoviat : On linux and macOS, a mechanism exists to relocate shared libraries inside of a wheel. Auditwheel creates a .libs folder and places the shared libraries inside of it. The problem is that on Windows, the rpath mechanism doesn't exist. We've

[issue23749] asyncio missing wrap_socket (starttls)

2018-01-07 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/#/builders/58/builds/435 Tests fail on x86 Windows7 3.x: == ERROR: test_start_tls_client_1

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2018-01-07 Thread R. David Murray
R. David Murray added the comment: I think Nick was the last one who touched the byte/string issues in urllib, so I've nosied him. We'll see what he thinks (but this tracker accepts enhancement proposals as long as they are smallish ones). -- nosy: +ncoghlan

[issue32507] Change Windows install to applocal UCRT

2018-01-07 Thread Paul Moore
Paul Moore added the comment: Oh, so we're talking here about bundling the ucrt installers and then if the user doesn't already have ucrt installed system wide, we will install a local copy, but if they do, we don't do anything? If we install a local copy, then it'll be

[issue32515] Add an option to trace to run module as a script

2018-01-07 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +4995 stage: -> patch review ___ Python tracker ___

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2018-01-07 Thread Mario Corchero
Mario Corchero added the comment: Just finished a draft on the one for trace: issue32515 -- ___ Python tracker ___

[issue32515] Add an option to trace to run module as a script

2018-01-07 Thread Mario Corchero
New submission from Mario Corchero : Add an option to trace to be able to do `python3 -m trace -t --module my.module.name` to be able to trace a runnable module the same way we can do with scripts. As we want trace to not include the lines in runpy I am going to with the

[issue32512] Add an option to profile to run library module as a script

2018-01-07 Thread Mario Corchero
Mario Corchero added the comment: Related issue for improved executable module support for standard library modules that run other scripts: https://bugs.python.org/issue9325 -- ___ Python tracker

[issue32514] 0x80070002 - The system cannot find the file specified

2018-01-07 Thread Tylor
New submission from Tylor : When attempting to install Python 3.6.4, I get the error "0x80070002 - The system cannot find the file specified." I am able to install on a different Windows User, just not the current one I am using. The account has administrator

[issue32507] Change Windows install to applocal UCRT

2018-01-07 Thread Steve Dower
Steve Dower added the comment: Technically yes, though I think at this stage it will be very few machines that end up with our copy, and users can patch their own system using Windows Update even if we've installed a copy. Particularly for our user base, where I

[issue32506] dataclasses: no need for OrderedDict now that dict guarantees to keep insertion order

2018-01-07 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset d13889214a4c81b78fa8683d35bdbd17ff22f4fe by Eric V. Smith in branch 'master': bpo-32506: Change dataclasses from OrderedDict to plain dict. (gh-5131)

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2018-01-07 Thread stein-k
stein-k added the comment: The unquote function does take an encoding argument, but I am more worried about unquote_to_to_bytes which just assumes utf-8. (But this might be an implementation detail of its intended usage.) I must agree that a polymorphic

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2018-01-07 Thread Mario Corchero
Mario Corchero added the comment: I've created an issue + PR for profile which basically ports the change in cProfile: issue32512 I am not able to add it as a dependency on this one (rights issue probably). -- ___ Python

[issue32512] Add an option to profile to run library module as a script

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

[issue32509] doctest syntax ambiguity between continuation line and ellipsis

2018-01-07 Thread Tim Peters
Tim Peters added the comment: By the way, going back to your original problem, "the usual" solution to that different platforms can list directories in different orders is simply to sort the listing yourself. That's pretty easy in Python ;-) Then your test can verify the

[issue32471] Add an UML class diagram to the collections.abc module documentation

2018-01-07 Thread Yahya Abou Imran
Change by Yahya Abou Imran : -- keywords: +patch pull_requests: +4994 stage: -> patch review ___ Python tracker ___

[issue32512] Add an option to profile to run library module as a script

2018-01-07 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +4993 stage: -> patch review ___ Python tracker ___

[issue32509] doctest syntax ambiguity between continuation line and ellipsis

2018-01-07 Thread Tim Peters
Tim Peters added the comment: Jason, an ellipsis will match an empty string. But if your expected output is: """ x... abcd ... """ you're asking for output that: - starts with "x" - followed by 0 or more of anything - FOLLOWED BY A NEWLINE (I think you're overlooking this

[issue10496] Python startup should not require passwd entry

2018-01-07 Thread Filippo Giunchedi
Change by Filippo Giunchedi : -- nosy: +filippo ___ Python tracker ___ ___

[issue32471] Add an UML class diagram to the collections.abc module documentation

2018-01-07 Thread Yahya Abou Imran
Yahya Abou Imran added the comment: I have generated SVG files. Here is the rest of the ABCs present in the module: https://gitlab.com/yahya-abou-imran/collections-abc-uml/blob/master/plantuml/other_collections.svg And here is the full version with all ABCs:

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-07 Thread Eric V. Smith
New submission from Eric V. Smith : Modify dataclasses to make it easier to specify special methods. For example: currently, if you want to override __repr__, you need to specify @dataclass(repr=False), and also provide your own __repr__. Also, it's current an error to not

[issue32512] Add an option to profile to run library module as a script

2018-01-07 Thread Mario Corchero
New submission from Mario Corchero : Add an option to profile to be able to do `python3 -m profile -m my.module.name` to be able to profile the module the same way cProfile allows since issue 21862 -- components: Library (Lib) messages: 309627 nosy: mariocj89

[issue31802] 'import posixpath' fails if 'os.path' has not be imported already.

2018-01-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 94a3facc0e5ce02ef34d9fa595703cd96cb95984 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-31802: Fix importing native path module before importing os. (GH-4017) (#5129)

[issue32506] dataclasses: no need for OrderedDict now that dict guarantees to keep insertion order

2018-01-07 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: +4992 ___ Python tracker ___ ___

[issue32506] dataclasses: no need for OrderedDict now that dict guarantees to keep insertion order

2018-01-07 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +4991 stage: -> patch review ___ Python tracker ___

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2018-01-07 Thread R. David Murray
R. David Murray added the comment: We generally don't do type checking (see discussions of "duck typing"). We generally do just let the implementation detail bubble up. I don't think the encoding suggestion works, since we can't know what encoding the byte string is

[issue31802] 'import posixpath' fails if 'os.path' has not be imported already.

2018-01-07 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4990 ___ Python tracker ___

[issue31802] 'import posixpath' fails if 'os.path' has not be imported already.

2018-01-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3460198f6ba40a839f105c381f07179aba1e8c61 by Serhiy Storchaka in branch 'master': bpo-31802: Fix importing native path module before importing os. (#4017)

[issue32511] Thread primitives do not report the OS-level error on failure

2018-01-07 Thread Zack Weinberg
New submission from Zack Weinberg : [_]thread.start_new_thread can fail if the underlying OS primitive fails (pthread_create / _beginthreadex), but the exception that is thrown when this happens is a generic RuntimeError (it's _called_ ThreadError in the source code, but it

[issue28414] SSL match_hostname fails for internationalized domain names

2018-01-07 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +4989 stage: -> patch review ___ Python tracker ___

[issue32509] doctest syntax ambiguity between continuation line and ellipsis

2018-01-07 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thank you Steven for creating a reproduction of the issue; I should have done that in the first place. I have the +ELLIPSIS enabled elsewhere in the test suite, which is why it didn't appear in my example. I should clarify - what I

[issue32510] Broken comparisons (probably caused by wrong caching of values)

2018-01-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Oh, by the way... are you aware that the Recursor class defines a class attribute `branches` which is shared by all instances? You create multiple recursor objects, but they all share the same `branches` attribute. That might be

[issue32510] Broken comparisons (probably caused by wrong caching of values)

2018-01-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: That is nearly two hundred lines of quite complex code. What results are you expecting and what results are you getting? I've just tried running it under Python 3.3 and 3.5 on a RedHat-based Linux, and after generating a large

[issue32510] Broken comparisons (probably caused by wrong caching of values)

2018-01-07 Thread Thermi
New submission from Thermi : With Python 3.6.4 on Arch Linux, on three different hosts (one Skylake CPU, one i7-3820, one Xeon E5-2680, all running Arch Linux with the same Python version), the Python 3 interpreter behaves erratically in a script

[issue31975] Add a default filter for DeprecationWarning in __main__

2018-01-07 Thread Nick Coghlan
Nick Coghlan added the comment: I think https://github.com/python/cpython/pull/4458 is ready to go now, but I expect it would benefit from a review before I merge it. If anyone has the time to take a look, it would be much appreciated :) However, I'd also like to get it

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2018-01-07 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for creating separate issues and linking them from this one - while the risk of breaking anything seems low, if we do cause a regression, multiple issues and PRs provide better traceability than one giant issue for everything. (I'm also

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2018-01-07 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2018-01-07 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset e46a8af450210ee5c7f0459ad6beddbc626ae60f by Nick Coghlan (Nathaniel J. Smith) in branch 'master': bpo-30579: Allow TracebackType creation and tb_next mutation from Python (GH-4793)

[issue32507] Change Windows install to applocal UCRT

2018-01-07 Thread Paul Moore
Paul Moore added the comment: Does this mean that we'll need to update the bundled ucrt whenever there are security patches to the baseline version? Are we happy with the security implications of that? I thought one of the key advantages of using the system CRT (whether

[issue32430] Simplify Modules/Setup{,.dist,.local}

2018-01-07 Thread Julien Palard
Julien Palard added the comment: I also think PR 5062 complicate the thing I'm trying to simplify, it's the wrong direction. I also don't understand why having a single versioned `Setup` file is not enough, can someone give a clear explanation on this point?

[issue32503] Avoid creating small frames in pickle protocol 4

2018-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think the overall gain is meaningful. I'd rather not add too many special cases in the framing code. -- ___ Python tracker

[issue32509] doctest syntax ambiguity between continuation line and ellipsis

2018-01-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Tim Peters said: > Right, "..." immediately after a ">>>" line is taken to indicate a code > continuation line, and there's no way to stop that short of rewriting the > parser. I haven't gone through the source in detail, but it