[issue27671] FAQ: len() is still function for good reason.

2018-07-30 Thread miss-islington
miss-islington added the comment: New changeset dc9039da239ee572eaaf56e4a026be1fc4d74e24 by Miss Islington (bot) in branch '2.7': bpo-27671: Update FAQ about why len is function (GH-8432) https://github.com/python/cpython/commit/dc9039da239ee572eaaf56e4a026be1fc4d74e24 --

[issue27671] FAQ: len() is still function for good reason.

2018-07-30 Thread miss-islington
miss-islington added the comment: New changeset 0b376eb0d63e0c51ed55c620b40edae6ded4ea48 by Miss Islington (bot) in branch '3.6': bpo-27671: Update FAQ about why len is function (GH-8432) https://github.com/python/cpython/commit/0b376eb0d63e0c51ed55c620b40edae6ded4ea48 --

[issue27671] FAQ: len() is still function for good reason.

2018-07-30 Thread miss-islington
miss-islington added the comment: New changeset a621f406402e05febb302cf31962e9d2d747d8f6 by Miss Islington (bot) in branch '3.7': bpo-27671: Update FAQ about why len is function (GH-8432) https://github.com/python/cpython/commit/a621f406402e05febb302cf31962e9d2d747d8f6 -- nosy:

[issue27671] FAQ: len() is still function for good reason.

2018-07-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +8087 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-30 Thread Martin Panter
Martin Panter added the comment: I think your URLs are valid by RFC 3986. "When authority is not present" refers to URLs without the double-slash prefix, like the "urn:example:animal:ferret:nose". The RFC treats empty authority and no authority as different cases. If authority is present,

[issue27671] FAQ: len() is still function for good reason.

2018-07-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +8086 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27671] FAQ: len() is still function for good reason.

2018-07-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +8085 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27671] FAQ: len() is still function for good reason.

2018-07-30 Thread INADA Naoki
INADA Naoki added the comment: New changeset c48e26dcadbff8620bb5881d3bd148fc8894d0ef by INADA Naoki in branch 'master': bpo-27671: Update FAQ about why len is function (GH-8432) https://github.com/python/cpython/commit/c48e26dcadbff8620bb5881d3bd148fc8894d0ef --

[issue34280] METH_NOARGS: no longer require that second arg is NULL

2018-07-30 Thread Stefan Behnel
Stefan Behnel added the comment: Agree with Raymond. If the goal is to pass something else, then functions that want to make use of that "something else" have to be modified anyway, in which case also changing the call type wouldn't hurt (assuming the new value still fits into the flag

[issue16965] 2to3 should rewrite execfile() to open in 'rb' mode

2018-07-30 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7.0 on 10.13.6: Vertical cursor sticks at both ends. Sticking at the top also is Tal's observation 1 above. I also verified dead zone under slider and always down with 2-finger swipe, and that this is not normal Mac behavior. --

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: After more experiments on Windows, the 'stuck' window -- active, no cursor, only copy works -- is a read-only window. I looked at other windows. Modal Edit > Find (Command F) Edit > Replace (Command R) When closed, neither window is activated. This seems

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #34281 as a duplicate of this. Eric Martin said "After entering a line number, clicking OK brings to the foreground and makes active the first hidden window (in the simplest case where we have just one window for a .py file and the Shell window,

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-30 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for all the extra info. A couple more comments: 1. I came across this issue when diagnosing the following pip issue ("pip install git+file://" not working for Windows UNC paths): https://github.com/pypa/pip/issues/3783 2. URLs of the form

