Re: Covariance matrix syntax

2020-10-18 Thread Christian Gollwitzer
Am 19.10.20 um 07:23 schrieb Meghna Karkera: I am unable to find the *formula for covariance* used in np.cov syntax in PYTHON given in link https://numpy.org/doc/stable/reference/generated/numpy.cov.html. Could you please help me out. As said, you should click on the link [source] just at

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-18 Thread Tim Peters
Tim Peters added the comment: I confess I _assumed_ all along that you were generalizing the current code's Sunday trick to 7-bit equivalence classes (up from 32 bits total) and 64K possible shift counts (up from just 2 total possibilities: 1 or len(needle)+1). The Sunday trick couldn't

Re: Covariance matrix syntax

2020-10-18 Thread Meghna Karkera
Dear Sir I am unable to find the *formula for covariance* used in np.cov syntax in PYTHON given in link https://numpy.org/doc/stable/reference/generated/numpy.cov.html. Could you please help me out. Thanks Meghna On Tue, Oct 13, 2020 at 11:46 AM Christian Gollwitzer wrote: > Am 13.10.20 um

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: I posted the example thinking that having a concrete walkthrough might be good for discussion, and it looks like it was. ;-) This makes me curious how a simplified-but-not-as-simplified-as-the-status-quo Sunday algorithm would fare: using the Sunday

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: > Dennis, I think that's expected, right? Two-way on its own can exploit > nothing about individual characters - it only preprocesses the needle to > break the possibility for quadratic-time behavior due to periods in the > needle. Yes, that's correct. >

[issue40814] Update typing module documentation based on PEP 585

2020-10-18 Thread Ken Jin
Ken Jin added the comment: The PR should be ready for review now. Thanks for your patience. -- ___ Python tracker ___ ___

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-18 Thread Tim Peters
Tim Peters added the comment: Dennis, I think that's expected, right? Two-way on its own can exploit nothing about individual characters - it only preprocesses the needle to break the possibility for quadratic-time behavior due to periods in the needle. It sounds like you switched the

[issue42077] Some absolute domain name not work in urllib

2020-10-18 Thread Zheng SHAO
Change by Zheng SHAO : -- title: Some Absolute domain name not work in urllib -> Some absolute domain name not work in urllib ___ Python tracker ___

[issue42077] Some Absolute domain name not work in urllib

2020-10-18 Thread Zheng SHAO
New submission from Zheng SHAO : ``` import ssl import urllib.request url_string = "https://kubernetes.default.svc.cluster.local./api/; ctx = ssl._create_unverified_context() with urllib.request.urlopen(url_string, context=ctx) as f: f.read() ``` In running this sample code will got a

[issue41982] [Python 3.8] Wrong location flagged as syntax error

2020-10-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing this as the new parser in Python3.9+ handles this correctly -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: FWIW, one of the "# Made the spaces line up" is actually a "skip ahead by the needle length". -- ___ Python tracker ___

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: Below is one of the tests that got run when I happened to import something, and I thought it was a good illustration of the Boyer-Moore bad character shift table. It's worth noting in particular that the table is the dominant force for speed in some common

Re: Simple question - end a raw string with a single backslash ?

2020-10-18 Thread Michael Torrie
On 10/18/20 5:37 PM, Mladen Gogala via Python-list wrote: > On Sun, 18 Oct 2020 12:19:18 -0600, Michael Torrie wrote: > >> Python certainly is procedural. A script starts at the top and executes >> through to the bottom and ends, barring any flow control in the middle. >> Like Perl you can use

[issue40484] Document existing compiler flags under ast

2020-10-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +21723 pull_request: https://github.com/python/cpython/pull/22758 ___ Python tracker

[issue40484] Document existing compiler flags under ast

2020-10-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 155938907c2b3df71608ddeaa0a43d2ec1f2c699 by Batuhan Taskaya in branch 'master': bpo-40484: Document compiler flags under AST module (GH-19885) https://github.com/python/cpython/commit/155938907c2b3df71608ddeaa0a43d2ec1f2c699 --

Re: How to expand and flatten a nested of list of dictionaries of varied lengths?

2020-10-18 Thread dn via Python-list
If I may, a couple of items of list-etiquette (polite behavior), as I understand them: 1 please reply to the list (cf only myself) because @Mats (who responded earlier) and others on this list are much smarter than me, and might be able to help you more quickly 2 top-posting seems to take the

[issue38947] dataclass defaults behave inconsistently for init=True/init=False when default is a descriptor

2020-10-18 Thread Irit Katriel
Irit Katriel added the comment: I think you may have meant this issue (which is not related to field()): from dataclasses import dataclass from typing import Callable @dataclass(init=True) class Foo: callback: Callable[[int], int] = lambda x: x**2 @dataclass(init=False) class Bar:

Re: Simple question - end a raw string with a single backslash ?

2020-10-18 Thread Mladen Gogala via Python-list
On Sun, 18 Oct 2020 12:19:18 -0600, Michael Torrie wrote: > Python certainly is procedural. A script starts at the top and executes > through to the bottom and ends, barring any flow control in the middle. > Like Perl you can use it in many different ways and paradigms including > OO if you

[issue38947] dataclass defaults behave inconsistently for init=True/init=False when default is a descriptor

2020-10-18 Thread Irit Katriel
Irit Katriel added the comment: If I change Foo in your code to: @dataclass(init=False) class Foo: callback: Callable[[int], int] = lambda x: x**2 Then the same TypeError exception is raised for Foo. If I then change it back (remove the init=False so that it picks up the

[issue42075] Verbose/confusing default format on warnings

2020-10-18 Thread Mithil
Mithil added the comment: I also ran this on Fedora 32, python 3.8.6 and still got the same result. -- ___ Python tracker ___ ___

[issue42076] urllib ResourceWarning in case of usage of FTP

2020-10-18 Thread Serhiy Ivanov
New submission from Serhiy Ivanov : In case when FTP url is successfully connected via default FTPHandler in FTPHandler.connect_ftp then release of this stuff becomes total responsibility of user i.e. socket remains open, which leads to ResourceWarning in the garbage collector, in case if

[issue42075] Verbose/confusing default format on warnings

2020-10-18 Thread Mithil
Mithil added the comment: I ran the file that you linked and this is what it printed. C:\Users\mithi\p\test\file.py:3: UserWarning: Danger danger danger Will Robinson!!! warnings.warn( As you see, the warnings.warn( line is not desirable. More details about my machine - Windows 10 python

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Eryk Sun
Eryk Sun added the comment: > For platform semantics, I'd prefer a link to the CreateProcessW docs, > with advice to read about the lpApplicationName parameter with > respect to `executable` and lpCommandLine with respect to `args` > and the platform search semantics. For example, let's

[issue42075] Verbose/confusing default format on warnings

2020-10-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: 3.9 and older are all in feature freeze, so no changes in behaviour will be considered for them. I'm afraid I cannot replicate the behaviour you describe. When I try, the full warning message is correctly displayed. See the attached file. Importing it

[issue42073] classmethod does not pass "type/owner" when invoking wrapped __get__

2020-10-18 Thread Erik Welch
Change by Erik Welch : -- keywords: +patch pull_requests: +21720 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22757 ___ Python tracker ___

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2020-10-18 Thread Erik Welch
Change by Erik Welch : -- nosy: +eriknw nosy_count: 8.0 -> 9.0 pull_requests: +21721 pull_request: https://github.com/python/cpython/pull/22757 ___ Python tracker ___

[issue42074] setup error on windows

2020-10-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi CaptainMitsumoto, Did you follow the instructions given by the installer to read the log file? We don't have access to your log file, only you do. Can you see what file cannot be found? Did you try some basic googling? I'm not a Windows guru, but this:

[issue42074] setup error on windows

2020-10-18 Thread Steven D'Aprano
Change by Steven D'Aprano : -- components: +Installation -Unicode type: crash -> behavior ___ Python tracker ___ ___

[issue42075] Verbose/confusing default format on warnings

2020-10-18 Thread Mithil
New submission from Mithil : The default format prints a lot of details like filename, line number, and the source code on that line. A particular case where the warn message is written on the next line like - warn( "Message here") Will only print warn( as the source code and not the

[issue42074] setup error on windows

2020-10-18 Thread Steven D'Aprano
Change by Steven D'Aprano : -- title: f***ing setup failed is driving me insane -> setup error on windows ___ Python tracker ___

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-10-18 Thread Chris Jerdonek
Change by Chris Jerdonek : -- pull_requests: +21719 pull_request: https://github.com/python/cpython/pull/22756 ___ Python tracker ___

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2020-10-18 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: FYI, WIP branch for this bpo is here: https://github.com/erlend-aasland/cpython/commits/bpo-42064/all This currently includes items 1 though 6. I'll update the WIP branch with a draft of items 7 and 8, hopefully tomorrow. --

[issue42074] f***ing setup failed is driving me insane

2020-10-18 Thread CaptainMitsumoto
New submission from CaptainMitsumoto : I am frustrated now. I was about to install Python 3.9.0 in my gaming laptop then I get this thing. I tried to google the hex error and the error name. I tried getting help in Python Discord but no good luck, they're weren't any good solutions. I got

[issue42060] Usage of assert in http/client.py

2020-10-18 Thread Vedran Čačić
Vedran Čačić added the comment: If I understand correctly, those are _private methods_ (names start with underscore). In such cases, asserts can be completely fine, since the library writer controls the situations where the method is called. If it is never called with _UNKNOWN argument,

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Eryk Sun
Eryk Sun added the comment: > You can build a cross-platform wrapper on top of native behaviour > (witness `shutil.which`) but you can't do the opposite. Nothing would prevent adding a parameter to use the platform semantics, if that had been in the design from the outset. But it's not

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Tal Einat added the comment: New changeset 7c949020ef2520d7a7cbc978f0b34423e6c2a94c by Anthony Sottile in branch '3.9': bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910)

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Tal Einat added the comment: New changeset 1c5a65723e623be32e246f58b8797a263f616295 by Anthony Sottile in branch '3.8': bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910)

Re: How to expand and flatten a nested of list of dictionaries of varied lengths?

2020-10-18 Thread Mats Wichmann
On 10/18/20 2:09 PM, Shaozhong SHI wrote: > Even worse is that, in some cases, an addition called serviceRatings as a > key occur with new data unexpectedly. > > How to produce a robust Python/Panda script to coping with all these? > > Regards, > > David > > u'historicRatings': [{u'overall':

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2020-10-18 Thread Tal Einat
Tal Einat added the comment: Thanks for the report and the PR, Stein! And thanks for the PR for 3.8, Irit! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2020-10-18 Thread Tal Einat
Tal Einat added the comment: New changeset 1a3f7c042a32fb813835243bd7f96e47c665bfdc by Irit Katriel in branch '3.8': [3.8] bpo-32498: Improve exception message on passing bytes to urllib.parse.unquote (GH-22746)

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Tal Einat added the comment: Many thanks for the report and the PR, Anthony! Serhiy, do you think it is worth also calling abspath in the profile._Utils as you mentioned, for cases where those may be called directly? -- ___ Python tracker

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Change by Tal Einat : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +21718 pull_request: https://github.com/python/cpython/pull/22755 ___ Python tracker ___

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +21717 pull_request: https://github.com/python/cpython/pull/22754 ___ Python tracker ___

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +21716 pull_request: https://github.com/python/cpython/pull/22753 ___ Python tracker ___

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +21715 pull_request: https://github.com/python/cpython/pull/22752 ___ Python tracker ___

[issue42070] I think the rationale to keep IsoCalendarDate private from the pickle perspective should get revisited

2020-10-18 Thread Paul Ganssle
Paul Ganssle added the comment: That's a reasonable enough objection, though what use case do you have for storing the IsocalendarDate object? The main reason we switched to using a named tuple like this was because the vast majority of uses of `isocalendar()` that I saw were people doing

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Tal Einat added the comment: New changeset 3c0ac18504cfeed822439024339d5717f42bdd66 by Anthony Sottile in branch 'master': bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910)

Re: How to expand and flatten a nested of list of dictionaries of varied lengths?

2020-10-18 Thread dn via Python-list
On 19/10/2020 09:09, Shaozhong SHI wrote: Even worse is that, in some cases, an addition called serviceRatings as a key occur with new data unexpectedly. "Even worse" than what? Do you need to keep a list of acceptable/applicable/available keys? (and reject or deal with others in some

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Paul Moore
Paul Moore added the comment: Exactly. Why isn't the current directory searched? Why isn't foo/bar searched for on PATH? Why is it possible for the user to accidentally remove system commands from PATH and lose access to them? Any system is confusing and surprising to users only familiar

[issue42073] classmethod does not pass "type/owner" when invoking wrapped __get__

2020-10-18 Thread Erik Welch
New submission from Erik Welch : The following is new to Python 3.9, and I consider the implementation incomplete. I have code that works for Python 3.8 and before, but not for Python 3.9: "Class methods can now wrap other :term:`descriptors ` such as :func:`property`."

[issue42072] requests

2020-10-18 Thread Grisha Lukovnikov
New submission from Grisha Lukovnikov : Traceback (most recent call last): File "C:\Users\dns\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen httplib_response = self._make_request( File

How to expand and flatten a nested of list of dictionaries of varied lengths?

2020-10-18 Thread Shaozhong SHI
Even worse is that, in some cases, an addition called serviceRatings as a key occur with new data unexpectedly. How to produce a robust Python/Panda script to coping with all these? Regards, David u'historicRatings': [{u'overall': {u'keyQuestionRatings': [{u'name': u'Safe', u'rating':

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Eryk Sun
Eryk Sun added the comment: > Also, why would we document the Windows rules, but not the POSIX > rules? They are arguably just as strange to someone who doesn't > know them. POSIX rules are simply to search PATH for the filename as passed, and if it has a slash in it, the path is resolved

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Paul Moore
Paul Moore added the comment: Well, I'm not convinced that using `shutil.which` is the right answer for anything other than "python". And even there, I'd recommend using `sys.executable` over `shutil.which` in pretty much every case. My view is that if we ignore the "weirdness" introduced

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Eryk Sun
Eryk Sun added the comment: > I don't think we should document this level of detail But a lot of it -- most of it -- is also strange behavior that no one would expect without reading about it somewhere. Most users of subprocess.Popen() will never wade through the documentation of

[issue42071] Shelve should default to the default Pickle protocol instead of hardcoding version 3

2020-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: This seems reasonable to me. There might be some issue is existing code where different versions of Python are sharing the same shelf, but I don't think this is common. -- nosy: +rhettinger ___ Python tracker

[issue42071] Shelve should default to the default Pickle protocol instead of hardcoding version 3

2020-10-18 Thread Zackery Spytz
Zackery Spytz added the comment: Unfortunately, this is a duplicate of bpo-34204 (which already has a pull request). -- nosy: +ZackerySpytz resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Bump the default pickle protocol in shelve

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Paul Moore
Paul Moore added the comment: I don't think we should document this level of detail, both because it's basically Windows standard behaviour and therefore not up to us to document, and because it's *way* too overwhelming for the average user. --

[issue42071] Shelve should default to the default Pickle protocol instead of hardcoding version 3

2020-10-18 Thread Marco Castelluccio
Change by Marco Castelluccio : -- keywords: +patch pull_requests: +21713 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22751 ___ Python tracker

[issue42071] Shelve should default to the default Pickle protocol instead of hardcoding version 3

2020-10-18 Thread Marco Castelluccio
New submission from Marco Castelluccio : Shelve is currently defaulting to Pickle protocol 3, instead of using Pickle's default protocol for the Python version in use. This way, Shelve's users don't benefit from improvements introduced in newer Pickle protocols, unless they notice it and

Re: File Name issue

2020-10-18 Thread dn via Python-list
On 19/10/2020 05:58, Mladen Gogala via Python-list wrote: On Sun, 18 Oct 2020 21:00:18 +1300, dn wrote: On 18/10/2020 12:58, Mladen Gogala via Python-list wrote: On Sat, 17 Oct 2020 22:51:11 +, Mladen Gogala wrote: BTW, I used this cp /var/log/syslog ./in-file.log #!/usr/bin/env python3

[issue42070] I think the rationale to keep IsoCalendarDate private from the pickle perspective should get revisited

2020-10-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42070] I think the rationale to keep IsoCalendarDate private from the pickle perspective should get revisited

2020-10-18 Thread Msimpasona
New submission from Msimpasona : IsoCalendarDate is pickled as a regular tuple and so requires a slightly different code flow in case the pickle file is used as cache. More details here:

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Ned Deily
Ned Deily added the comment: Marc, thanks for your suggestion. I'm the one responsible for how Tcl and Tk are currently packaged in the python.org framework build and I know exactly what you are suggesting so there is no need for you to make a PR. There were reasons why I chose to set

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Ned Deily
Change by Ned Deily : -- assignee: -> ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Simple question - end a raw string with a single backslash ?

2020-10-18 Thread Michael Torrie
On 10/18/20 11:07 AM, Mladen Gogala via Python-list wrote: > The fundamental > difference between the two languages is that Perl is procedural while > Python is a fully OO language. Discussion of Perl vs Python necessarily > devolves into the discussion of procedural vs OO paradigms. Python

[issue42066] CookieJar cookies should not be sorted

2020-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: The seems reasonable to me. Likely, the sorting was originally added to make the execution order deterministic. Now that dicts remember insertion order, that is no longer necessary. Helpfully, the docs do not specify sorting, so there is no guaranteed

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Eryk Sun
Eryk Sun added the comment: I don't know how much should be documented for subprocess.Popen, but here are the details for how searching works with shell=False (default) and shell=True. For shell=False, the search path used by WinAPI CreateProcessW checks %__APPDIR__%; %__CD__% (unless

[issue37931] crash reimporting posix after Py_Finalize on mac

2020-10-18 Thread STINNER Victor
STINNER Victor added the comment: Right, I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42069] Make filecmp more pythonic

2020-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: In general, we don't accept patches like this: * It risks breaks (in fact the tests are failing. * We're not apply Black's quoting preferences to existing files. * We're not yet adding type annotations through out. * The PR introduces multiple new

[issue28660] TextWrapper break_long_words=True, break_on_hyphens=True on long words

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Simple question - end a raw string with a single backslash ?

2020-10-18 Thread Mladen Gogala via Python-list
On Sun, 18 Oct 2020 16:13:16 +0200, Peter J. Holzer wrote: > > Ah, I see, that the sillyness of Perl's grammar-altering modules (which > let you write Perl in Latin (with proper declensions and conjugations, > of course) or Chinese) has found its way to Python > To tell the truth, I only

Re: File Name issue

2020-10-18 Thread Mladen Gogala via Python-list
On Sun, 18 Oct 2020 21:00:18 +1300, dn wrote: > On 18/10/2020 12:58, Mladen Gogala via Python-list wrote: >> On Sat, 17 Oct 2020 22:51:11 +, Mladen Gogala wrote: >>> On Sat, 17 Oct 2020 18:12:16 -0400, Steve wrote: >>> with open("HOURLYLOG.txt", 'r') as infile: works but, when I

[issue28660] TextWrapper break_long_words=True, break_on_hyphens=True on long words

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b81c833ab51fb7d7f0f8eaace37f60ef7455aa85 by Irit Katriel in branch 'master': bpo-28660: Make TextWrapper break long words on hyphens (GH-22721) https://github.com/python/cpython/commit/b81c833ab51fb7d7f0f8eaace37f60ef7455aa85 --

[issue42069] Make filecmp more pythonic

2020-10-18 Thread Alex
Change by Alex : -- keywords: +patch pull_requests: +21712 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22750 ___ Python tracker ___

[issue42069] Make filecmp more pythonic

2020-10-18 Thread Alex
New submission from Alex : Cleanup the filecmp file add typing and make it more pythonic -- components: Library (Lib) messages: 378877 nosy: alex.briskin priority: normal severity: normal status: open title: Make filecmp more pythonic versions: Python 3.9

[issue38252] Use 8-byte step to detect ASCII sequence in 64bit Windows builds

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Paul Moore
Paul Moore added the comment: OK, PR updated as per discussion. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1040299e9283609f3de0f6e32a0d43458fe7f4f6 by Miss Skeleton (bot) in branch '3.8': bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) (GH-22748) https://github.com/python/cpython/commit/1040299e9283609f3de0f6e32a0d43458fe7f4f6

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a055ced9d43630cadc3c1d5edab0884f2c5131ea by Miss Skeleton (bot) in branch '3.9': bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) (GH-22747) https://github.com/python/cpython/commit/a055ced9d43630cadc3c1d5edab0884f2c5131ea

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Marc Culler
Marc Culler added the comment: Dear Ronald, You are correct that "It is already possible to replace the Tcl/Tk libraries by replacing the relevant files in Python.framework." I know that because I have done it. Moreover, having done it, I know that it is much more difficult than it should

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1bcaa81e520e30f920bd69e46fbf1d67a9107ce1 by Serhiy Storchaka in branch 'master': bpo-20184: Convert termios to Argument Clinic. (GH-22693) https://github.com/python/cpython/commit/1bcaa81e520e30f920bd69e46fbf1d67a9107ce1 --

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +21711 pull_request: https://github.com/python/cpython/pull/22748 ___ Python tracker ___

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c304c9a7efa8751b5bc7526fa95cd5f30aac2b92 by scaramallion in branch 'master': bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) https://github.com/python/cpython/commit/c304c9a7efa8751b5bc7526fa95cd5f30aac2b92 --

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +21710 pull_request: https://github.com/python/cpython/pull/22747 ___ Python tracker

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2020-10-18 Thread Irit Katriel
Irit Katriel added the comment: Ah yes, I missed that. I've pushed a PR for 3.8 that does this: >>> urllib.parse.unquote(b'abc%20def') Traceback (most recent call last): File "", line 1, in File "C:\Users\User\src\cpython\lib\urllib\parse.py", line 635, in unquote raise

[issue38252] Use 8-byte step to detect ASCII sequence in 64bit Windows builds

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a0c603cb9d4dbb9909979313a88bcd1f5fde4f62 by Ma Lin in branch 'master': bpo-38252: Use 8-byte step to detect ASCII sequence in 64bit Windows build (GH-16334) https://github.com/python/cpython/commit/a0c603cb9d4dbb9909979313a88bcd1f5fde4f62

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2020-10-18 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +21709 pull_request: https://github.com/python/cpython/pull/22746 ___ Python tracker ___

[issue42051] plistlib inherits XML vulnerabilities: we should document them

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I missed that there is a handler for EntityDecl. Well, then we can fix this issue in few lines of code. I think it should be backported. We can add private flag (global or class variable) to enable entity declarations, but do not support them in 3.10.

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure what you are trying to accomplish. It is already possible to replace the Tcl/Tk libraries by replacing the relevant files in Python.framework. However: these aren't meant to be user serviceable parts, the copy of Tcl/Tk that we include is

[issue42004] Allow uploading files with SimpleHTTPRequestHandler

2020-10-18 Thread Jake
Jake added the comment: I would find this very useful. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42067] Type annotation in for-loops

2020-10-18 Thread Ken Jin
Ken Jin added the comment: That's an interesting syntax suggestion, you might want to suggest that in the python-ideas mailing list for other people to read about it rather than post it on python bugs. IMO, this isn't really an issue since you can specify the type of the elements in

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Marc Culler
Marc Culler added the comment: Dear Eric, I am aware that python is cross platform. The change that I am proposing would be almost entirely limited to the file: Mac/BuildScript/build-installer.py which is entirely mac-specific. It controls how the Mac installer is constructed.

[issue42051] plistlib inherits XML vulnerabilities: we should document them

2020-10-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: One option is to copy what defusedxml does to forbid a number of unsafe operations, see https://github.com/tiran/defusedxml/blob/eb38a2d710b67df48614cb5098ddb8472289ce6d/defusedxml/ElementTree.py#L68 Defusedxml uses an XMLParser subclass that optionally

Re: Simple question - end a raw string with a single backslash ?

2020-10-18 Thread Peter J. Holzer
On 2020-10-17 21:03:26 -, Mladen Gogala via Python-list wrote: > On Thu, 15 Oct 2020 21:30:15 +, Stefan Ram wrote: > > Tony Flury writes: > >> >>> a = r'end' + chr(92) > > > > Or maybe, > > > > a = r''' > > end\ > > '''[ 1: -1 ] > > > > ? The first and the last line are messy, but

EuroPython 2020: Edited videos are online

2020-10-18 Thread M.-A. Lemburg
We’re happy to announce that all edited videos of this year’s conference are now available on our YouTube channel: * EuroPython 2020 Playlist * https://www.youtube.com/watch?v=CvbQArKEFes=PL8uoeex94UhHgMD9GOCbEHWku7pEPx9fW We have 131 videos available in total, covering a

Re: File Name issue

2020-10-18 Thread Chris Angelico
On Sun, Oct 18, 2020 at 10:32 PM D'Arcy Cain wrote: > > On 10/18/20 5:55 AM, Steve wrote: > > I am not sure if what I did to repair it but the problem is gone. > > A copy/paste/rename was performed on the original code file and now I do not > > get the error. No need for "r" or "\"... > > > >

EuroPython 2020: Edited videos are online

2020-10-18 Thread M.-A. Lemburg
We’re happy to announce that all edited videos of this year’s conference are now available on our YouTube channel: * EuroPython 2020 Playlist * https://www.youtube.com/watch?v=CvbQArKEFes=PL8uoeex94UhHgMD9GOCbEHWku7pEPx9fW We have 131 videos available in total, covering a

  1   2   >