[issue37977] Big red pickle security warning should stress the point even more

2019-08-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37977] Big red pickle security warning should stress the point even more

2019-08-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 6922b9e4fce635339cb94c2fdef6bba4e2a99621 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-37977: Warn more strongly and clearly about pickle security (GH-15595) (GH-15629) https://github.com/python/cpython/commit/6922b9e4fce6

[issue37977] Big red pickle security warning should stress the point even more

2019-08-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +15297 pull_request: https://github.com/python/cpython/pull/15629 ___ Python tracker ___ __

[issue37977] Big red pickle security warning should stress the point even more

2019-08-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset daa82d019c52e95c3c57275307918078c1c0ac81 by Raymond Hettinger (Daniel Pope) in branch 'master': bpo-37977: Warn more strongly and clearly about pickle security (GH-15595) https://github.com/python/cpython/commit/daa82d019c52e95c3c572753079180

[issue37953] Fix ForwardRef equality checks

2019-08-30 Thread hongweipeng
Change by hongweipeng : -- pull_requests: +15296 pull_request: https://github.com/python/cpython/pull/15628 ___ Python tracker ___ _

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2019-08-30 Thread hongweipeng
hongweipeng added the comment: As far as I am concerned, I prefer that like PR 9254 can be merged into old versions. Because it does not break the legitimate code and can prevent the program from crashing. It can be used as a compatible solution with old versions. -- __

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Inada Naoki
Inada Naoki added the comment: Thank you for finding it! My eyes were too focused on portability issue of "%zd"... -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Inada Naoki
Inada Naoki added the comment: New changeset 97a31c7b486c45ba9c21cab5fb96337859a60275 by Inada Naoki in branch '3.8': [3.8] bpo-37990: fix gc stats (GH-15626) https://github.com/python/cpython/commit/97a31c7b486c45ba9c21cab5fb96337859a60275 -- __

[issue37992] Change datetime.MINYEAR to allow for negative years

2019-08-30 Thread Sam Wainwright
New submission from Sam Wainwright : The value of datetime.MINYEAR (1) seems arbitrarily restrictive. There are plenty of reasons why users of the standard library might want to work with negative years. Workarounds involving things like astropy don't work in all cases, particularly when you'

[issue37992] Change datetime.MINYEAR to allow for negative years

2019-08-30 Thread Sam Wainwright
Change by Sam Wainwright : -- components: Library (Lib) nosy: Sam Wainwright priority: normal severity: normal status: open title: Change datetime.MINYEAR to allow for negative years type: enhancement versions: Python 3.7 ___ Python tracker

[issue37988] Issue found during language name processing in a list

2019-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: This code derived from the blurry image lst = ['malaysian', 'malayalam', 'a'] ip = input('word ') li = len(ip) miss = 0 for word in lst: if len(word) == li: for j in range(li-1): # skip last because of lookahead if word[j] != i

[issue37989] documentation format error in Chinese version

2019-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The translations of the docs are maintained in a separate repository by a separate group of people. The sidebar on the left of the page you linked to has a link called '提交 Bug' to https://docs.python.org/zh-cn/3/bugs.html. I am guessing that this page or on

[issue37981] Can't install Python 3.7.4 x64 on Win 8.1

2019-08-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +15295 pull_request: https://github.com/python/cpython/pull/15627 ___ Python tracker ___ _

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2019-08-30 Thread Berker Peksag
Berker Peksag added the comment: Yes, we can. Thank you for the backport, Raymond :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Inada Naoki
Inada Naoki added the comment: New changeset 013e52fd340d9ef558013b546f25456f94ee1804 by Inada Naoki in branch 'master': bpo-37990: fix gc stats (GH-15626) https://github.com/python/cpython/commit/013e52fd340d9ef558013b546f25456f94ee1804 -- ___ P

[issue37781] Use "z" for PY_FORMAT_SIZE_T

2019-08-30 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue37781] Use "z" for PY_FORMAT_SIZE_T

2019-08-30 Thread Inada Naoki
Inada Naoki added the comment: New changeset d765d81b8fb5ab707bfe8b079348e5038c298aa3 by Inada Naoki in branch 'master': bpo-37781: use "z" for PY_FORMAT_SIZE_T (GH-15156) https://github.com/python/cpython/commit/d765d81b8fb5ab707bfe8b079348e5038c298aa3 -- _

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +15294 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15626 ___ Python tracker _

[issue37991] What is this? What is problem?

2019-08-30 Thread Steve Dower
Steve Dower added the comment: Python 64-bit requires a 64-bit operating system, otherwise it doesn't have any way to support the processor. You should install 32-bit Python instead. The latest release is at https://www.python.org/ftp/python/3.7.4/python-3.7.4-webinstall.exe but if you real

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2019-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15293 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15625 ___ Python tracker ___ _

[issue37991] What is this? What is problem?

2019-08-30 Thread Yusif
Yusif added the comment: problem is 0x80070661 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue37991] What is this? What is problem?

2019-08-30 Thread Yusif
New submission from Yusif : Windows 10 32-bit operating system,x64-based processor -- components: Windows files: Python 3.5.3 (64-bit)_20190831024317.log messages: 350896 nosy: paul.moore, steve.dower, tim.golden, yusif, zach.ware priority: normal severity: normal status: open title: Wh

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2019-08-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: The backport is done. Can we close this now (and PR 120 which is still shown as open)? -- ___ Python tracker ___

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2019-08-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset bd8ca9aaccef0569c4b5c2e6dad0feb869ffd6c5 by Raymond Hettinger in branch '3.8': [3.8] bpo-29553: Fix ArgumentParser.format_usage() for mutually exclusive groups (GH-14976) (GH-15494) (GH-15624) https://github.com/python/cpython/commit/bd8ca9a

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2019-08-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15292 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/15624 ___ Python tracker ___

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. It looks like this regression was introduced by the changes for Issue37729. -- assignee: -> inada.naoki keywords: +3.8regression nosy: +inada.naoki, ned.deily priority: normal -> high stage: -> needs patch versions: +Python 3.8 _

[issue37729] gc: stats from multi process are mixed up

2019-08-30 Thread Ned Deily
Ned Deily added the comment: See Issue37990 for a report of a regression introduced by these changes. -- nosy: +ned.deily ___ Python tracker ___ __

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2019-08-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, I'll do the backport. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Hubert Jasudowicz
Change by Hubert Jasudowicz : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Hubert
New submission from Hubert : Example: Python 3.9.0a0 (heads/master:39d87b5471, Aug 30 2019, 23:19:13) [GCC 9.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import gc >>> gc.set_debug(gc.DEBUG_STATS) >>> gc.collect() gc: collecting generation 2... gc: o

[issue37705] winerror_to_errno implementation

2019-08-30 Thread Zackery Spytz
Zackery Spytz added the comment: I have created a pull request for this issue. Please take a look. -- nosy: +ZackerySpytz versions: -Python 3.8 ___ Python tracker ___ ___

[issue37705] winerror_to_errno implementation

2019-08-30 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +15291 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15623 ___ Python tracker ___

[issue15999] Using new 'bool' format character

2019-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15290 pull_request: https://github.com/python/cpython/pull/15622 ___ Python tracker ___

[issue15999] Using new 'bool' format character

2019-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15289 pull_request: https://github.com/python/cpython/pull/15621 ___ Python tracker ___

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2019-08-30 Thread Berker Peksag
Berker Peksag added the comment: da27d9b9dc44913ffee8f28d9638985eaaa03755 needs to be manually backported to 3.8. -- stage: patch review -> backport needed versions: +Python 3.8 -Python 2.7, Python 3.5 ___ Python tracker

[issue37939] os.path.normpath change some characters of a path into kinda 'hex number'

2019-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.5 (and 3.6) only gets security fixes. From the report, the bug is fixed in 3.7. FWIW, I agree about the 9-bit octal thing. There is another issue about this. -- nosy: +terry.reedy resolution: -> out of date stage: -> resolved status: open -> cl

[issue36409] plistlib old API should be removed

2019-08-30 Thread Jon Janzen
Change by Jon Janzen : -- pull_requests: +15288 pull_request: https://github.com/python/cpython/pull/15615 ___ Python tracker ___ __

[issue35737] crypt AuthenticationError introduced with new Linux kernel

2019-08-30 Thread Brett R
Brett R added the comment: I'm marking this closed. We're past the issue, and won't be providing any more details or chasing this further. Feel free to reopen if others want to push it. Thanks for the tips. -- stage: -> resolved status: open -> closed __

[issue37985] WFERR_UNMARSHALLABLE breaks recursion limit

2019-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It should be against master or the the newest version in which the problem exists. After merging this pull request the changes will be backported to older versions. 3.6 and 3.5 are open for security fixes only. -- nosy: +serhiy.storchaka

[issue37140] ctypes change made clang fail to build

2019-08-30 Thread STINNER Victor
STINNER Victor added the comment: Ok, the regression is now fixed. I close the issue. Thanks Petr Viktorin for the bug report, Paul Monson for the fix proposed fix, and serge-sans-paille for your help on investigating this complex bug. -- priority: release blocker -> resolution: ->

[issue37961] Tracemalloc traces do not include original stack trace length

2019-08-30 Thread STINNER Victor
STINNER Victor added the comment: With the following change, traceback_t size changes from 24 bytes to 32 bytes: diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index ee32ac29b7..8a820db907 100644 --- a/Modules/_tracemalloc.c +++ b/Modules/_tracemalloc.c @@ -79,6 +79,7 @@ __attrib

[issue37918] What about an enum for open() modes?

2019-08-30 Thread Marco Sulla
Marco Sulla added the comment: @vstinner Note that I wrote about os.fdopen(), not os.open(). -- ___ Python tracker ___ ___ Python-b

[issue37918] What about an enum for open() modes?

2019-08-30 Thread Marco Sulla
Marco Sulla added the comment: Well, I'll discuss it in python-ideas. Let me do the testament before... :D @serhiy.storchaka thank you for the StrEnum tip, but no PyPi package please. It has no sense to add an addional package only for having an enum that should be built-in as in all other l

[issue37986] Improve perfomance of PyLong_FromDouble()

2019-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue37944] Adjacent escape character in json.load()

2019-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no a bug. "\\\"" is the same as r"\\" -- a 2-charackter string consisting of a backslash character and a doublequote character. r"\\\"" is a different string, it contains 3 backslash characters. >>> print("\\\"") \" >>> print(repr("\\\"")) '\\"'

[issue37918] What about an enum for open() modes?

2019-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No modification of open() is needed. Just make your enum class a subclass of str. This idea does not look particularly attractive to me, but you can create a package on PyPi with your OpenMode class and test how popular it will be. -- nosy: +serhi

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-30 Thread Sebastian Berg
Sebastian Berg added the comment: I applaud the stricter rules in general, as Mark noted nicely, the issue is that `__index__` is maybe a strange way to achieve that for bools (it is not like `123` is a clean bool)? `__nonzero__` coerces to bools, there is no `__bool__` to convert to bool sa

[issue37140] ctypes change made clang fail to build

2019-08-30 Thread miss-islington
miss-islington added the comment: New changeset 17f61ed25a856ed673ad6f2e9782c3d5e556f151 by Miss Islington (bot) in branch '3.8': bpo-37140: Fix StructUnionType_paramfunc() (GH-15612) https://github.com/python/cpython/commit/17f61ed25a856ed673ad6f2e9782c3d5e556f151 -- nosy: +miss-is

[issue37961] Tracemalloc traces do not include original stack trace length

2019-08-30 Thread Julien Danjou
Julien Danjou added the comment: > In fact, I didn't check: maybe traceback_t size is not change by your PR, > because of memory aligment and padding. It is changed. The current size is should be determined by sizeof(Py_uhash_t + int + int) which is 4 + 4 + 4, so 12 aligned/padded. Using a

[issue37140] ctypes change made clang fail to build

2019-08-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +15287 pull_request: https://github.com/python/cpython/pull/15613 ___ Python tracker ___ __

[issue37140] ctypes change made clang fail to build

2019-08-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 96b4087ce784ee7434dffdf69c475f5b40543982 by Victor Stinner in branch 'master': bpo-37140: Fix StructUnionType_paramfunc() (GH-15612) https://github.com/python/cpython/commit/96b4087ce784ee7434dffdf69c475f5b40543982 --

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-30 Thread Mark Dickinson
Mark Dickinson added the comment: Victor > The purpose of the DeprecationWarning is to give time to numpy developers to > update the bool_() type, before it becomes an error. No, that's not what's happening: currently, np.bool_ *does* support __index__. In the future, it won't. The NumPy de

[issue37988] Issue found during language name processing in a list

2019-08-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: It may help if you read this: http://sscce.org/ It is written for Java programmers but it applies to Python as well. Don't expect us to re-type your code from a hard-to-read, out-of-focus, low-resolution photo of your monitor. Copy and paste the code into

[issue37988] Issue found during language name processing in a list

2019-08-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please attach the code snippet as text instead of screenshot so that it would be helpful to copy paste and run. In the issue please add a description of what's the output you are expecting and what's the actual output? Thanks -- no

[issue37987] retrun collection item in for cycle with finally continue

2019-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report, but this has been fixed in issue37830. Try 3.8.0b4! -- resolution: -> out of date stage: -> resolved status: open -> closed superseder: -> continue and break in finally with return in try results with segfault

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-30 Thread STINNER Victor
STINNER Victor added the comment: > DeprecationWarning: In future, it will be an error for 'np.bool_' scalars to > be interpreted as an index That sounds like an issue in numpy: np.bool_ should define the __index__() method, no? $ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) >>> i

[issue37988] Issue found during language name processing in a list

2019-08-30 Thread SYAM PARAKASH,AJAY KUMAR
New submission from SYAM PARAKASH,AJAY KUMAR : I found an error in processing language name like Malayalam,English.. in a list created using Python 3.6.1 -- files: IMG_20190830_162306__1567162571_88362.jpg messages: 350869 nosy: AjaySyam priority: normal severity: normal status: open t

[issue37987] retrun collection item in for cycle with finally continue

2019-08-30 Thread Иван Косматых
New submission from Иван Косматых : https://bugs.python.org/issue32489 This closed issue allow continue in finally clasue but now it can lead to crash in below case. def crash(): for i in [1, 2, 3]: try: return i finally: continue crash() I try use

[issue37918] What about an enum for open() modes?

2019-08-30 Thread STINNER Victor
STINNER Victor added the comment: The open() function is very commonly used, so modifying it requires a lot of discussion. In Python, we prefer to discuss such changes ("feature request" if you want) on python-ideas, rather than on the bug tracker, to get more reviews and feedback. open() m

[issue37961] Tracemalloc traces do not include original stack trace length

2019-08-30 Thread STINNER Victor
STINNER Victor added the comment: I'm fine with limiting MAX_NFRAME to USHRT_MAX and change traceback_t.nframe type to unsigned short (16 bits). Storing 65536 should be way enough. It would be great if you manage to add your new field without making traceback_t larger. In fact, I didn't chec

[issue37140] ctypes change made clang fail to build

2019-08-30 Thread STINNER Victor
STINNER Victor added the comment: Ok, it took me a while to understand the subtle ctypes internals. serge-sans-paille and me read the C code and run a debugger (gdb) on it to undertand how passing a structure by copy work in ctypes. The root function is StructUnionType_paramfunc(): it copies

[issue37944] Adjacent escape character in json.load()

2019-08-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue37140] ctypes change made clang fail to build

2019-08-30 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file48575/point.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue37140] ctypes change made clang fail to build

2019-08-30 Thread STINNER Victor
STINNER Victor added the comment: I was surprised by the following test in StructUnionType_paramfunc(): if ((size_t)self->b_size > sizeof(void*)) { ... copy the structure ... } else { ... pass by reference (?) ... } So I wrote a simple C library with the structure: typedef struct Point

[issue37140] ctypes change made clang fail to build

2019-08-30 Thread STINNER Victor
STINNER Victor added the comment: It's a Python 3.8 regression, so I mark it as a release blocker. -- nosy: +lukasz.langa priority: normal -> release blocker ___ Python tracker __

[issue37140] ctypes change made clang fail to build

2019-08-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15286 pull_request: https://github.com/python/cpython/pull/15612 ___ Python tracker ___ __

[issue37834] readlink on Windows cannot read app exec links

2019-08-30 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue37986] Improve perfomance of PyLong_FromDouble()

2019-08-30 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : This patch simplifies fast path for floats that fit into C long and moves it from float.__trunc__ to PyLong_FromDouble(). +-+-+--+ | Benchmark | long-from-float-ref | long-from-f

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See more general issue issue15999. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15999] Using new 'bool' format character

2019-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15284 pull_request: https://github.com/python/cpython/pull/15610 ___ Python tracker ___

[issue15999] Using new 'bool' format character

2019-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15283 pull_request: https://github.com/python/cpython/pull/15609 ___ Python tracker ___

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-30 Thread Yehuda Katz
Yehuda Katz added the comment: Eric, thank you, I'm sorry. Yehuda On Thu, Aug 29, 2019 at 11:47 PM Eric V. Smith wrote: > > Eric V. Smith added the comment: > > It's turtle.circle: > > https://docs.python.org/3.5/library/turtle.html#turtle.circle > > @Yehuda: this isn't the appropriate plac

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-30 Thread Mark Dickinson
Mark Dickinson added the comment: Since this particular issue is about "sort", I'm adding Tim and Raymond to the nosy list. -- nosy: +rhettinger, tim.peters ___ Python tracker __

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-30 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, I think there's a lot of history here that obscures the picture. We have mechanisms in Python to allow 3rd party objects to be interpreted as floats (via __float__) or as integers (via __index__). So np.int64 (for example) doesn't subclass int (on Pyth

[issue18943] argparse: default args in mutually exclusive groups

2019-08-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: -5593 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https: