[issue42821] HTMLParser: subsequent duplicate attributes should be ignored

2021-01-05 Thread Ezio Melotti
Ezio Melotti added the comment: If we follow the behavior of the browser, we will have to pick one of the two values and discard the other, making this value unaccessible. If we provide both, scripts and libraries that use HTMLParser will have access to both and can decide what to do. For

[issue42825] Build libraries with "/OPT:REF" linker optimization on Windows

2021-01-05 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +eryksun title: Optimization opportunity on Windows -> Build libraries with "/OPT:REF" linker optimization on Windows ___ Python tracker ___

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2021-01-05 Thread Yury Selivanov
Yury Selivanov added the comment: > Do we have good intuition or data about which operations need speeding up > most? Everybody always assumes it's BINARY_ADD, but much Python code isn't > actually numeric, and binary operations aren't all that common. IMO, we shouldn't focus too much on

[issue42835] Can't Built libxml2 When Using Python 3.9.x

2021-01-05 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42835] Can't Built libxml2 When Using Python 3.9.x

2021-01-05 Thread Michael L. Boom
Michael L. Boom added the comment: The gcc 10.x seems to think this is also a bug: /local/users/michael.l.boom/gits/scoring_engine/git/aae_build_python_3.9.1/include/python3.9/object.h:633:41: error: expected ‘(’ before ‘PyType_HasFeature’ 633 | #define PyType_FastSubclass(type, flag)

[issue34451] docs: tutorial/introduction doesn't mention toggle of prompts

2021-01-05 Thread David Justo
David Justo added the comment: Hi folks! I'm interested in contributing to this issue, but I'm unsure about the context. Can `` prompts be toggled on-and-off in the docs? I do not see that option. I read that this is possible in javascript-enabled versions of the site, but isn't that

[issue42835] Can't Built libxml2 When Using Python 3.9.x

2021-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Looks to me like this line is at fault: 607 | } else if PyLong_Check(obj) { That's not valid C. In the GitHub mirror this line has been corrected. -- resolution: -> third party stage: -> resolved status: open -> closed

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2021-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Do we have good intuition or data about which operations need speeding up most? Everybody always assumes it's BINARY_ADD, but much Python code isn't actually numeric, and binary operations aren't all that common. (For example, IIRC at my previous employer

[issue30044] shutil.copystat should (allow to) copy ownership, and other attributes

2021-01-05 Thread David Justo
David Justo added the comment: Hi folks, I'd be interested in contributing to this issue, since it seems "easy" enough, but I'm unsure that consensus was reached about the right solution. >From what I gathered from Giampaolo's comments, we have solutions that should >work for Unix-y systems

[issue42835] Can't Built libxml2 When Using Python 3.9.x

2021-01-05 Thread Michael L. Boom
Michael L. Boom added the comment: The gcc 10.x thinks that the right side of the expression on incoude/python3.9/object.h should be in parentheses. It seems like a Python bug. Perhaps earlier versions of gcc didn't have a problem with this.

[issue42712] Segmentation fault in running ast.literal_eval() with large expression size.

2021-01-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think we really need a customer parser for ast.literal_eval(), one that doesn't have the same constraints and that can be counted on for safe evaluation of untrusted input. -- nosy: +rhettinger ___ Python

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2021-01-05 Thread Yury Selivanov
Yury Selivanov added the comment: > The gist seems to be to have extra opcodes that only work for certain > situations (e.g. INT_BINARY_ADD). In a hot function we can rewrite opcodes > with their specialized counterpart. The new opcode contains a guard that > rewrites itself back if the

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2021-01-05 Thread Berker Peksag
Change by Berker Peksag : -- assignee: -> docs@python components: -Unicode nosy: +docs@python -vstinner ___ Python tracker ___

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2021-01-05 Thread Berker Peksag
Change by Berker Peksag : -- assignee: lemburg -> components: +Documentation nosy: +vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.8 ___ Python tracker

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: New changeset a3ca6747f50efa2fe59caf516a26b0fd1912b8e8 by Miss Islington (bot) in branch '3.9': bpo-14014: Clarify StreamWriter.reset() documentation (GH-13716) https://github.com/python/cpython/commit/a3ca6747f50efa2fe59caf516a26b0fd1912b8e8 --

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2021-01-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +22966 pull_request: https://github.com/python/cpython/pull/24136 ___ Python tracker

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: New changeset 1a9f51ed12feb4d95ad6d0faf610a030c05b9f5e by Berker Peksag in branch 'master': bpo-14014: Clarify StreamWriter.reset() documentation (GH-13716) https://github.com/python/cpython/commit/1a9f51ed12feb4d95ad6d0faf610a030c05b9f5e -- nosy:

Re: dayofyear is not great when going into a new year

2021-01-05 Thread Richard Damon
On 1/5/21 8:02 PM, Mats Wichmann wrote: > On 1/5/21 4:04 PM, Chris Angelico wrote: >> On Wed, Jan 6, 2021 at 10:01 AM Eli the Bearded >> <*@eli.users.panix.com> wrote: >>> >>> In comp.lang.python, Chris Angelico  wrote: There are multiple definitions for "day of year", depending on how you

Re: dayofyear is not great when going into a new year

2021-01-05 Thread Eli the Bearded
In comp.lang.python, Mats Wichmann wrote: > "workweeks" has always been fun, ISO standard or not, there's been a > variation for ages since people don't seem to always follow ISO for > that. I spent over a decade at a place that lived and died by their > WorkWeek references ("due WW22" or

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2021-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: I've skimmed several papers by Stefan Brunthaler about something called Quickening that I first found via the Pyston blog, which linked to an ancient bpo issue with a patch created by Stefan (https://bugs.python.org/issue14757). The gist seems to be to

Re: dayofyear is not great when going into a new year

2021-01-05 Thread Mats Wichmann
On 1/5/21 4:04 PM, Chris Angelico wrote: On Wed, Jan 6, 2021 at 10:01 AM Eli the Bearded <*@eli.users.panix.com> wrote: In comp.lang.python, Chris Angelico wrote: There are multiple definitions for "day of year", depending on how you want to handle certain oddities. The simplest is to

[issue40959] Remove unused and unneeded function declaration from sqlite3 header files

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: Thank you! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40959] Remove unused and unneeded function declaration from sqlite3 header files

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: New changeset 203b2493ae6fd7c1f039f3f906f087d67d9100d5 by Erlend Egeberg Aasland in branch 'master': bpo-40959: Remove unused declarations from sqlite3 headers (GH-20828) https://github.com/python/cpython/commit/203b2493ae6fd7c1f039f3f906f087d67d9100d5

[issue42835] Can't Built libxml2 When Using Python 3.9.x

2021-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe libxml is using a deprecated API or an invalid combination of command line flags. I don't feel like debugging this until there's a clearer indication of who's at fault. -- ___ Python tracker

[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2021-01-05 Thread Berker Peksag
Change by Berker Peksag : -- components: +macOS ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: It's now deprecated in 3.10. -- components: +Extension Modules -Build, macOS resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement versions: +Python 3.10 -Python 3.9 ___

[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: New changeset ddb5e11683c8db9d2095f2f9406701443c4dc9b3 by Erlend Egeberg Aasland in branch 'master': bpo-24464: Deprecate sqlite3.enable_shared_cache (GH-24008) https://github.com/python/cpython/commit/ddb5e11683c8db9d2095f2f9406701443c4dc9b3 --

[issue42835] Can't Built libxml2 When Using Python 3.9.x

2021-01-05 Thread Michael L. Boom
Michael L. Boom added the comment: I thought the problem was in a Python file. Perhaps I am mistaken. The libxml2 builds fine when using Python 3.8.x. -- ___ Python tracker

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Steve Dower
Steve Dower added the comment: New changeset db91714faa6d3ede59003cdcc719a758160f3970 by Steve Dower in branch '3.8': bpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675) https://github.com/python/cpython/commit/db91714faa6d3ede59003cdcc719a758160f3970 --

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Steve Dower
Change by Steve Dower : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue40956] Use Argument Clinic in sqlite3

2021-01-05 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22965 pull_request: https://github.com/python/cpython/pull/24135 ___ Python tracker ___

ANN: pvlib-0.8.1 released

2021-01-05 Thread Dr. Mark Alexander Mikofski PhD
Dear Pythonistas and solar power enthusiasts, On behalf of the maintainers, we're happy to announce a new release of pvlib python: software for simulating performance of photovoltaic solar energy systems. *See what's new for v0.8.1:* * https://pvlib-python.readthedocs.io/en/stable/whatsnew.html

[issue42755] sqlite3.Connection.backup default value is diffrent between implmentation and docs

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: New changeset 28611c28474a7fafdcf7ea2712f2670dda940eef by Miss Islington (bot) in branch '3.8': bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965) https://github.com/python/cpython/commit/28611c28474a7fafdcf7ea2712f2670dda940eef --

[issue38413] Remove or change "Multithreading" section

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: New changeset 03a079f7cf8eacc29ea616060916e8a63ba6e5ba by Miss Islington (bot) in branch '3.8': bpo-38413: Remove outdated section about multithreading in sqlite3 (GH-23159) https://github.com/python/cpython/commit/03a079f7cf8eacc29ea616060916e8a63ba6e5ba

[issue38413] Remove or change "Multithreading" section

2021-01-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22964 pull_request: https://github.com/python/cpython/pull/24134 ___ Python tracker

[issue38413] Remove or change "Multithreading" section

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: New changeset f9949f82e17c88609adb53eff3a7d5cd63a645bd by Vladimir in branch 'master': bpo-38413: Remove outdated section about multithreading in sqlite3 (GH-23159) https://github.com/python/cpython/commit/f9949f82e17c88609adb53eff3a7d5cd63a645bd --

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-01-05 Thread Steve Dower
Steve Dower added the comment: I believe this is all done now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +22963 pull_request: https://github.com/python/cpython/pull/24133 ___ Python tracker ___

[issue42835] Can't Built libxml2 When Using Python 3.9.x

2021-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Have you approached the libxml2 developers with this problem? -- nosy: +gvanrossum ___ Python tracker ___

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Sorry, I've been doing it. They're just slow because I'm getting OpenSSL done > at the same time and they both keep causing merge conflicts. No problem. I noticed that, so I aborted my cherry-picker. --

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Steve Dower
Steve Dower added the comment: New changeset 77d54710506b67e48b50bb1758fb31fc33a33c83 by Steve Dower in branch '3.9': bpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675) https://github.com/python/cpython/commit/77d54710506b67e48b50bb1758fb31fc33a33c83 --

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-01-05 Thread Steve Dower
Steve Dower added the comment: New changeset 86b1207dbb9201d1259d1ec7603e720e29ba9042 by Steve Dower in branch '3.8': bpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125) https://github.com/python/cpython/commit/86b1207dbb9201d1259d1ec7603e720e29ba9042 --

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Steve Dower
Steve Dower added the comment: > Steve Dower, do you mind if I create backports for the Windows build as well? Sorry, I've been doing it. They're just slow because I'm getting OpenSSL done at the same time and they both keep causing merge conflicts. --

[issue42811] Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__

2021-01-05 Thread Brett Cannon
Change by Brett Cannon : -- title: Update docs for importlib.util.resolve_name() to use __spec__ instead of __package__ -> Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__ ___ Python tracker

[issue40810] sqlite3 test CheckTraceCallbackContent fails for sqlite v3.7.3 through 3.7.14.1

2021-01-05 Thread Berker Peksag
Change by Berker Peksag : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40810] sqlite3 test CheckTraceCallbackContent fails for sqlite v3.7.3 through 3.7.14.1

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: I think this is now done. Thank you, Erlend! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40810] sqlite3 test CheckTraceCallbackContent fails for sqlite v3.7.3 through 3.7.14.1

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: New changeset cf0b23908cc902ac38cd83dd7ca5afdf89e1543b by Erlend Egeberg Aasland in branch 'master': bpo-40810: Require SQLite 3.7.15 (GH-24106) https://github.com/python/cpython/commit/cf0b23908cc902ac38cd83dd7ca5afdf89e1543b --

[issue40956] Use Argument Clinic in sqlite3

2021-01-05 Thread Berker Peksag
Berker Peksag added the comment: New changeset c7f8d3caf0b10c19cd46b1b334a98628eac15672 by Erlend Egeberg Aasland in branch 'master': bpo-40956: Convert _sqlite3.Cursor to Argument Clinic (GH-24007) https://github.com/python/cpython/commit/c7f8d3caf0b10c19cd46b1b334a98628eac15672

[issue42835] Can't Built libxml2 When Using Python 3.9.x

2021-01-05 Thread Michael L. Boom
New submission from Michael L. Boom : When building libxml2 using Python 3.9.0 or Python 3.9.1 and gcc 10.2.0 I get the below error. Others are having this problem according to my Google search. make[4]: Entering directory

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +22962 pull_request: https://github.com/python/cpython/pull/24132 ___ Python tracker ___

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-01-05 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +22961 pull_request: https://github.com/python/cpython/pull/24131 ___ Python tracker ___

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-01-05 Thread Steve Dower
Steve Dower added the comment: New changeset c8333931434389ae72da9eb0471054f4393249db by Steve Dower in branch '3.9': bpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125) https://github.com/python/cpython/commit/c8333931434389ae72da9eb0471054f4393249db --

Re: dayofyear is not great when going into a new year

2021-01-05 Thread Chris Angelico
On Wed, Jan 6, 2021 at 10:01 AM Eli the Bearded <*@eli.users.panix.com> wrote: > > In comp.lang.python, Chris Angelico wrote: > > There are multiple definitions for "day of year", depending on how you > > want to handle certain oddities. The simplest is to identify Jan 1st > > as 1, Jan 2nd as

Re: dayofyear is not great when going into a new year

2021-01-05 Thread Eli the Bearded
In comp.lang.python, Chris Angelico wrote: > There are multiple definitions for "day of year", depending on how you > want to handle certain oddities. The simplest is to identify Jan 1st > as 1, Jan 2nd as 2, etc, to Dec 31st as either 365 or 366; but some > libraries will define the year as

[issue42746] python3.7.3 - ssl.SSLContext() - "Killed"

2021-01-05 Thread Christian Heimes
Christian Heimes added the comment: What exactly happens when you try to instantiate an SSLContext() object? Does it just print the string "Killed" or does the process stop and segfault immediately? If it's a segfault then it is likely caused by an incompatibility between recent LibreSSL

Re: dayofyear is not great when going into a new year

2021-01-05 Thread Chris Angelico
On Wed, Jan 6, 2021 at 9:51 AM Michael F. Stemper wrote: > > On 05/01/2021 15.27, Chris Angelico wrote: > > On Wed, Jan 6, 2021 at 8:02 AM Martin Schöön > > wrote: > > >> I have had some Python fun with COVID-19 data. I have done > >> some curve fitting and to make that easier I have

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread miss-islington
miss-islington added the comment: New changeset e9a71dab094c0467f07d13cce4324c8a93727863 by Erlend Egeberg Aasland in branch '3.9': [3.9] bpo-42584: Update macOS installer to use SQLite 3.34.0 (GH-23674) (GH-24130)

Re: dayofyear is not great when going into a new year

2021-01-05 Thread Michael F. Stemper
On 05/01/2021 15.27, Chris Angelico wrote: On Wed, Jan 6, 2021 at 8:02 AM Martin Schöön wrote: I have had some Python fun with COVID-19 data. I have done some curve fitting and to make that easier I have transformed date to day of year. Come end of 2020 and beginning of 2021 and this idea

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2021-01-05 Thread Andrew Brunner
Change by Andrew Brunner : -- nosy: +abrunner73 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread miss-islington
miss-islington added the comment: New changeset f27451dc35f1c69be0c26e8aeafee7ba6771039a by Erlend Egeberg Aasland in branch '3.8': [3.8] bpo-42584: Update macOS installer to use SQLite 3.34.0 (GH-23674). (GH-24129)

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Steve Dower, do you mind if I create backports for the Windows build as well? -- resolution: -> fixed status: open -> pending ___ Python tracker

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22960 pull_request: https://github.com/python/cpython/pull/24130 ___ Python tracker ___

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22959 pull_request: https://github.com/python/cpython/pull/24129 ___ Python tracker ___

Re: dayofyear is not great when going into a new year

2021-01-05 Thread dn via Python-list
On 1/6/21 9:55 AM, Martin Schöön wrote: > Hello, > > I have had some Python fun with COVID-19 data. I have done > some curve fitting and to make that easier I have transformed > date to day of year. Come end of 2020 and beginning of 2021 > and this idea falls on its face. > > There must be a

[issue41798] [C API] Revisit usage of the PyCapsule C API with multi-phase initialization API

2021-01-05 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22958 pull_request: https://github.com/python/cpython/pull/24128 ___ Python tracker ___

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Ned Deily, can you fix the macOS backports? -- ___ Python tracker ___ ___

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2021-01-05 Thread Ned Deily
Ned Deily added the comment: Thanks, Ronald and others. I have done some testing now with macOS 11 Big Sur and retested on 10.15 Catalina and with various versions of Tk and what I am seeing is as follows. - On macOS 11.1 Big Sur with IDLE.app from the python.org 3.9.1 universal2 installer

[issue42584] Upgrade macOS and Windows installers to use SQLite 3.34.0

2021-01-05 Thread Steve Dower
Steve Dower added the comment: New changeset dd74c01d3bd2833f72ffe400a1d10b8583c0ba6a by Erlend Egeberg Aasland in branch 'master': bpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675) https://github.com/python/cpython/commit/dd74c01d3bd2833f72ffe400a1d10b8583c0ba6a

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-01-05 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +22957 pull_request: https://github.com/python/cpython/pull/24127 ___ Python tracker ___

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-01-05 Thread Steve Dower
Steve Dower added the comment: New changeset afb71443788a7b20f9104243b3d8d37e3d12cfe2 by Steve Dower in branch 'master': bpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125) https://github.com/python/cpython/commit/afb71443788a7b20f9104243b3d8d37e3d12cfe2 --

Re: dayofyear is not great when going into a new year

2021-01-05 Thread Chris Angelico
On Wed, Jan 6, 2021 at 8:02 AM Martin Schöön wrote: > > Hello, > > I have had some Python fun with COVID-19 data. I have done > some curve fitting and to make that easier I have transformed > date to day of year. Come end of 2020 and beginning of 2021 > and this idea falls on its face. > There

[issue42712] Segmentation fault in running ast.literal_eval() with large expression size.

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed the following by Xinmeng as duplicates of this: #42713 eval(...) #42714 compile(...) #42715 exec(...) #42716 ast.parse(...) This is probably a duplicate of #42609, and should likely be closed also. -- nosy: +terry.reedy

[issue42746] python3.7.3 - ssl.SSLContext() - "Killed"

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7.3 is an old release of an old version. It has already been patched a few times. If you cannot upgrade to at least the last bugfix release of 3.7, you are somewhat on your own. The word 'Killed' in not in the ssl module, so I presume it comes from the

[issue41798] [C API] Revisit usage of the PyCapsule C API with multi-phase initialization API

2021-01-05 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22956 pull_request: https://github.com/python/cpython/pull/24126 ___ Python tracker ___

dayofyear is not great when going into a new year

2021-01-05 Thread Martin Schöön
Hello, I have had some Python fun with COVID-19 data. I have done some curve fitting and to make that easier I have transformed date to day of year. Come end of 2020 and beginning of 2021 and this idea falls on its face. There must be a better way of doing this. I am using Pandas for reading

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-01-05 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +22955 pull_request: https://github.com/python/cpython/pull/24125 ___ Python tracker ___

[issue42818] AttributeError: 'zipimporter' object has no attribute 'find_spec'

2021-01-05 Thread Klaus Ethgen
Klaus Ethgen added the comment: I don't know if that is an issue with zipimporter or an issue with a version of setuptools. My knowledge of python is very limited. But from what I can see in the backtrace it is missing find_spec. How ever that reverting is or should be implemented, it

[issue42827] pegen parser: Multiline eval with assignment to function call: assertion failed

2021-01-05 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +22954 pull_request: https://github.com/python/cpython/pull/24124 ___ Python tracker ___

[issue41798] [C API] Revisit usage of the PyCapsule C API with multi-phase initialization API

2021-01-05 Thread Christian Heimes
Christian Heimes added the comment: > BTW, do we still want to keep the socket CAPI for external users? Yes, at least for a while. socket.h is not part of the public include headers. It's still possible that the CAPI is used by an external project. --

[issue41798] [C API] Revisit usage of the PyCapsule C API with multi-phase initialization API

2021-01-05 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > I'm also in the process of removing PySocketModuleAPI from _ssl.c. BTW, do we still want to keep the socket CAPI for external users? -- ___ Python tracker

[issue42828] Python readline module

2021-01-05 Thread Marco Franzo
Marco Franzo added the comment: So, I use Ubuntu 20.10 and the terminal is the one distributed with the system. I think this problem born in my code here: def generate_input(): while True: str = input().strip() yield helloworld_pb2.Operazione(operazione = str) I think

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2021-01-05 Thread Malversán
Malversán added the comment: That means the core code also works for SOCK_RAW sockets. It's only limited by explicit socket type checks at a higher level. As a curious note (not related to the issue), I'm also using the SOCK_SEQPACKET connection created with BaseEventLoop to access a custom

[issue42498] smtplib is glitchy after receive server code 500

2021-01-05 Thread izomiac
izomiac added the comment: I agree, it's my suspicion that the server's error message and python's outbound command are sent so close to each other that buffering ensures they disagree about the exact sequence of commands/responses. As for my server, it was HAProxy doing the injection and I

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2021-01-05 Thread mike bayer
mike bayer added the comment: > Under your proposal, the first line would be changed to say > "autocommit=True", even though not all the code below is in autocommit mode > (according to the SQLite engine's definition). What's more, I could insert > this line of code between statements 3 and

[issue42828] Python readline module

2021-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: This should be discussed on a user forum, not in our bug tracker. -- nosy: +gvanrossum resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue42829] get_type_hints throws for nested class with __future__ annotations

2021-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: If you want this to work you have to pass the namespace where B is defined as locals to get_type_hint(). The recommended approach is to make B a global class; where that is not possible (as in your second example) you should chose a different name. We're

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2021-01-05 Thread John Beeler
John Beeler added the comment: For what it's worth, a library I use currently hacks in this functionality by accessing the private method _create_connection_transport directly. This is done to allow a SOCK_RAW to be passed (which is itself required to then enable asyncio to be used for

NumPy 1.19.5 released

2021-01-05 Thread Charles R Harris
Hi All, On behalf of the NumPy team I am pleased to announce the release of NumPy 1.19.5. NumPy 1.19.5 is a short bugfix release. Apart from fixing several bugs, the main improvement is an update to OpenBLAS 0.3.13 that works around the Windows 2004 fmod bug while not breaking execution on other

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2021-01-05 Thread Géry
Géry added the comment: @james.oldfield > What that answer doesn't mention is that, even with even with > isolation_mode=None, it's perfectly possible to start a transaction, which > takes the SQLite engine out of autocommit mode. Exactly, so since autocommit=True is equivalent to

[issue42831] IDLE fix colours for MacOS dark mode

2021-01-05 Thread E. Paine
E. Paine added the comment: I have also done a grep and believe the other affected parts from the user's perspective are the debugger (I haven't checked if Mark's version also suffers), the help dialog and hover tip (e.g. over the squeezer button). > Would it work to just remove those

[issue36543] Remove old-deprecated ElementTree features (part 2)

2021-01-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not understand what this discussion in a long-closed article is about. If you propose to add warning, I am against it. You are against removing the module. Well, the module will not be removed, the warning is no longer needed. The issue is closed. I

[issue42531] importlib.resources.path() raises TypeError for packages without __file__

2021-01-05 Thread William Schwartz
William Schwartz added the comment: @jaraco Did you have any other questions after my comments in msg382423? Do you think you or someone else could review PR 23611? Thanks! -- ___ Python tracker

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2021-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I think there's a bit of a misunderstanding here. When relying on a DB-API driver's transaction API, you are not allowed to issue separate transaction commands to the DB backend via the .execute() methods. You have to use conn.commit() and conn.rollback().

[issue42831] IDLE fix colours for MacOS dark mode

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: This might be related to #7949, about KDE/GTK dark themes. In general, IDLE only controls colors for Shell and editor windows, leaving dialogs to system default. This appears to be true for the settings and search dialogs. 'About' is unusual in having some

[issue36543] Remove old-deprecated ElementTree features (part 2)

2021-01-05 Thread Christian Heimes
Christian Heimes added the comment: Apparently my defusedxml package is low-quality code... Anyhow PEP 387 has clear rules how to handle incompatible changes. Every core dev has to follow these rules. You cannot simply ignore the rule, because you don't like it. If you want to change the

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2021-01-05 Thread James Oldfield
James Oldfield added the comment: > Yes if you are talking about SQLite, the database ENGINE I sure was! In this comment I will stick to saying either "SQLite engine" or "sqlite3 driver" as appropriate, hopefully that will be clearer. > But here I am talking about SQLite3, the Python

[issue41818] Lib/pty.py major revision

2021-01-05 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: Thank you for the fix. That test was created by modifying an existing test which already had that issue; it is documented in a comment by user nnorwitz in the file. If your solution resolves the problem for all the tests in "class PtyTest", then can you

[issue36543] Remove old-deprecated ElementTree features (part 2)

2021-01-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Deprecation warning may help users of old lower-quality code at the cost of harming users of old higher-quality code. It does not look right to me. -- ___ Python tracker

[issue42833] Lib/urllib/request.py: digest algorithm should be case insensitive

2021-01-05 Thread Pierre Tardy
Change by Pierre Tardy : -- pull_requests: +22953 status: pending -> open pull_request: https://github.com/python/cpython/pull/24122 ___ Python tracker ___

[issue42834] [subinterpreters] Convert "global" static variable caches in _json to heap variables

2021-01-05 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +22952 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24121 ___ Python tracker ___

  1   2   >