[issue37868] `is_dataclass` returns `True` if `getattr` always succeeds.

2019-08-20 Thread miss-islington
miss-islington added the comment: New changeset 1271ee8187df31debda7c556882a51ec356ca534 by Miss Islington (bot) in branch '3.8': bpo-37868: Improve is_dataclass for instances. (GH-15325) https://github.com/python/cpython/commit/1271ee8187df31debda7c556882a51ec356ca534 -- nosy:

[issue37868] `is_dataclass` returns `True` if `getattr` always succeeds.

2019-08-20 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37887] some leak in the compiler_assert function

2019-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch hai shi. But note that assertion_error is a static variable. It is initialized only once. Your change makes it holding a borrowed reference after first call of compiler_assert(). This does not look reliable. In any case

[issue37890] Modernize several tests in test_importlib

2019-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1) __import__() can be used for purpose. I would not change this. 3) How would you distinguish the case when the module have an attribute with the value is None and when it does not have the attribute at all? This information would lost with your change.

[issue37891] Exceptions tutorial page does not mention raise from

2019-08-20 Thread Niels Albers
Change by Niels Albers : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37891] Exceptions tutorial page does not mention raise from

2019-08-20 Thread Niels Albers
New submission from Niels Albers : raise from has been in the language since python 3, yet the tutorial page teaching about exceptions does not mention it. (see https://docs.python.org/3.7/tutorial/errors.html#raising-exceptions) It would be especially helpful to language newcomers to touch

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2019-08-20 Thread Printer Setup
Printer Setup added the comment: Fix Canon Printer Offline Windows 10 issues by following simple steps. Feel free to reach techies at Canon Support to resolve Canon Printer Offline issues. For more info: https://printeroffline.co/canon-printer/ -- nosy: +Printer Setup

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2019-08-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg349997 ___ Python tracker ___ ___

[issue37868] `is_dataclass` returns `True` if `getattr` always succeeds.

2019-08-20 Thread miss-islington
miss-islington added the comment: New changeset 02c1457a036c2af3e91beb952afdb66d9c806435 by Miss Islington (bot) in branch '3.7': bpo-37868: Improve is_dataclass for instances. (GH-15325) https://github.com/python/cpython/commit/02c1457a036c2af3e91beb952afdb66d9c806435 --

[issue37884] Optimize Fraction() and statistics.mean()

2019-08-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > AFAICT, no end-user has ever requested this ever. What do you mean with "this"? (A) A public function like math.as_integer_ratio() (B) Using as_integer_ratio() in the fractions.Fraction() constructor (C) The optimization of the fractions.Fraction()

[issue37884] Optimize Fraction() and statistics.mean()

2019-08-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > our needs tend to be much different from end-users This issue is about fractions and statistics, which are closer to typical user libraries than CPython libraries. In fact, both could easily be packages on PyPI instead of part of the standard library. >

[issue37882] Code folding in IDLE

2019-08-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32793] smtplib: duplicated debug message

2019-08-20 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +15058 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15341 ___ Python tracker ___

[issue32793] smtplib: duplicated debug message

2019-08-20 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz type: -> behavior versions: +Python 3.9 -Python 3.6 ___ Python tracker ___ ___

[issue37732] Possible uninitialized variable in Objects/obmalloc.c

2019-08-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 18f8dcfa10d8a858b152d12a9ad8fa83b7e967f0 by Victor Stinner in branch 'master': bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) https://github.com/python/cpython/commit/18f8dcfa10d8a858b152d12a9ad8fa83b7e967f0 --

[issue37887] some leak in the compiler_assert function

2019-08-20 Thread hai shi
hai shi added the comment: Ok, got it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37892] IDLE Shell: isolate user code input

2019-08-20 Thread Terry J. Reedy
New submission from Terry J. Reedy : The main operational difference between the standard Python REPL and IDLE's Shell is that the latter operates with complete Python statements rather than physical lines. Shell keeps the '>>>' prompt, but with the expanded meaning of "Enter a complete

[issue7676] IDLE shell shouldn't use TABs

2019-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that using tabs for Shell indents is IDLE's current worst design wart. But I agree with KBK (#1196946) that merely replacing tabs with spaces does not really solve the problem, which is the jagged physical margin consequent on physically indenting

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-20 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 15345 to enhance regrtest timeout: more logs, more timeouts. -- ___ Python tracker ___

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Tim Peters
Tim Peters added the comment: Yup, you have a point there! :-) I guess I'm just not used to 0 being a multiplicative identity. Don't know what other systems do. Playing with Maxima, modulo 1 it seems to think 0 is the inverse of everything _except_ for 0. `inv_mod(0, 1)` returns

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-08-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm not a fan of CVE numbers in general, people have been creating too many of those. But that also means I just don't care if someone does. Having a CVE entry is not a way to claim something is important. This issue is still open and can be used to

[issue37896] test_multiprocessing_fork hangs on an IPv6-only host

2019-08-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : It winds up stuck on a leftover process: test_import (test.test_multiprocessing_fork._TestImportStar) ... ok Warning -- Dangling processes: {} Which is likely related to one of the other numerous failure ERRORs further up in the log. I'm preparing an

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Tim Peters
Tim Peters added the comment: I don't have a problem with the trivial ring - I wasn't being that high-minded ;-) I was testing a different inverse algorithm, and in the absence of errors checked that minv(a, m) * a % m == 1 for various a and m >= 0. Of course that failed using pow(a,

[issue37901] 21 tests fail when run on an IPv6-only host

2019-08-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : 21 tests failed: test_asynchat test_asyncore test_docxmlrpc test_eintr test_epoll test_ftplib test_httplib test_imaplib test_multiprocessing_forkserver test_multiprocessing_spawn test_nntplib test_os test_poplib test_robotparser

[issue37890] Modernize several tests in test_importlib

2019-08-20 Thread Kyle Stanley
Kyle Stanley added the comment: > This might be a decent way to prevent the AttributeErrors, but still allows > for differentiation of actual None values Another alternative solution might be to use hasattr() before getattr(), if it is not desirable for test_pkg_import.py to raise

[issue34690] Store startup modules as C structures for 20%+ startup speed improvement

2019-08-20 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37890] Modernize several tests in test_importlib

2019-08-20 Thread Kyle Stanley
Kyle Stanley added the comment: Ah okay, I wasn't sure what exactly would be involved with the "modernization" process, so those points were just rough ideas more than anything. I haven't started working on anything yet since I figured it'd be worthwhile to wait for approval first. > 1)

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2019-08-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +15064 pull_request: https://github.com/python/cpython/pull/15350 ___ Python tracker ___

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2019-08-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 5b95a1507e349da5adae6d2ab57deac3bdd12f15 by Benjamin Peterson (Greg Price) in branch 'master': bpo-35518: Skip test that relies on a deceased network service. (GH-15349)

[issue37902] Add scrolling for IDLE browsers

2019-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: #31461 is the index issue for class browser. Mousewheel scrolling was listed without an issue. Now there is, and this has been added as a dependency. -- ___ Python tracker

[issue31461] IDLE: Enhance module browser

2019-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: #37902 Add mousewheel scrolling. -- dependencies: +Add scrolling for IDLE browsers ___ Python tracker ___

[issue37902] Add scrolling for IDLE browsers

2019-08-20 Thread George Zhang
New submission from George Zhang : I've just started using IDLE's module/path browsers and they offer a lot! Putting aside the issue of them opening in separate windows, they have a small change that could be made to improve them. Both browsers have scrollbars, but (for me at least) I cannot

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-20 Thread Jeremy Kloth
Jeremy Kloth added the comment: Additional logging on failures is always welcome. Might I suggest that, in this case, regrtest treats this action as a hard fail so as to not got lost in the other transient failures (test_asyncio). By that I mean, either to not re-run, or to still be

[issue37902] Add scrolling for IDLE browsers

2019-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. We added mousewheel scrolling to editor just over a year ago and later added it to text views. But for the browsers, I want to factor out the common code. It is a bit tricky since the 3 major systems each send different events for the same

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2019-08-20 Thread miss-islington
miss-islington added the comment: New changeset 44f2c096804e8e3adc09400a59ef9c9ae843f339 by Miss Islington (bot) in branch '3.8': bpo-35518: Skip test that relies on a deceased network service. (GH-15349) https://github.com/python/cpython/commit/44f2c096804e8e3adc09400a59ef9c9ae843f339

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2019-08-20 Thread Greg Price
Change by Greg Price : -- keywords: +patch pull_requests: +15063 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15349 ___ Python tracker ___

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2019-08-20 Thread Greg Price
Greg Price added the comment: I ran across this test when looking at especially slow files in the test suite: it turns out that not only is this service currently down, but the snakebite.net domain still exists, and as a result the test can end up waiting 20-30s before learning that the

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2019-08-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +15065 pull_request: https://github.com/python/cpython/pull/15351 ___ Python tracker ___

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2019-08-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +15066 pull_request: https://github.com/python/cpython/pull/15352 ___ Python tracker ___

[issue29427] Option to skip padding for base64 urlsafe encoding/decoding

2019-08-20 Thread Franklin Yu
Change by Franklin Yu : -- nosy: +Franklin Yu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2019-08-20 Thread miss-islington
miss-islington added the comment: New changeset 198a0d622a696a4c234aa7866d6c15e38839cc76 by Miss Islington (bot) in branch '2.7': bpo-35518: Skip test that relies on a deceased network service. (GH-15349) https://github.com/python/cpython/commit/198a0d622a696a4c234aa7866d6c15e38839cc76

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2019-08-20 Thread miss-islington
miss-islington added the comment: New changeset b9d88e771238b5098842cad8a6ad624621f3f62e by Miss Islington (bot) in branch '3.7': bpo-35518: Skip test that relies on a deceased network service. (GH-15349) https://github.com/python/cpython/commit/b9d88e771238b5098842cad8a6ad624621f3f62e

[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-20 Thread Greg Price
Greg Price added the comment: (A bit easy to miss in the way this thread gets displayed, so to highlight in a comment: GH-15265 is up, following the 5 other patches which have now all been merged. That's the one that replaces the length-18 tuples with a dataclass.) --

[issue37901] 21 tests fail when run on an IPv6-only host

2019-08-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37898] test_httpservers hangs on an IPv6-only host

2019-08-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : test_err (test.test_httpservers.RequestHandlerLoggingTestCase) ... Exception in thread Thread-1: Traceback (most recent call last): File "/home/greg/oss/cpython/Lib/threading.py", line 938, in _bootstrap_inner self.run() File

[issue37899] test_xmlrpc hangs on an IPv6-only host

2019-08-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : test_404 (test.test_xmlrpc.SimpleServerTestCase) ... Exception in thread Thread-1: Traceback (most recent call last): File "/home/greg/oss/cpython/Lib/threading.py", line 938, in _bootstrap_inner self.run() File

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Tim Peters
Tim Peters added the comment: Mark, to save you the hassle, I'm closing this myself now. Thanks for the feedback! -- assignee: -> tim.peters resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32793] smtplib: duplicated debug message

2019-08-20 Thread Abhilash Raj
Abhilash Raj added the comment: Removing 2.7 which only accepts security patches. -- nosy: +maxking versions: -Python 2.7 ___ Python tracker ___

[issue37895] test_logging hangs on an IPv6-only host

2019-08-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : test_logging hangs when run on an IPv6-only host. (127.0.0.1 isn't even available) test_listen_config_10_ok (test.test_logging.ConfigDictTest) ... Exception in thread Thread-3: Traceback (most recent call last): File

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Mark Dickinson
Mark Dickinson added the comment: > I guess I'm just not used to 0 being a multiplicative identity. Yes, there's a whole generation of mathematicians who believe (wrongly) that "0 != 1" is one of the ring axioms. But it turns out that excluding the zero ring from the category of

[issue37897] test_asyncio hangs on an IPv6-only host

2019-08-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : test_drain_raises (test.test_asyncio.test_streams.StreamTests) ... Exception in thread Thread-20: Traceback (most recent call last): File "/home/greg/oss/cpython/Lib/threading.py", line 938, in _bootstrap_inner self.run() File

[issue37900] [urllib] proxy_bypass_registry doesn't handle invalid proxy override values

2019-08-20 Thread Kevin Wojniak
New submission from Kevin Wojniak : proxy_bypass_registry() will split the ProxyOverride registry key by semicolon. Then for each value it uses that value as a regular expression pattern with match(). However, if this value is not a valid regular expression, then match() will throw an

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +15061 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15344 ___ Python tracker

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Mark Dickinson
Mark Dickinson added the comment: > While I doubt this, he may even argue that it's working correctly already ;-) Yes, I'd argue exactly that. There's nothing ill-defined about working modulo +/-1. Z/1Z is a perfectly-well-defined ring. What's the motivation for this change? --

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Mark Dickinson
Mark Dickinson added the comment: > Z/1Z is a perfectly-well-defined ring. More to the point, it's a perfectly well-defined ring in which every element is invertible. That's why the Euler phi function has phi(1) = 1 (rather than phi(1) = 0), for example. --

[issue32793] smtplib: duplicated debug message

2019-08-20 Thread miss-islington
miss-islington added the comment: New changeset 46a7564578f208df1e0c54fc0520d3b7ca32c981 by Miss Islington (bot) (Zackery Spytz) in branch 'master': bpo-32793: Fix a duplicate debug message in smtplib (GH-15341)

[issue37890] Modernize several tests in test_importlib

2019-08-20 Thread Brett Cannon
Brett Cannon added the comment: What Serhiy said. :) There's code to be able to easily test both builtins.__import__ and importlib.__import__ in tests so that there's no drift between the two implementations. -- ___ Python tracker

[issue37891] Exceptions tutorial page does not mention raise from

2019-08-20 Thread Srinivas Nyayapati
Srinivas Nyayapati added the comment: In case Niels Albers is not interested, can I submit a PR? I noticed the linked raise reference documentation from the tutorial having details on exception chaining (https://docs.python.org/3.7/reference/simple_stmts.html#raise). Does it make sense to

[issue37891] Exceptions tutorial page does not mention raise from

2019-08-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please give Niel a chance to submit wording, even a post here on the tracker will be fine. We usually defer to the person who actually encountered the issue. If after a week or so, there is no response, you can pick this up. Try to be minimal with

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15062 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/15345 ___ Python tracker ___

[issue37884] Optimize Fraction() and statistics.mean()

2019-08-20 Thread Mark Dickinson
Mark Dickinson added the comment: > This issue if for optimization only. It does not expand the math module API. I think it does, though. The PR adds something to the math module that's tested, that needs to be maintained for other modules to work, and that's imported for use in another

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-20 Thread Jeremy Kloth
Jeremy Kloth added the comment: It seems that an issue still exists. https://buildbot.python.org/all/#/builders/130/builds/1050 has been running for nearly 9 hours at this point. I can leave it "stuck" if there is some diagnostics that would be beneficial. But I would prefer not to have

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-20 Thread Jeremy Kloth
Jeremy Kloth added the comment: > Can you check the process hierarchy? I would like to know how many worker > processes are still running under the main regrtest process. I expect to see > exactly one. I don't know how to investigate more on such issue on Windows. There are no child

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-20 Thread STINNER Victor
STINNER Victor added the comment: (I reopen the issue.) "There are no child processes of the main test process. There are 5 orphaned processes from multiprocessing. Their parent process is gone (assuming the parent_pid argument is correct)." Oh wow, that's really strange. I would expect

[issue37732] Possible uninitialized variable in Objects/obmalloc.c

2019-08-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15060 pull_request: https://github.com/python/cpython/pull/15343 ___ Python tracker ___

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Tim Peters
New submission from Tim Peters : For example, these should all raise ValueError instead: >>> pow(2, -1, 1) 0 >>> pow(1, -1, 1) 0 >>> pow(0, -1, 1) 0 >>> pow(2, -1, -1) 0 >>> pow(1, -1, -1) 0 >>> pow(0, -1, -1) 0 -- components: Library (Lib) messages: 350015 nosy: mark.dickinson,

[issue15913] Add PyBuffer_SizeFromFormat() C helper for struct.calcsize()

2019-08-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9e66aba99925eebacfe137d9deb0ef1fdbc2d5db by Victor Stinner (Joannah Nanjekye) in branch 'master': bpo-15913: Implement PyBuffer_SizeFromFormat() (GH-13873) https://github.com/python/cpython/commit/9e66aba99925eebacfe137d9deb0ef1fdbc2d5db

[issue37754] Persistence of Shared Memory Segment after process exits

2019-08-20 Thread Eryk Sun
Eryk Sun added the comment: > PS: I personally believe from my experience that shared memory > segments should outlive the process, unless specified otherwise. > Also, a argument persist=True, can be added which can ensure > that the shared_memory segment outlives the process, and can be >

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-20 Thread STINNER Victor
STINNER Victor added the comment: I just tested the 3.7 branch manually: regrtest works as expected. I'm using this local changes: diff --git a/Lib/test/libregrtest/runtest.py b/Lib/test/libregrtest/runtest.py index e7dce180cb..7d996d6918 100644 --- a/Lib/test/libregrtest/runtest.py +++

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-20 Thread STINNER Victor
STINNER Victor added the comment: > I can leave it "stuck" if there is some diagnostics that would be beneficial. Can you check the process hierarchy? I would like to know how many worker processes are still running under the main regrtest process. I expect to see exactly one. I don't know

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Batuhan
Batuhan added the comment: Can i work on this? -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-08-20 Thread Riccardo Schirone
Riccardo Schirone added the comment: Will the flaw outlined in https://bugs.python.org/issue30458#msg347282 be fixed in python itself? If so, I think a CVE for python should be requested to MITRE (I can request one, in that case). Moreover, does it make sense to create a new bug to track

[issue15913] Add PyBuffer_SizeFromFormat() C helper for struct.calcsize()

2019-08-20 Thread STINNER Victor
STINNER Victor added the comment: Joannah Nanjekye implemented the function, thanks. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37754] Persistence of Shared Memory Segment after process exits

2019-08-20 Thread Vinay Sharma
Change by Vinay Sharma : -- type: enhancement -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37732] Possible uninitialized variable in Objects/obmalloc.c

2019-08-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset c9a484a1e76384680b90454018389465760dbeae by Victor Stinner in branch '3.7': bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342) (GH-15343) https://github.com/python/cpython/commit/c9a484a1e76384680b90454018389465760dbeae

[issue37894] [win] shutil.which can not find the path if 'cmd' include directory path and not include extension name

2019-08-20 Thread Wator Sead
New submission from Wator Sead : The current code is: ... if os.path.dirname(cmd): if _access_check(cmd, mode): return cmd return None ... In Windows, if 'cmd' include directory path and not include extension name, it return 'None'. e.g. a file's path

[issue37894] [win] shutil.which can not find the path if 'cmd' include directory path and not include extension name

2019-08-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue37732] Possible uninitialized variable in Objects/obmalloc.c

2019-08-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15059 pull_request: https://github.com/python/cpython/pull/15342 ___ Python tracker ___

[issue37732] Possible uninitialized variable in Objects/obmalloc.c

2019-08-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 30e5aff5fb0e3841107ddd4539a1f5b8521c80fb by Victor Stinner in branch '3.8': bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342) https://github.com/python/cpython/commit/30e5aff5fb0e3841107ddd4539a1f5b8521c80fb --

[issue37732] Possible uninitialized variable in Objects/obmalloc.c

2019-08-20 Thread STINNER Victor
STINNER Victor added the comment: Thanks Joannah for the bug report. I fixed the warning on 3.7, 3.8 and master branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8, Python 3.9

[issue37891] Exceptions tutorial page does not mention raise from

2019-08-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for spotting this omission. Would you like to submit a PR with a short paragraph on exception chaining and "raise from"? -- nosy: +rhettinger ___ Python tracker

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Tim Peters
Tim Peters added the comment: @Batuhan, fine by me if you want to take this on! It should be relatively easy. But Mark wrote the code, so it's really up to him. While I doubt this, he may even argue that it's working correctly already ;-) --

[issue37834] readlink on Windows cannot read app exec links

2019-08-20 Thread Steve Dower
Steve Dower added the comment: The latest PR also fixes issue1311 and issue20541 properly (os.path.exists("NUL") now returns True). -- ___ Python tracker ___