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

2019-08-31 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-31 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)

[issue37995] Multiline ast.dump()

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +15299 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15631 ___ Python tracker

[issue15856] inspect.getsource(SomeClass) doesn't show @decorators

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> inspect.getsource returns incorrect source for classes when class definition is part of multiline strings ___ Python tracker

[issue7682] Optimisation of if with constant expression

2019-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was optimized in 3.7. See issue27169 and issue30501. -- nosy: +serhiy.storchaka resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-31 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is fixed with 2a99fd911ebeecedbb250a05667cd46eca4735b9 which would be included in 3.7.5 since this missed 3.7.4RC1 . There is also a test for this at

[issue29477] Lambda with complex arguments is ctx STORE

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

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

2019-08-31 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-08-31 Thread Eryk Sun
Eryk Sun added the comment: >>>> sys.executable >'X:\\Python38\\python.exe' >>>> os.path.realpath(sys.executable) >'SERVER\\Programs\\Python38\\python.exe' Unix Python resolves the executable path with repeated _Py_wreadlink calls. Windows Python should do something

[issue37764] email.Message.as_string infinite loop

2019-08-31 Thread miss-islington
miss-islington added the comment: New changeset c5b242f87f31286ad38991bc3868cf4cfbf2b681 by Miss Islington (bot) (Ashwin Ramaswami) in branch 'master': bpo-37764: Fix infinite loop when parsing unstructured email headers. (GH-15239)

[issue28964] AST literal_eval exceptions provide no information about line number

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37995] Multiline ast.dump()

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

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-31 Thread Dong-hee Na
Dong-hee Na added the comment: It works well on the master branch version but also the latest 3.7 branch I think that we can close this issue for `.jpe` issue if we don't have to support "image/jpg" case. Python 3.9.0a0 (heads/master:daa82d019c, Aug 31 2019, 23:37:00) [Clang 10.0.1

[issue37953] Fix ForwardRef equality checks

2019-08-31 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37994] Fix silencing all errors if an attribute lookup fails

2019-08-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are still sites in the CPython code where all errors of failed attribute lookup are silenced or overridden by other exception. This can hide such exceptions like MemoryError, RecursionError or KeyboardInterrupt and lead to incorrect result (as the

[issue37994] Fix silencing all errors if an attribute lookup fails

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +15298 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15630 ___ Python tracker

[issue37994] Fix silencing all errors if an attribute lookup fails

2019-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Previous round of fixing such issues is issue32571. -- ___ Python tracker ___ ___

[issue37995] Multiline ast.dump()

2019-08-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : ast.dump() is mainly useful for debugging purposes. Unfortunately the output is too long and complex even for simple examples. It contains too much nested calls and lists. >>> import ast >>> node = ast.parse('spam(eggs, "and cheese")') >>>

[issue37995] Multiline ast.dump()

2019-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue36287. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-08-31 Thread Christoph Gohlke
New submission from Christoph Gohlke : Re https://bugs.python.org/issue9949: Is it intended that Python-3.8.0b4 now also resolves mapped network drives and drives created with `subst`? I would not expect this from the documentation at

[issue27227] argparse fails to parse [] when using choices and nargs='*'

2019-08-31 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Bob Kline
Bob Kline added the comment: The original string had u"""...""" and the u had already been removed by hand in preparation for moving to Python 3. -- ___ Python tracker ___

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Ned Deily
Change by Ned Deily : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-31 Thread Ned Deily
Change by Ned Deily : -- resolution: -> out of date stage: -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

[issue37702] memory leak in ssl certification

2019-08-31 Thread neonene
neonene added the comment: I raised another PR(15632), which keeps the changes to a minimum. I hope either PR would be in the 3.7.5 / 3.8.0 official. -- ___ Python tracker

[issue37702] memory leak in ssl certification

2019-08-31 Thread neonene
Change by neonene : -- pull_requests: +15300 pull_request: https://github.com/python/cpython/pull/15632 ___ Python tracker ___ ___

[issue24416] Return a namedtuple from date.isocalendar()

2019-08-31 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner @taleinat This patch of this issue is not merged yet. If there is no reason to abandon this patch, is it okay for me to continue working on it? -- nosy: +corona10, vstinner ___ Python tracker

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Bob Kline
Bob Kline added the comment: Ah, this is worse than I first thought. It's not just converting code by adding extra backslashes to regular expression strings, where at least the regular expression engine will do what the original code was asking the Python parser to do (unless user code

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Matthew Barnett
Matthew Barnett added the comment: You wrote "the u had already been removed by hand". By removing the u in the _Python 2_ code, you changed that string from a Unicode string to a bytestring. In a bytestring, \u is not an escape; b"\u" == b"\\u". -- nosy: +mrabarnett

[issue25518] Investigate implementation of PyOS_CheckStack on OSX

2019-08-31 Thread Ned Deily
Change by Ned Deily : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> Implement PyOS_CheckStack on macOS using pthread_get_stack*_np ___ Python tracker

[issue24416] Return a namedtuple from date.isocalendar()

2019-08-31 Thread Tal Einat
Tal Einat added the comment: Dong-hee Na, yes, that would be welcome. Making a PR would be a great first step. I also suggest adding a note about the issue unpickling with earlier versions, in the NEWS entry and it the "What's New" entry. -- versions: +Python 3.9 -Python 3.7

[issue36793] Do not define unneeded __str__ equal to __repr__

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

[issue24416] Return a namedtuple from date.isocalendar()

2019-08-31 Thread Dong-hee Na
Dong-hee Na added the comment: This patch/The patch -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Bob Kline
New submission from Bob Kline : -UNWANTED = re.compile("""['".,?!:;()[\]{}<>\u201C\u201D\u00A1\u00BF]+""") +UNWANTED = re.compile("""['".,?!:;()[\]{}<>\\u201C\\u201D\\u00A1\\u00BF]+""") The non-ASCII characters in the original string are perfectly legitimate str characters, using

[issue36542] Allow to overwrite the signature for Python functions

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

[issue37995] Multiline ast.dump()

2019-08-31 Thread Anthony Sottile
Anthony Sottile added the comment: neat, this looks like a similar api to astpretty: https://github.com/asottile/astpretty -- nosy: +Anthony Sottile ___ Python tracker ___

[issue37997] Segfault when using pickle with exceptions and dynamic class inheritance

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

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

2019-08-31 Thread Steve Dower
Steve Dower added the comment: Your 3.7.1 install is for all users, and you're trying to install 3.7.4 just for yourself. This is supposed to work, so I'm not sure why it isn't. I haven't had time to look more closely, but if you are able to install for all users (by going through the

[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-08-31 Thread Steve Dower
Steve Dower added the comment: Is this an issue or a mismatched expectation? Tests that assume realpath() on Windows is the equivalent of abspath() are of course going to fail when we fix realpath(), and that's kind of what this one looks like. Just because it doesn't have a direct Unix

[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-08-31 Thread Steve Dower
Steve Dower added the comment: And thanks for reporting this, Christoph. Issue37834 (and some of the issues linked from there) is where we had most of the discussion about this change. -- ___ Python tracker

[issue36254] Fix invalid uses of %d in format strings in C

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

[issue36127] Argument Clinic: inline parsing code for functions with keyword parameters

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

[issue32805] Possible integer overflow when call PyDTrace_GC_DONE()

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

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

2019-08-31 Thread Tim Peters
Tim Peters added the comment: This just isn't going to happen. There's no agreement to be had. For example, the proleptic Gregorian calendar _does_ have a "year 0", and so also does ISO 8601. Version 1.0 of the XML schema spec did not have a year 0, but _claimed_ to be compatible with

[issue37997] Segfault when using pickle with exceptions and dynamic class inheritance

2019-08-31 Thread Gabriel C
New submission from Gabriel C : The following results in a segfault on 3.7.4 (running on macOS high sierra) and 3.5 (running on ubuntu 16.04). It does not happen in python 2.7. The problem seems to involve two effects. The first is the creation of a class with a dynamic type that inherits

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Bob Kline
Bob Kline added the comment: Thanks, I understand. However, this highlights something which had slipped under my radar. You get one shot at running a code set through the tool. You can't do what I was doing, which was to run the tool in "don't write" mode, then fix by hand some of the

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

2019-08-31 Thread Paul Ganssle
Paul Ganssle added the comment: This is only a semi-arbitrary restriction. Realistically, `datetime` is not a particularly good way to represent times much older than the 17th or 18th century (and if you're using time zones, it gets increasingly inaccurate as you go further back from 1970

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Bob Kline
Bob Kline added the comment: In fact, I suppose it's possible that the warning as I worded it is still not restrictive enough, and that there are subtle dependencies between the fixers which would make the action of one of them render the code no longer safely fixable as Python 2 code by

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2019-08-31 Thread Laurent Gautier
Laurent Gautier added the comment: Bump. Is there anything I could do to move this forward (as in write and submit a patch for review) ? -- ___ Python tracker ___