[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable objects

2018-07-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue31506. -- nosy: +ncoghlan, serhiy.storchaka ___ Python tracker ___ ___

[issue34207] test_cmd_line test_utf8_mode test_warnings fail in all FreeBSD 3.x (3.8) buildbots

2018-07-30 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: +koobs title: test_cmd_line test_utf8_mode test_warnings fail in AMD64 FreeBSD CURRENT buildbots -> test_cmd_line test_utf8_mode test_warnings fail in all FreeBSD 3.x (3.8) buildbots ___ Python tracker

[issue34286] lib2to3 tests fail on the 3.7 branch (used to work with 3.7.0)

2018-07-30 Thread Matthias Klose
New submission from Matthias Klose : running the lib2to3 tests from an installed location, I see the following failures on the 3.7 branch: == FAIL: test (lib2to3.tests.test_fixers.Test_reload)

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 64 bit 3.7.0, I verified multiple problems. Calltips do not display either automatically or manually with ^B or menu selection. I closed #34281 in favor of #34120 and will report there and on #34047. --

[issue34277] EmailPolicy not followed

2018-07-30 Thread Bryce Drennan
Bryce Drennan added the comment: As far as I can tell in my manual tests with gmail, extra whitespace is fine. The addition of `=?utf-8?q?` is what trips both gmail and the python dkim library up. I agree that the paths you propose are viable. For now my email projects will be pinned to

[issue34281] IDLE: closing "Go to Line" on OS X 3.7 activates wrong window

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: After doing some experiments, I decided that this is the same issue with a different window. -- dependencies: -Problems with tkinter and tk8.6 on MacOS resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE: Freeze

[issue34277] EmailPolicy not followed

2018-07-30 Thread R. David Murray
R. David Murray added the comment: Well, it can't fold them and have them fit in the 78 character limit without adding whitespace that isn't in the original headers (unless there's a more subtle bug :) The email package has the possibility of having special behavior based on the name of

[issue34277] EmailPolicy not followed

2018-07-30 Thread Bryce Drennan
Bryce Drennan added the comment: That makes sense. Apologies for my misreading. Thanks for taking time to explain that. I think there is still something strange here since it's unnecessarily using encoded words when it could just "fold" without them. My tests with gmail show that it

[issue34277] EmailPolicy not followed

2018-07-30 Thread R. David Murray
R. David Murray added the comment: You are indeed misunderstanding. The docs say: If False, follow RFC 5322, supporting non-ASCII characters in headers by encoding them as “encoded words”. If True, follow RFC 6532 and use utf-8 encoding for headers. Messages formatted in this way may be

[issue34280] METH_NOARGS: no longer require that second arg is NULL

2018-07-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM it would be better to keep METH_NOARGS as-is and if you need another argument, then use a different calling pattern. The METH_NOARGS flag is very old and widely adopted -- it is unknowable how changing the assumptions will affect deployed code.

[issue34282] Enum._convert shadows members named _convert

2018-07-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable objects

2018-07-30 Thread ppperry
ppperry added the comment: Thus, I think the bug is that "type(sys.flags).__new__" is an alias for "tuple.__new__" and is not in the code for __new__ calls that your PR touches. -- ___ Python tracker

[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable objects

2018-07-30 Thread ppperry
ppperry added the comment: The error I'm expecting here is "cannot create sys.flags objects". Anything else violates the fact that type(*args) is sugar for: result = type.__new__(type, *args) if isinstance(result, type): result.__init__(*args) ("type" in the above snippet is a variable

[issue34284] Nonsensical exception message when calling `__new__` on some sys objects

2018-07-30 Thread Vadim Pushtaev
Vadim Pushtaev added the comment: > 1. In this case, this will produce the error "tuple.__new__(sys.flags) is not > safe". But I didn't call "tuple.__new__", I called sys.flags.__new__, and > type(X).__new__(type(X)) should always be safe Should it? There is no sys.flags.__new__,

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Re-reading, I notice this from Tal: "With Python 3.6.5 on OSX, I'm seeing all of the issues ...". 3.6.5 was released 2018 March 28, *before* we revised editor scrolling in May. What tk version? Was the new 8.6 compile even available for that? --

[issue34285] regrtest: in case of test failure, add "always look on the bright side of life"

2018-07-30 Thread STINNER Victor
New submission from STINNER Victor : Debugging tests failures can be depressing, especially when working on race conditions of Python buildbots. I propose to add an easter egg in regrtest for that: in case of test of failure, write "Tests failed but... always look on the bring side of life".

[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable object

2018-07-30 Thread ppperry
ppperry added the comment: Same thing happens for other objects, like `type(sys._getframe(0)).__new__(type(sys._getframe_))`, and presumably any object that one cannot instantiate by calling -- title: Nonsensical exception message when calling `__new__` on some sys objects ->

[issue34284] Nonsensical exception message when calling `__new__` on some sys objects

2018-07-30 Thread ppperry
ppperry added the comment: Your PR is not an improvement: 1. In this case, this will produce the error "tuple.__new__(sys.flags) is not safe". But I didn't call "tuple.__new__", I called sys.flags.__new__, and type(X).__new__(type(X)) should always be safe 2. The change in error message for

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. This is evidence for my suspicion that this results from a problem with the new tkinter/tcl/tk8.6 delivered with 3.7. See #34275. PS: when replying by email, please delete the quote, which is redundant with the post on the web page. --

[issue34281] IDLE: closing "Go to Line" on OS X 3.7 activates wrong window

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect that this results from a problem with the new tkinter/tcl/tk8.6 delivered with 3.7. See #34275. -- dependencies: +Problems with tkinter and tk8.6 on MacOS title: "Go to Line" broken on OS X -> IDLE: closing "Go to Line" on OS X 3.7

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Two more pieces of evidence that there is a problem with tkinter/tk8.6 on Mac. On #34120, Vlad T. confirmed the misbehavior on 3.5 compiled for 8.6. #34281 reports another problem with an editor subwindow on 3.7 Mac. There are now 4 issues about some IDLE

[issue34284] Nonsensical exception message when calling `__new__` on some sys objects

2018-07-30 Thread Vadim Pushtaev
Change by Vadim Pushtaev : -- keywords: +patch pull_requests: +8083 stage: -> patch review ___ Python tracker ___ ___

[issue34284] Nonsensical exception message when calling `__new__` on some sys objects

2018-07-30 Thread Vadim Pushtaev
Vadim Pushtaev added the comment: Here is what I learned: 1) Nothing is wrong with that "tuple.__new__(sys.flags) is not safe" part. `__new__` is deleted from `type(sys.flags)`, so parent's `__new__` is called. `tuple` is indeed a base class for `type(sys.flags)`. 2) Another part where we

[issue34284] Nonsensical exception message when calling `__new__` on some sys objects

2018-07-30 Thread Vadim Pushtaev
Vadim Pushtaev added the comment: I'm trying to do something about this. Let me know if you have some ideas. -- nosy: +Vadim Pushtaev ___ Python tracker ___

[issue33833] ProactorEventLoop raises AssertionError

2018-07-30 Thread STINNER Victor
STINNER Victor added the comment: Why not fixing Python 3.6? It is not affected? -- ___ Python tracker ___ ___ Python-bugs-list

[issue34277] EmailPolicy not followed

2018-07-30 Thread Bryce Drennan
Bryce Drennan added the comment: Yes, utf8 is set to false. Despite that, the dkim-signature header, which contains no unicode characters, is getting filled with ?utf-8?q? values. My reading of the documentation of the utf8 flag is that headers should not be encoded like this if its set to

[issue34277] EmailPolicy not followed

2018-07-30 Thread R. David Murray
R. David Murray added the comment: I don't see you asserting utf8=True in your example, so I don't see what it has to do with the utf8 flag, since that is False by default. Maybe you are running up against the default value of refold_header, which is 'long'? --

[issue34258] Python shell keeps restarting

2018-07-30 Thread Aleksa Bulatovic
Aleksa Bulatovic added the comment: Thanks Terry J. ReedyTerry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33833] ProactorEventLoop raises AssertionError

2018-07-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34283] [Windows] Python 2 mishandles console code page after setlocale

2018-07-30 Thread Steve Dower
Change by Steve Dower : -- nosy: -steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34283] [Windows] Python 2 mishandles console code page after setlocale

2018-07-30 Thread Steve Dower
Steve Dower added the comment: I have no intention of changing how encodings work in 2.7. Use codecs.open if you want to specify text IO encoding. Someone else may be willing to look at it. -- ___ Python tracker

[issue34284] Nonsensical exception message when calling `__new__` on some sys objects

2018-07-30 Thread ppperry
New submission from ppperry : > type(sys.flags).__new__(type(sys.flags)) Traceback (most recent call last): File "", line 1, in type(sys.flags).__new__(type(sys.flags)) TypeError: tuple.__new__(sys.flags) is not safe, use sys.flags.__new__() Ignoring the confusion caused by both the

[issue33833] ProactorEventLoop raises AssertionError

2018-07-30 Thread miss-islington
miss-islington added the comment: New changeset d5c75be55504fae1ff510eed66cddbd27bfbdbe2 by Miss Islington (bot) in branch '3.7': bpo-33833: Fix ProactorSocketTransport AssertionError (GH-7893) https://github.com/python/cpython/commit/d5c75be55504fae1ff510eed66cddbd27bfbdbe2 --

[issue24809] Add getprotobynumber to socket module

2018-07-30 Thread Brian Haley
Brian Haley added the comment: Any chance this will get accepted? I actually have a use case in Openstack where we might get a protocol number and want to save the name along with it. Right now we're looking at using libc getprotoent() directly which isn't that pretty. Thanks!

[issue33833] ProactorEventLoop raises AssertionError

2018-07-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +8082 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33833] ProactorEventLoop raises AssertionError

2018-07-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9045199c5aaeac9b52537581be127d999b5944ee by Andrew Svetlov (twisteroid ambassador) in branch 'master': bpo-33833: Fix ProactorSocketTransport AssertionError (#7893)

[issue16965] 2to3 should rewrite execfile() to open in 'rb' mode

2018-07-30 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue16965] 2to3 should rewrite execfile() to open in 'rb' mode

2018-07-30 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +8081 stage: -> patch review ___ Python tracker ___ ___

[issue34279] RFC: issue a warning in regrtest when no test have been executed?

2018-07-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do we need to output OK and SUCCESS many times? I would prefer shorter and totally different from the normal output in case of no tests ran. -- ___ Python tracker

[issue34283] [Windows] Python 2 mishandles console code page after setlocale

2018-07-30 Thread Segev Finer
Change by Segev Finer : -- title: Python 2 mishandles console code page after setlocale -> [Windows] Python 2 mishandles console code page after setlocale ___ Python tracker

[issue34283] Python 2 mishandles console code page after setlocale

2018-07-30 Thread Segev Finer
New submission from Segev Finer : Found by trying to use pip: https://github.com/pypa/pip/issues/5665. This is likely affected by the console code page. Python version: 2.7.15 64 bit OS: Windows 10.0.17134.165 x64 The console locale is set to cp872. The console font is consolas. Apparently,

[issue34282] Enum._convert shadows members named _convert

2018-07-30 Thread orlnub123
New submission from orlnub123 : If an enum has a member named _convert it gets shadowed by the _convert method as shown below. >>> import enum >>> >>> class Test(enum.Enum): ... _convert = enum.auto() ... >>> Test._convert > I've came up with a couple of solutions: 1. Add _convert to

[issue34272] Reorganize C API tests

2018-07-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 8567 moves argument parsing tests from test_capi to test_getargs2. It also makes tests defined in _testcapi more discoverable. Now you can run "./python -m test -v -m test_buildvalue_N test_capi". -- ___

[issue34282] Enum._convert shadows members named _convert

2018-07-30 Thread orlnub123
Change by orlnub123 : -- keywords: +patch pull_requests: +8080 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34272] Reorganize C API tests

2018-07-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8079 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34258] Python shell keeps restarting

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Again, that RESTART line is NOT an error. IDLE's prompt is not displayed until your program is completely done. It initially pauses on the second line 'check = input()', waiting for user input. Start with a one-line file: print('Hello to my game') Run

[issue34273] %f is confusingly associated with fixed point format

2018-07-30 Thread Mark Dickinson
Mark Dickinson added the comment: FTR, here "fixed point" refers to the output representation (a decimal string) rather than the input (a floating-point binary value). The output of %f gives a *fixed* number of places after the decimal point (6 by default). Contrast with %e, which gives a

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2018-07-30 Thread EV
EV added the comment: I have an issue with the assumption that if all parameters are forced to be prepended by -- instead of only one dash, that you would then convert the -- to a single dash and have issues with single-dashed strings, when all other parameters are dual-dashed. This is

[issue32084] [Security] http.server can be abused to redirect to (almost) arbitrary URL

2018-07-30 Thread Martin Panter
Martin Panter added the comment: In Issue 34276 I suggested a fix to “urlunsplit”. In this case it would send “Location: www.python.org/%2f../", with an extra pair of slashes denoting an empty host name. This should stop a browser from seeing “www.python.org” as a host name. --

[issue23505] Urlparse insufficient validation leads to open redirect

2018-07-30 Thread Martin Panter
Martin Panter added the comment: Issue 34276 was opened about a similar case for “file:” URLs. I believe both “file:” scheme and no-scheme cases are a regression and could be fixed by adding another pair of slashes (an empty “netloc” part): >>> urlparse("foo.com") # No change

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-30 Thread Martin Panter
Martin Panter added the comment: This may be a very old regression (from 2002) caused by Issue 591713 and Mercurial rev. 554f975073a0. The original check for the double slash, added in 0d6bd391acd8, “escapes” a path beginning with a double slash by prefixing it with two more slashes (empty

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I just checked back the behavior on Perl's https://github.com/libwww-perl/URI/ . It seems to handle that along with other additional cases. Maybe some of the tests can be adopted from there for better coverage too

[issue34281] "Go to Line" broken on OS X

2018-07-30 Thread Eric Martin
New submission from Eric Martin : After entering a line number, clicking OK brings to the foreground and makes active the first hidden window (in the simplest case where we have just one window for a .py file and the Shell window, the former being in the foreground, clicking OK brings the

[issue31844] HTMLParser: undocumented not implemented method

2018-07-30 Thread Sebastian Rittau
Sebastian Rittau added the comment: Good call. Maybe it's actually time to retire _markupbase and merge ParserBase into HTMLParser. -- ___ Python tracker ___

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is an issue with Python 2 too which I hope can be fixed too. The original logic in the code was committed around 16 years back : https://github.com/python/cpython/commit/bbc0568a5c7d3849a22c78d545823a4b952c0933 and tests are also around 10

[issue31658] xml.sax.parse won't accept path objects

2018-07-30 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- keywords: +patch pull_requests: +8078 stage: -> patch review ___ Python tracker ___ ___

[issue34280] METH_NOARGS: no longer require that second arg is NULL

2018-07-30 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +8077 stage: -> patch review ___ Python tracker ___ ___

[issue34280] METH_NOARGS: no longer require that second arg is NULL

2018-07-30 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : A C function with signature METH_NOARGS takes two arguments where the first is "self" and the second is guaranteed to be NULL. Given that this second argument really should never be used, I would like to drop the guarantee that the argument is NULL.

[issue33083] math.factorial accepts non-integral Decimal instances

2018-07-30 Thread Tal Einat
Tal Einat added the comment: Understood. Thanks for making the time and effort to clarify! -- ___ Python tracker ___ ___

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-30 Thread STINNER Victor
STINNER Victor added the comment: For python 3.7, i suggest to fix the bug but don't remove the note from 3.7 doc, dince 3.7.0 and older have the bug. -- ___ Python tracker

[issue34279] RFC: issue a warning in regrtest when no test have been executed?

2018-07-30 Thread STINNER Victor
New submission from STINNER Victor : Python test runner regrtest has many options to select tests: -u (resources), -m and --matchfile, -x (exclude), etc. Sometimes, I do a mistake and I run 0 test, but I still get a success. Maybe regrtest should be modified to fail with an error when no

[issue34075] asyncio: We should prohibit setting a ProcessPoolExecutor in with set_default_executor

2018-07-30 Thread STINNER Victor
STINNER Victor added the comment: Elvis Pranskevichus: well done, your first PR was already good to be merged ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34075] asyncio: We should prohibit setting a ProcessPoolExecutor in with set_default_executor

2018-07-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 22d25085db2590932b3664ca32ab82c08f2eb2db by Victor Stinner (Elvis Pranskevichus) in branch 'master': bpo-34075: Deprecate non-ThreadPoolExecutor in loop.set_default_executor() (GH-8533)

[issue16399] argparse: append action with default list adds to list instead of overriding

2018-07-30 Thread Evgeny
Evgeny added the comment: You don't need action='append'. For desired behavior you can pass action='store' with nargs='*'. I think it's a simplest workaround. -- nosy: +gun146 ___ Python tracker

[issue33083] math.factorial accepts non-integral Decimal instances

2018-07-30 Thread Mark Dickinson
Mark Dickinson added the comment: So I'm against _adding_ support for Decimal and Fraction on various grounds: (1) If it's our intention to deprecate acceptance of non-integral types, then it seems odd to deliberately add a new intentional feature (acceptance of integral-valued Decimal

[issue31844] HTMLParser: undocumented not implemented method

2018-07-30 Thread Berker Peksag
Change by Berker Peksag : -- keywords: +patch pull_requests: +8076 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue31844] HTMLParser: undocumented not implemented method

2018-07-30 Thread Berker Peksag
Berker Peksag added the comment: HTMLParser.error() method was deprecated in Python 3.4 (https://github.com/python/cpython/commit/88ebfb129b59dc8a2b855fc93fcf32457128d64d#diff-1a7486df8279dbac7f20abd487947845R157) and removed in Python 3.5

[issue34258] Python shell keeps restarting

2018-07-30 Thread Aleksa Bulatovic
Aleksa Bulatovic added the comment: Well the error looks like this = RESTART: F:\Python Shell Learning\Games\How smart are you Test.py = i think it's normal but it won't show '>>> '.I will see what i can do,but thanks for some help. --

[issue33204] IDLE: remove \b from colorizer string prefix

2018-07-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33204] IDLE: remove \b from colorizer string prefix

2018-07-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list

[issue34278] Documentation: os.waitid and os.WNOHANG

2018-07-30 Thread crzbear
New submission from crzbear : os.waitid states that None is returned if WNOHANG was specified and no children are in a waitable state os.WNOHANG states that the return value in this case would be (0, 0) Python 3.6.5 returns None, so the latter probably needs to be changed --

[issue33204] IDLE: remove \b from colorizer string prefix

2018-07-30 Thread Tal Einat
Tal Einat added the comment: Should this be closed as resolved? -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list

[issue27163] IDLE entry for What's New in Python 3.6

2018-07-30 Thread Tal Einat
Change by Tal Einat : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue33083] math.factorial accepts non-integral Decimal instances

2018-07-30 Thread Tal Einat
Tal Einat added the comment: >> accepting non-integral floats but not non-integral Decimals and Fractions. > I don't think anyone is proposing to accept non-integral floats. non-integral > floats are _already_ rejected with a ValueError. Did you mean "integral" > instead of "non-integral"?

[issue33083] math.factorial accepts non-integral Decimal instances

2018-07-30 Thread Mark Dickinson
Mark Dickinson added the comment: > accepting non-integral floats but not non-integral Decimals and Fractions. I don't think anyone is proposing to accept non-integral floats. non-integral floats are _already_ rejected with a ValueError. Did you mean "integral" instead of "non-integral"?

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +8075 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34272] Reorganize C API tests

2018-07-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not all C API tests are related to specific type or module. What about moving just test_capi.py, test_getargs2.py and test_structmembers.py? -- ___ Python tracker

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-07-30 Thread miss-islington
miss-islington added the comment: New changeset 6c89a9a4c7d1804e16038f9ee3a0b2efaa4bdee6 by Miss Islington (bot) in branch '3.7': bpo-34217: Use lowercase header for Windows (GH-8453) https://github.com/python/cpython/commit/6c89a9a4c7d1804e16038f9ee3a0b2efaa4bdee6 -- nosy:

[issue1467929] %-formatting and dicts

2018-07-30 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-07-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +8074 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: