[issue35762] subprocess.Popen with universal_newlines and nonblocking streams fails with "can't concat NoneType to bytes"

2019-01-18 Thread Martin Panter
Martin Panter added the comment: Yes, universal newlines mode uses the TextIOWrapper class to read the pipe, which isn’t really designed for non-blocking mode. This is the same problem described by Izbyshev at . Raising TypeError isn’t ideal. IMO

[issue13322] buffered read() and write() does not raise BlockingIOError

2019-01-18 Thread Martin Panter
Martin Panter added the comment: Issue 35762 was opened specifically about Izbyshev’s case: TextIOWrapper behaviour with a non-blocking file. Calling “os.fdopen” with mode='r' (text mode) returns a TextIOWrapper object. -- ___ Python tracker

[issue35748] urlparse library detecting wrong hostname leads to open redirect vulnerability

2019-01-18 Thread Martin Panter
Martin Panter added the comment: The “urllib.parse” module generally follows RFC 3986, which does not allow a literal backslash in the “userinfo” part: userinfo = *( unreserved / pct-encoded / sub-delims / ":" ) unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" pct-encoded = "%" HEXDIG

[issue35739] Enable verbose of tests during PGO build on amd64 platforms

2019-01-18 Thread Jorge Ramos
Jorge Ramos added the comment: Mmm, I don't find that option documented in the readme of the MSI folder nor in the help for buildrelease.bat (and also is not intuitive, what does IIRC stand for?), nevertheless: It should be no problem if this PR doesn't pass but it should help newcomers

[issue18140] urlparse, urlsplit confused when password includes fragment (#), query (?)

2019-01-18 Thread Martin Panter
Martin Panter added the comment: Today I read RFC 3986, and I think the URLs in the bug reports are valid, and are already parsed correctly. The path is allowed to have a literal “at” symbol: path-abempty = *( "/" segment ) segment = *pchar pchar = unreserved / pct-encoded / sub-delims / ":"

[issue35299] LGHT0091: Duplicate symbol 'File:include_pyconfig.h' found

2019-01-18 Thread Jorge Ramos
Jorge Ramos added the comment: I want to document a workaround if anyone benefits from it, this would be step 7: 7) This error goes away if you remove the pyconfig.h from the include directory before the tests end (and of course, after the test distutils). This is only a workaround and

[issue20479] Efficiently support weight/frequency mappings in the statistics module

2019-01-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Is this proposal still relevant? Yes. As Raymond says, deciding on a good API is the hard part. Its relatively simple to change a poor implementation for a better one, but backwards compatibility means that changing the API is very difficult. I would

[issue35782] Missing whitespace after comma in randrange raise error

2019-01-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- stage: resolved -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35737] crypt AuthenticationError introduced with new Linux kernel

2019-01-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. I couldn't find any CPython related stack trace in the traceback and this looks like a custom validation error raised by salt. Can you please add a simple reproducer without any external dependencies to reproduce this

[issue20479] Efficiently support weight/frequency mappings in the statistics module

2019-01-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Is this proposal still relevant? If so, I would > like to work on its implementation. The first question is the important one. Writing implementations is usually the easy part. Deciding on whether there is a real need and creating a usable,

[issue35775] Add a general selection function to statistics

2019-01-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I'm very interested in adding quartiles and > general quantiles/fractiles, but I'm not > so sure that this select(data, index) function would be useful. I concur with Steven. -- ___ Python tracker

[issue35782] Missing whitespace after comma in randrange raise error

2019-01-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Cheryl, do you want to neaten-up this error message? It is triggered by randrange(3, 3). -- assignee: -> cheryl.sabella nosy: +cheryl.sabella, rhettinger status: closed -> open ___ Python tracker

[issue35782] Missing whitespace after comma in randrange raise error

2019-01-18 Thread Louie Lu
Change by Louie Lu : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35756] Using `return value` in a generator function skips the returned value on for-loop iteration

2019-01-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Fri, Jan 18, 2019 at 12:31:51AM +, bryan.koch wrote: > Thank you both for the clarifications. I agree these's no bug in > `yield from` however is there a way to reference the return value when > a generator with a return is invoked using `for val

[issue35782] Missing whitespace after comma in randrange raise error

2019-01-18 Thread Louie Lu
New submission from Louie Lu : In random.py:randrange File "/usr/lib/python3.7/random.py", line 200, in randrange raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width)) ValueError: empty range for randrange() (3,3, 0) should be "empty range for

[issue35748] urlparse library detecting wrong hostname leads to open redirect vulnerability

2019-01-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: I believe that Python's behaviour here is correct. You are supplying a netloc which includes a username "www.google.com\" with no password. That might be what you intend to do, or it might be malicious data. That depends on context, and the urlparse module

[issue35781] `logger.warn` method is used in "Logging HOWTO" documentation though `logger.warn` method is deprecated in Python 3.7

2019-01-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Would you like to propose a PR for this? Cases of using warn method in documentation examples : * https://github.com/python/cpython/blob/master/Doc/howto/logging.rst *

[issue35781] `logger.warn` method is used in "Logging HOWTO" documentation though `logger.warn` method is deprecated in Python 3.7

2019-01-18 Thread yuji38kwmt
New submission from yuji38kwmt : ### Target Documentation https://docs.python.org/3/howto/logging.html#configuring-logging ### Actual Sample Code ``` # 'application' code logger.debug('debug message') logger.info('info message') logger.warn('warn message') logger.error('error message')

[issue35780] Recheck logic in the C version of the lru_cache()

2019-01-18 Thread Raymond Hettinger
New submission from Raymond Hettinger : After the check for popresult==Py_None, there is the comment that was mostly copied from the Python version but doesn't match the actual code: /* Getting here means that this same key was added to the cache while the lock was released. Since the

[issue35779] Print friendly version message in REPL

2019-01-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: The version message doesn't look "too complicated" to me. It looks no more complicated as that which Python has always displayed, going back to Python 1.5 (the oldest version I still have access to). Python 1.5.2 (#1, Aug 27 2012, 09:09:18) [GCC 4.1.2

[issue35775] Add a general selection function to statistics

2019-01-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Fri, Jan 18, 2019 at 11:13:41PM +, Rémi Lapeyre wrote: > Wouldn't be the 5-th percentile be select(data, round(len(data)/20)? Oh if only it were that simple! Using the method you suggest, the 50th percentile is not the same as the median unless the

[issue35779] Print friendly version message in REPL

2019-01-18 Thread Ma Lin
New submission from Ma Lin : The current version message in REPL is too complicate for official release. Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> tags/v3.7.2

[issue35778] RF: ``pathlib.Path.checksum()`` member

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

[issue35711] Print information about an unexpectedly pending error before crashing

2019-01-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm re-opening this. The original intent of the PR was missed even though the change in the PR as is was not how we want to do this in the CPython VM. Background: We build our default non-production test interpreter in `#undef NDEBUG` mode at Google

[issue15613] argparse ArgumentDefaultsHelpFormatter interacts badly with --arg and nargs=+

2019-01-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: Closing per paul.j3's last comment which also is mentioned in the documentation (https://docs.python.org/3.8/library/argparse.html#default ): > For positional arguments with nargs equal to ? or *, the default value is > used when no command-line argument

[issue15613] argparse ArgumentDefaultsHelpFormatter interacts badly with --arg and nargs=+

2019-01-18 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35778] RF: ``pathlib.Path.checksum()`` member

2019-01-18 Thread Oscar Esteban
New submission from Oscar Esteban : Gauging the interest in a checksum calculation function built-in Path objects: ``` >>> Path('somefile.img').checksum() '4976c36bacf922cbc5c811c9c288e61d' >>> Path('somefile.img').checksum(hash='md5') '4976c36bacf922cbc5c811c9c288e61d' >>>

[issue35775] Add a general selection function to statistics

2019-01-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Wouldn't be the 5-th percentile be select(data, round(len(data)/20)? -- ___ Python tracker ___ ___

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-18 Thread Michael Felt
Michael Felt added the comment: I’ll make a new PR and delete the news entry. Sent from my iPhone > On 15 Jan 2019, at 11:23, STINNER Victor wrote: > > > STINNER Victor added the comment: > >> On AIX the test for flock() passes, but the test for lockf() fails: (...) > > I would prefer

[issue35756] Using `return value` in a generator function skips the returned value on for-loop iteration

2019-01-18 Thread Greg Ewing
Greg Ewing added the comment: bryan.koch wrote: > It would be awesome if invoking a generator above would throw a > SyntaxError iff it contained a return and it wasn't invoked through `yield > from`. Why do you care about that so much? There's nothing to stop you from ignoring the return

[issue35775] Add a general selection function to statistics

2019-01-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm very interested in adding quartiles and general quantiles/fractiles, but I'm not so sure that this select(data, index) function would be useful. Can you explain how you would use this? -- ___ Python tracker

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11367 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11368 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread miss-islington
miss-islington added the comment: New changeset 47290e7642dd41d94437dd0e2c0f6bfceb0281b5 by Miss Islington (bot) in branch '3.7': bpo-35770: Fix off-by-1 error. (GH-11618) https://github.com/python/cpython/commit/47290e7642dd41d94437dd0e2c0f6bfceb0281b5 --

[issue35756] Using `return value` in a generator function skips the returned value on for-loop iteration

2019-01-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: No bug here. You can discuss possible change on python-ideas, but I strongly suggest that you write your next wrapper and move on. -- nosy: +terry.reedy resolution: -> not a bug stage: -> resolved status: open -> closed versions: +Python 3.7

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11366, 11367 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11366 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11366, 11367, 11368 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2cf1ddaff4c869780d9e796b21ef3e506f8ad321 by Terry Jan Reedy in branch 'master': bpo-35770: Fix off-by-1 error. (#11618) https://github.com/python/cpython/commit/2cf1ddaff4c869780d9e796b21ef3e506f8ad321 --

[issue35777] mismatched eval() and ast.literal_eval() behavior with unicode_literals

2019-01-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: Python 2.7 has long passed feature freeze, and this would be new behaviour appearing in a bug-fix release, which we don't normally do. I'm going to close this as Rejected, but if you think you can make a good case for why this enhancement is sufficiently

[issue17005] Add a topological sort algorithm

2019-01-18 Thread Eric V. Smith
Eric V. Smith added the comment: This is why I prefer the API exposed by https://pypi.org/project/toposort/ list(toposort({2: {11}, 9: {11, 8, 10}, 10: {11, 3}, 11: {7, 5}, 8: {7, 3}, })) returns [{3, 5, 7}, {8, 11},

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11364 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11365 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +11363, 11364, 11365 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +11363, 11364 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +11363 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20399] Comparison of memoryview

2019-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: If not wanting to support the whole gamut of PEP 3118 types, one could start by only providing ordered comparisons when format == 'B'. -- stage: -> needs patch versions: +Python 3.8 -Python 3.5 ___ Python tracker

[issue17005] Add a topological sort algorithm

2019-01-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think 'toposort' is a good name for a function that implements 'topological sorting'. https://en.wikipedia.org/wiki/Topological_sorting -- versions: +Python 3.8 -Python 3.4 ___ Python tracker

[issue35777] mismatched eval() and ast.literal_eval() behavior with unicode_literals

2019-01-18 Thread Jez Hill
New submission from Jez Hill : Following `from __future__ import unicode_literals` the expression `eval(" 'foo' ")` will return a `unicode` instance. However, using the same input, `ast.literal_eval(" 'foo' ")` will return a `str` instance. The caller's preference, that those plain

[issue17005] Add a topological sort algorithm

2019-01-18 Thread Gareth Rees
Gareth Rees added the comment: Just to elaborate on what I mean by "bug magnet". (I'm sure Pablo understands this, but there may be other readers who would like to see it spelled out.) Suppose that you have a directed graph represented as a mapping from a vertex to an iterable of its

[issue20399] Comparison of memoryview

2019-01-18 Thread Josh Rosenberg
Josh Rosenberg added the comment: Not my use case specifically, but my link in the last post (repeated below) was to a StackOverflow answer to a problem where using buffer was simple and fast, but memoryview required annoying workarounds. Admittedly, in most cases it's people wanting to do

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-18 Thread Stefan Krah
Change by Stefan Krah : -- assignee: -> skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-01-18 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +11360, 11361 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-01-18 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +11360, 11361, 11362 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-01-18 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +11360 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11358 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11359 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11356 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11355 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11353 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11352 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35733] isinstance(ast.Constant(value=True), ast.Num) should be False

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

[issue35733] isinstance(ast.Constant(value=True), ast.Num) should be False

2019-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 74176226179ed56ad1c910bec5c4100e72ab4e84 by Serhiy Storchaka (Anthony Sottile) in branch 'master': bpo-35733: Make isinstance(ast.Constant(boolean), ast.Num) be false. (GH-11547)

[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-01-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I am mentoring Nina so I'll review this. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-01-18 Thread Nina Zakharenko
Nina Zakharenko added the comment: I'll be happy to take a look at this. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-01-18 Thread Nina Zakharenko
Change by Nina Zakharenko : -- assignee: -> nnja nosy: +nnja ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-01-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Frozen module's origin isn't really documented AFAICT. Here's the link to the library reference: https://docs.python.org/3/library/importlib.html?highlight=origin#importlib.machinery.ModuleSpec.origin The language reference doesn't really have anything to

[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-01-18 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread miss-islington
miss-islington added the comment: New changeset a01e23559fd77083a2c6c59692b70d7896e5f59a by Miss Islington (bot) in branch '3.7': bpo-35770: IDLE macosx deletes Options => Configure IDLE. (GH-11614) https://github.com/python/cpython/commit/a01e23559fd77083a2c6c59692b70d7896e5f59a

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11357, 11358 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11357, 11358, 11359 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11357 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 39ed289a3511d2e9bf0950a9d5dc53c8194f61b9 by Terry Jan Reedy in branch 'master': bpo-35770: IDLE macosx deletes Options => Configure IDLE. (GH-11614) https://github.com/python/cpython/commit/39ed289a3511d2e9bf0950a9d5dc53c8194f61b9 --

[issue17005] Add a topological sort algorithm

2019-01-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > 1. The name "topsort" is most naturally parsed as "top sort" which could be > misinterpreted (as a sort that puts items on top in some way). If the name > must be abbreviated then "toposort" would be better. I totally agree that `topsort` is a bad

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +11354, 11355, 11356 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +11354 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +11354, 11355 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'll submit a quick PR as a PoC. Tal emailed with additional ideas about menudefs, so I agree that another issue would probably be suitable for more discussion. I haven't looked at the extensions too closely yet, but the insert you're referring to is

[issue17005] Add a topological sort algorithm

2019-01-18 Thread Gareth Rees
Gareth Rees added the comment: I approve in general with the principle of including a topological sort algorithm in the standard library. However, I have three problems with the approach in PR 11583: 1. The name "topsort" is most naturally parsed as "top sort" which could be misinterpreted

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch, patch, patch pull_requests: +11351, 11352, 11353 stage: needs patch -> patch review ___ Python tracker ___

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch, patch pull_requests: +11351, 11352 stage: needs patch -> patch review ___ Python tracker ___

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +11351 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35713] Fatal Python error: _PySys_BeginInit: can't initialize sys module

2019-01-18 Thread Tasy
Tasy added the comment: compiling without optimizations worked. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2019-01-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +11348, 11349, 11350 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2019-01-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +11348, 11349 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2019-01-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +11348 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl, that sort of change needs an issue for discussion before going very far. I am dubious that it will work (but you can try to show otherwise). 1. overrideRootMenu does an insertion that I don't think you can do with a dict.

[issue33944] Deprecate and remove pth files

2019-01-18 Thread Vedran Čačić
Vedran Čačić added the comment: I have a directory inside my home directory, and inside it I have files with various utilities I have written over the years. So far, whenever I have installed a new version of Python, I have simply put a util.pth into site-packages. If you remove that

[issue35776] Virtualenv 16.2.0 Error Finding Pip

2019-01-18 Thread Zachary Ware
Zachary Ware added the comment: virtualenv is not part of the Python standard library; please open an issue on the virtualenv bug tracker (https://github.com/pypa/virtualenv/issues). -- nosy: +zach.ware resolution: -> third party stage: -> resolved status: open -> closed

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Since it is my fix, I will write the PR. But first, please test part 2, > changing '0' to '0:1', just to make sure it works. Just tested it and it works fine with slice. Please find the respective diff and options menu displayed as below :

[issue35537] use os.posix_spawn in subprocess

2019-01-18 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: >> * pass_fds: there is not API to mark a fd as inheritable (clear O_CLOEXEC >> flag) > POSIX has a bug for this [5]. It's marked fixed, but the current POSIX docs > doesn't reflect the changes. The idea is to make > posix_spawn_file_actions_adddup2()

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: Terry, I've started working on a PR to change menudefs to a dictionary. Since dictionaries are in guaranteed order now, it would be easier to reference the menus by their name instead of an index number. -- ___

[issue35713] Fatal Python error: _PySys_BeginInit: can't initialize sys module

2019-01-18 Thread STINNER Victor
STINNER Victor added the comment: Hum. Are you aware that PGO with GCC is broken on such old and unsupported Ubuntu version? My old note about that: "PGO is broken on Ubuntu 14.04 LTS with GCC 4.8.4-2ubuntu1~14.04: Modules/socketmodule.c:7743:1: internal compiler error: in edge_badness, at

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-18 Thread David Heiberg
David Heiberg added the comment: Agreed. I will fix the documentation and submit a PR this weekend hopefully. -- ___ Python tracker ___

[issue32947] Support OpenSSL 1.1.1

2019-01-18 Thread STINNER Victor
STINNER Victor added the comment: On Fedora 29 with OpenSSL 1.1.1 FIPS 11 Sep 2018, test_connect_cadata() of test_ssl fails randomly: --- $ ./python -m test -u all -F -m test_connect_cadata test_ssl Run tests sequentially 0:00:00 load avg: 0.43 [ 1] test_ssl test test_ssl failed --

[issue35770] IDLE: python -m idlelib fails on master on Mac OS 10.10.4

2019-01-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since it is my fix, I will write the PR. But first, please test part 2, changing '0' to '0:1', just to make sure it works. c1b added 'None,' (for separater bar) after the configdialog entry. When the configdialog entry is removed, the None should be also.

[issue32947] Support OpenSSL 1.1.1

2019-01-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11345, 11346, 11347 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32947] Support OpenSSL 1.1.1

2019-01-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11345, 11346 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32947] Support OpenSSL 1.1.1

2019-01-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11345 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >