[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

Re: python package management confusion

2019-01-18 Thread dieter
dcs3spp via Python-list writes: > On Friday, 18 January 2019 07:39:00 UTC, dieter wrote: > ... > My situation is similar to the following > > Assume the following two privately developed projects that I have written, > each with their own setup.py: > 1. parent exists in folder

[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')

Re: the python name

2019-01-18 Thread Gregory Ewing
DL Neil wrote: (not that New Zealanders need to know much about snakes!) Probably recommended when we visit Australia, though. Also we seem to have imported some of their spiders in recent years, so it's only a matter of time before their snakes follow. I wonder if we could get Australia to

[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:

Re: sampling from frequency distribution / histogram without replacement

2019-01-18 Thread duncan smith
On 14/01/2019 20:11, duncan smith wrote: > Hello, > Just checking to see if anyone has attacked this problem before > for cases where the population size is unfeasibly large. i.e. The number > of categories is manageable, but the sum of the frequencies, N, > precludes simple solutions such

[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

Re: TKinter Newbie question

2019-01-18 Thread TUA
Thanks for your fresh pair of eyes! -- https://mail.python.org/mailman/listinfo/python-list

Python Packages Survey

2019-01-18 Thread Cameron Davidson-Pilon
Hello! I invite you to participate in the Python Packages Survey - it takes less than a minute to complete, and will help open source developers understand their users' better. Thanks for participating! https://python-packages-survey.com/ -- Cameron Davidson-Pilon Data Origami

Re: Pythonic Y2K

2019-01-18 Thread Rich Shepard
On Fri, 18 Jan 2019, Gene Heskett wrote: I had one client, a hedge fund, that I fixed literally 1000's of Y2K issues for. When Y2K came and there were no problems, the owner said to me "You made such a big deal about the Y2K thing, and nothing happened." -- I would quite cheerfully have

[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' >>>

Re: Pythonic Y2K

2019-01-18 Thread Gene Heskett
On Friday 18 January 2019 16:55:28 Avi Gross wrote: > Larry, > > I keep hearing similar things about the Flu Vaccine. It only works 40% > of the time or whatever. But most of the people that get the flu get a > different strain they were not vaccinated against! > > There are hundreds of strains

[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

Re: Pythonic Y2K

2019-01-18 Thread Larry Martell
On Fri, Jan 18, 2019 at 4:56 PM Avi Gross wrote: > > Larry, > > I keep hearing similar things about the Flu Vaccine. It only works 40% of > the time or whatever. But most of the people that get the flu get a > different strain they were not vaccinated against! That seems like a complete

[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

RE: Pythonic Y2K

2019-01-18 Thread Avi Gross
Larry, I keep hearing similar things about the Flu Vaccine. It only works 40% of the time or whatever. But most of the people that get the flu get a different strain they were not vaccinated against! There are hundreds of strains out there and by protecting the herd against just a few, others

[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:

RE: Pythonic Y2K

2019-01-18 Thread Avi Gross
Michael, I certainly agree with you on most of what you said. My internal humor makes me see patterns that are not at all applicable. Such as the common "2" in python 2.X and Y2K which influence my choice of phrases. And, perhaps even more oddly, I see Y and K in both Y2K and the slightly odd

[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

Re: Pythonic Y2K

2019-01-18 Thread mm0fmf
On 17/01/2019 02:34, Avi Gross wrote: but all it took was to set the clock forward on a test system and look for anomalies. You're new to programming or you're not very old and certainly haven't run much pre-Y2k software. ;-) Issues that needed solving: 2 digits only for the date use

[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

Re: Pythonic Y2K

2019-01-18 Thread Grant Edwards
On 2019-01-18, Dennis Lee Bieber wrote: > Hey... I'm still waiting for a novelization of the TRS-DOS date "bug". > TRS-DOS directory structure only allocated 3-bits for the year. Three bits for the year? they didn't expect those computers to last long, eh? [My current Thinkpad is over

[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.

  1   2   >