[issue42514] Relocatable framework for macOS

2021-07-01 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I guess Ned and I are the only core devs that would be vaguely interested in 
working on this.  I have no active plans to work on this.

Having a relocatable framework would be nice, but doing this in a way that 
maintains all functionality, esp. w.r.t. the Python executable.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44542] Python 3.9.6 Can't Find `coverage`

2021-07-01 Thread Floating Sunfish


New submission from Floating Sunfish :

`coverage` does not work in Python 3.9.6 (but it does in Python 3.9.5).

It doesn't seem bundled with 3.9.6 because you can install it with `pip` (which 
normally says that it's already installed and doesn't install anything).

Note that `coverage.exe` and its variants are all present in 
"C:\Python39\Scripts."

The error I get is:

Fatal error in launcher: Unable to create process using 
'"c:\python39\python.exe" "C:\Python39\Scripts\coverage.exe" run --source=. -m 
unittest -f ': The system cannot find the file specified.

--
messages: 396811
nosy: sunfishscans
priority: normal
severity: normal
status: open
title: Python 3.9.6 Can't Find `coverage`
type: behavior
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44542] Python 3.9.6 Can't Find `coverage`

2021-07-01 Thread Floating Sunfish


Floating Sunfish  added the comment:

Turns out my Python Launcher wasn't uninstalled properly.
Uninstalling it and reinstalling Python 3.9.6 resolved the issue.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44313] Generate LOAD_ATTR+CALL_FUNCTION instead of LOAD_METHOD+CALL_METHOD for imports

2021-07-01 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2021-07-01 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
nosy: +Matthew Rocklin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44543] Remove depreciated logging.warn() method

2021-07-01 Thread Harry


New submission from Harry :

The logging.warn() method as an alias for logging.warning() is a mysterious 
function in the logging module, as far as I can tell it was depreciated the 
minute it was added, originally only added for backwards compatibility.

Up until 3.3 it was undocumented, and after that it was Depreciated and was set 
to be removed in 3.4 (https://bugs.python.org/issue13235). At this point, I 
believe this function only serves to create confusion as an obscure alternative 
to logging.warning() and should probably be removed in 3.11.

--
components: Library (Lib)
messages: 396813
nosy: Harry-Lees
priority: normal
severity: normal
status: open
title: Remove depreciated logging.warn() method
type: enhancement
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-01 Thread Yurii Karabas


Change by Yurii Karabas <1998uri...@gmail.com>:


--
keywords: +patch
pull_requests: +25542
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26980

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2021-07-01 Thread Christian Heimes


Change by Christian Heimes :


--
assignee: christian.heimes -> 
components:  -Installation, Interpreter Core, Library (Lib), Windows, XML, 
ctypes, email
versions: +Python 3.11 -Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43216] Removal of @asyncio.coroutine in Python 3.11

2021-07-01 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset a1092f62492a3fcd6195bea94eccf8d5a300acb1 by Illia Volochii in 
branch 'main':
bpo-43216: Remove @asyncio.coroutine (GH-26369)
https://github.com/python/cpython/commit/a1092f62492a3fcd6195bea94eccf8d5a300acb1


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-07-01 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +25543
pull_request: https://github.com/python/cpython/pull/26981

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43234] Prohibit passing non-ThreadPoolExecutor executors to loop.set_default_executor following a deprecation

2021-07-01 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset ddd5f36971e2ffe20cc3f4b408425c847d168646 by Illia Volochii in 
branch 'main':
bpo-43234: Prohibit non-ThreadPoolExecutor in loop.set_default_executor 
(GH-24540)
https://github.com/python/cpython/commit/ddd5f36971e2ffe20cc3f4b408425c847d168646


--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43234] Prohibit passing non-ThreadPoolExecutor executors to loop.set_default_executor following a deprecation

2021-07-01 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you for your contribution Illia.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44543] Remove depreciated logging.warn() method

2021-07-01 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2021-07-01 Thread jakirkham


Change by jakirkham :


--
nosy: +jakirkham

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2021-07-01 Thread Andrei Kulakov


New submission from Andrei Kulakov :

https://docs.python.org/3.11/library/textwrap.html

The 3 functions - wrap, fill, shorten -- have a signature like `(..., 
**kwargs)`, where kwargs are instance attrs of TextWrap. It would be better to 
list all possible args in the signature because:

 - more convenient for users rather than scrolling back and forth between 
description of the function and the list under TextWrap

 - the list under TextWrap is so long it doesn't fit on one screen. It would be 
great to have a compact list in the signature of these 3 functions

 - it's confusing -- at first sight, it seems like **kwargs will be taken in to 
be used by a subclass or maybe stored as attrs on the instance and not used, 
and it seems like arbitrary kwargs can be given.

 - the only reason it was done so, I guess, is that the list is long and 
unwieldy. But that's also the reason why the listing under TextWrap takes up 
more than a screenful and so more of an argument to have a compact list in the 
signature.

 - in case of fill, some args are a no-op, so they can be omitted from the 
signature, that will make it much easier to see all effective arguments.

--
assignee: docs@python
components: Documentation
messages: 396817
nosy: andrei.avk, docs@python
priority: normal
severity: normal
status: open
title: Add full list of possible args to textwrap: wrap, fill, shorten
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2021-07-01 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Additionally, I think this issue contributes to likelihood of people running 
into https://bugs.python.org/issue43518 or similar issues with these 3 
functions.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13788] os.closerange optimization

2021-07-01 Thread William Manley


William Manley  added the comment:

Linux has a close_range syscall since v5.9 (Oct 2020): 
https://man7.org/linux/man-pages/man2/close_range.2.html

--
nosy: +wmanley

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44543] Remove depreciated logging.warn() method

2021-07-01 Thread Jack DeVries


Change by Jack DeVries :


--
keywords: +patch
nosy: +jack__d
nosy_count: 2.0 -> 3.0
pull_requests: +25544
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26982

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44543] Remove depreciated logging.warn() method

2021-07-01 Thread Jack DeVries


Jack DeVries  added the comment:

I'm not sure if there will be interest in merging this PR since it hasn't 
happened in all this time, but then again we've been emitting deprecation 
warnings from these functions and methods for a *decade* now.

If the decision at this point is still not to move forward with removal, we 
should just remove the deprecation warnings and document it as a supported and 
bona-fide alias. Should that be the case, I'll close the PR I just created and 
get started with that work instead.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43518] textwrap.shorten does not always respect word boundaries

2021-07-01 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Also see https://bugs.python.org/issue44544 which I think will help users avoid 
this issue.

--
nosy: +andrei.avk

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44545] ASSESSMENT TOOLS

2021-07-01 Thread skoolbeep

New submission from skoolbeep :

Online assessment tools are a necessary part of remote learning education. If 
the teachers and professors have a firm hold on a student’s learning graph, he 
can do wonders in life!

--
messages: 396822
nosy: skoolbeep
priority: normal
severity: normal
status: open
title: ASSESSMENT TOOLS

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34629] Python3 regression for urllib(2).urlopen(...).fp for chunked http responses

2021-07-01 Thread Jonathan Schweder


Jonathan Schweder  added the comment:

Hello @tkruse, I have made some research and found that when using the Chunked 
transfer encoding [1], each chunk is preceded by its size in bytes, something 
that really happen if you check the content of one downloaded file from the 
example you provided [2]. So far, I would say that this is not a bug, it is 
just how the transfer encoding works.

[1]: https://en.wikipedia.org/wiki/Chunked_transfer_encoding
[2]: https://gist.github.com/jaswdr/95b2adc519d986c00b17f6572d470f2a

--
nosy: +jaswdr

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44545] ASSESSMENT TOOLS

2021-07-01 Thread skoolbeep

skoolbeep  added the comment:

Online assessment tools are a necessary part of remote learning education. If 
the teachers and professors have a firm hold on a student’s learning graph, he 
can do wonders in life!
https://www.skoolbeep.com/blog/conduct-online-assessments-effectively/

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44545] spam

2021-07-01 Thread Mark Dickinson


Change by Mark Dickinson :


--
stage:  -> resolved
status: open -> closed
title: ASSESSMENT TOOLS -> spam

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44545] spam

2021-07-01 Thread Mark Dickinson


Change by Mark Dickinson :


--
Removed message: https://bugs.python.org/msg396824

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44545] spam

2021-07-01 Thread Mark Dickinson


Change by Mark Dickinson :


--
Removed message: https://bugs.python.org/msg396822

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44546] ASSESSMENT TOOLS

2021-07-01 Thread skoolbeep

New submission from skoolbeep :

We all are familiar with the age-old algorithm where people emphasize on 
grades. Grades matter, but so does an understanding of the topic. Online 
assessment tools are a necessary part of remote learning education. If the 
teachers and professors have a firm hold on a student’s learning graph, he can 
do wonders in life!
https://www.skoolbeep.com/blog/conduct-online-assessments-effectively/

--
messages: 396825
nosy: skoolbeep
priority: normal
severity: normal
status: open
title: ASSESSMENT TOOLS

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44313] Generate LOAD_ATTR+CALL_FUNCTION instead of LOAD_METHOD+CALL_METHOD for imports

2021-07-01 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
pull_requests: +25545
pull_request: https://github.com/python/cpython/pull/26983

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44546] spam

2021-07-01 Thread Mark Dickinson


Change by Mark Dickinson :


--
stage:  -> resolved
status: open -> closed
title: ASSESSMENT TOOLS -> spam

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44546] spam

2021-07-01 Thread Mark Dickinson


Change by Mark Dickinson :


--
Removed message: https://bugs.python.org/msg396825

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44313] Generate LOAD_ATTR+CALL_FUNCTION instead of LOAD_METHOD+CALL_METHOD for imports

2021-07-01 Thread Batuhan Taskaya


Batuhan Taskaya  added the comment:


New changeset 0d7f61ddb074659d8c18c8f5ac86a6a18e41f9e5 by Batuhan Taskaya in 
branch 'main':
bpo-44313: bump up magic (#26983)
https://github.com/python/cpython/commit/0d7f61ddb074659d8c18c8f5ac86a6a18e41f9e5


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44547] fraction.Fraction does not implement __int__.

2021-07-01 Thread Michael Amrhein


New submission from Michael Amrhein :

While int, float, complex and Decimal implement __int__, Fraction does not. 
Thus, checking for typing.SupportsInt for fractions fails, although 
int() succeeds, because Fraction implements __trunc__.
This looks inconsistent.
Easiest fix seems to be: Fraction.__int__ = Fraction.__trunc__

--
components: Library (Lib)
messages: 396827
nosy: mamrhein
priority: normal
severity: normal
status: open
title: fraction.Fraction does not implement __int__.
type: behavior
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44548] ttk Indeterminate Progressbar Not Animating Correctly After `start`

2021-07-01 Thread Phil Soucheray


New submission from Phil Soucheray :

After running `start` on an indeterminate Progressbar, it animates to one side, 
goes back to the other and then right before it reaches the end it disappears. 
I've attached a sample script below and a screen recording. This is running on 
macOS 11.3 and python 3.9.6 with the tkinter version that is packaged with the 
3.9.6 installer. 


```
from tkinter import *
from tkinter.ttk import *
import time

window = Tk()
window.title('Test')
window.geometry('400x250+1000+300')


pb = Progressbar(window, orient=HORIZONTAL, length=100, mode='indeterminate')
pb.pack(expand=True)

Button(window, text='Start', command=pb.start).pack()

window.mainloop()
```

--
components: Tkinter
files: Screen Recording 2021-07-01 at 1.11.26 PM.mov
messages: 396828
nosy: souch3
priority: normal
severity: normal
status: open
title: ttk Indeterminate Progressbar Not Animating Correctly After `start`
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file50137/Screen Recording 2021-07-01 at 
1.11.26 PM.mov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44479] Windows build doesn't regenerate some files

2021-07-01 Thread Steve Dower


Change by Steve Dower :


--
keywords: +patch
pull_requests: +25546
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26984

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-07-01 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

In inherit_slots() in Objects/typeobject.c, Py_TPFLAGS_HAVE_VECTORCALL 
inheritance depends on if the base type is a heap type or not. This aligns with 
PEP 590[1]:

  Heap types never inherit the vectorcall protocol because that
  would not be safe (heap types can be changed dynamically).

AFAICS, inherit_slots() should now use Py_TPFLAGS_IMMUTABLETYPE to decide if 
Py_TPFLAGS_HAVE_VECTORCALL can be inherited, and the PEP should be updated.


- [1] https://www.python.org/dev/peps/pep-0590/#subclassing

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-07-01 Thread Guido van Rossum


Guido van Rossum  added the comment:

+1--
--Guido (mobile)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39710] "will be returned as unicode" reminiscent from Python 2

2021-07-01 Thread Hubert Badocha


Change by Hubert Badocha :


--
nosy: +badochov
nosy_count: 9.0 -> 10.0
pull_requests: +25547
pull_request: https://github.com/python/cpython/pull/26985

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2021-07-01 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

> - in case of fill, some args are a no-op, so they can be omitted from the 
> signature, that will make it much easier to see all effective arguments.

I was mistaken here, this applies to `shorten`, not to `fill` func.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44548] ttk Indeterminate Progressbar Not Animating Correctly After `start`

2021-07-01 Thread Ned Deily


Ned Deily  added the comment:

I can reproduce this behavior when using the current default 3.9.x macOS 
installer which uses Tk 8.6.8. It appears to work correctly if you instead use 
the alternate 3.9.x macOS universal2 installer which bundles Tk 8.6.11. The 
universal2 variant will be the default for Python 3.10 and may likely become 
the default for a future 3.9.x release. See if it solves the problem for you.

https://www.python.org/downloads/release/python-396/

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27657] urlparse fails if the path is numeric

2021-07-01 Thread Leif Walsh


Leif Walsh  added the comment:

I don't mean to reopen a can of worms, but this affects requests, which I 
reported to them here: https://github.com/psf/requests/issues/5855

--
nosy: +leif.walsh

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44548] ttk Indeterminate Progressbar Not Animating Correctly After `start`

2021-07-01 Thread Phil Soucheray


Phil Soucheray  added the comment:

It looks like that has done the trick. Is there an expected time when there 
won't be different installers?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43518] textwrap.shorten does not always respect word boundaries

2021-07-01 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Some observations:

 - Just to be clear (because annesylvie implied this is caused by exclamation 
marks), punctuation at the end of the word is not required to hit this bug:

In [44]: shorten("hello universe", width=7, placeholder="")
Out[44]: 'hello u'

(so for example adding an option to break at the boundary of word/punctuation 
would not fix this issue)

 - It would be good to fix this because my guess would be most code using 
`shorten` does it with default value of break_long_words, and this issue is 
easy to miss in testing.

 - My guess is that the goal of shorten is to return a shortened (okay, this 
much is obvious :) ) but representative snapshot of the text.

 - A user might also expect that it's consistent with TextWrapper, since it's 
essentially a wrapper around TextWrapper :)

Therefore if we make a backwards incompatible change, the following would be 
also nice to have, perhaps requiring a new arg:

width=5
 1. universe => unive
 2. hi universe => hi
 3. hi universe => hi un
 4. universe => universe # allow longer if can't get width without breaking 
words

#4 would be consistent with TextWrapper handling of `break_long_words=False`

Some option (perhaps new arg?) should produce both #1 and #2, the idea being 
that we remove the Nth word if it doesn't fit, but break the 1st word so that 
there's still representation of text rather than a blank.

#3 would be the existing `break_long_words=True`, respecting width but 
providing max possible representation.

 - Generally speaking, shortening into one line is somewhat different than 
splitting into multiple lines, so it results in awkwardness when shortening is 
done by splitting into lines and keeping the first line.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44548] ttk Indeterminate Progressbar Not Animating Correctly After `start`

2021-07-01 Thread Jim Jewett


Jim Jewett  added the comment:

It sounds like the fix is a configuration change already included in the next 
version, so ... I think that counts as a fix.

--
nosy: +Jim.Jewett
resolution:  -> fixed
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-07-01 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset a7e251b07aa5f1a858a3e791a30dea78e93ab728 by Dong-hee Na in branch 
'main':
bpo-43425: Update setup.py not to use distutils.log (GH-26969)
https://github.com/python/cpython/commit/a7e251b07aa5f1a858a3e791a30dea78e93ab728


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-07-01 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25548
pull_request: https://github.com/python/cpython/pull/26986

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-07-01 Thread miss-islington


miss-islington  added the comment:


New changeset 956f1fc89475f6c8252a9eb0689bcf0eb69c15ea by Miss Islington (bot) 
in branch '3.10':
bpo-43425: Update setup.py not to use distutils.log (GH-26969)
https://github.com/python/cpython/commit/956f1fc89475f6c8252a9eb0689bcf0eb69c15ea


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum


Guido van Rossum  added the comment:

I'm going to merge both PRs.

--
nosy: +gvanrossum

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44547] fraction.Fraction does not implement __int__.

2021-07-01 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

Seems like an equally reasonable solution would be to make class's with 
__trunc__ but not __int__ automatically generate a __int__ in terms of 
__trunc__ (similar to __str__ using __repr__ when the latter is defined but not 
the former). The inconsistency is in both methods existing, but having the 
equivalence implemented in int() rather than in the type (thereby making 
SupportsInt behave unexpectedly, even though it's 100% true that obj.__int__() 
would fail).

--
nosy: +josh.r

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44548] ttk Indeterminate Progressbar Not Animating Correctly After `start`

2021-07-01 Thread Ned Deily


Ned Deily  added the comment:

Phil, there are still some as yet unresolved differences between using Tk 8.6.8 
and 8.6.11, both positive and negative, and there are a few differences between 
using the two variants under all conditions that we want to resolve. So, at the 
moment, we will continue to supply the two variants for 3.9.x bugfix releases 
with the traditional (non-universal2) variant remaining the default but that 
may change in the future.

--
resolution: fixed -> third party
stage:  -> resolved
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 11.0 -> 12.0
pull_requests: +25549
pull_request: https://github.com/python/cpython/pull/26987

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25550
pull_request: https://github.com/python/cpython/pull/26988

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 85b920498b42c69185540ecc2f5c4907fd38d877 by finefoot in branch 
'main':
bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341)
https://github.com/python/cpython/commit/85b920498b42c69185540ecc2f5c4907fd38d877


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum


Guido van Rossum  added the comment:

(The original PR was too stale to merge, so I just merged the combined PR and 
added a Co-Authored-By header.)

Now doing the backports.

--
resolution:  -> fixed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 3ec3e0f83c34eda1ad89b731e68f4a22a5f39333 by Miss Islington (bot) 
in branch '3.10':
bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) (#26987)
https://github.com/python/cpython/commit/3ec3e0f83c34eda1ad89b731e68f4a22a5f39333


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25551
pull_request: https://github.com/python/cpython/pull/26989

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 8aa45de6c6d84397b772bad7e032744010bbd456 by Miss Islington (bot) 
in branch '3.9':
bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) (GH-26989)
https://github.com/python/cpython/commit/8aa45de6c6d84397b772bad7e032744010bbd456


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum


Guido van Rossum  added the comment:

Merged and backported to 3.10, 3.9. Let's forget about 3.8 or earlier (Lukasz 
removed the needs-backport-to-3.8 and -3.7 labels from GH-16341 on May 4).

I should note that landing this was not a great experience:

- There's a closed PR with the fix and another PR with a confusing title that 
has the fix plus a test.

- The discussion on the issue and on the PRs was confusing. There was mention 
of a segfault reported on StackOverflow (but later it seemed to be a false 
alarm about a different fix), and in this issue Martijn Pieters brings up the 
question of whether AutoProxy is even needed, which is quite irrelevant to the 
bugfix.

- It's unclear from reading the code in the PR how the test relates to the fix.

- Therefore I tried to verify that the test actually failed if I undid the fix. 
But I found that it's rather unclear how to run the multiprocessing tests (and 
just those). And once I figured it out, they take a *long* time to run (there's 
a bug about that too somewhere).

- I tried to revive the original PR (to give credit to its author) but found 
that it can't be reopened because of the master->main branch rename.

- The open PR had some failing required tests so I couldn't land it without 
closing and reopening. More waiting. Eventually the tests passed and I could 
merge. On to the backports.

- One of the backport PRs randomly didn't seem to get some test statuses, so I 
tried to restart them by closing and reopening the PR -- only to find that miss 
islington deleted the branch as soon as I closed the PR, so I couldn't reopen 
it either. So I had to delete and re-add the "needs-backport-to-3.9" label to 
the main PR, and wait.

- Oh, and somehow there's a codecov test that always fails (in one of the 
original PRs, Antoine says to ignore it), so the backports didn't get 
auto-merged, so I had to wait for the other tests to pass and manually merge.

The one positive experience was Martijn Pieters' long explanation on 
StackOverflow of what went wrong and why this was the correct fix. (Maybe he 
elaborated a bit much on the monkeypatch. :-) This treatise gave me the 
confidence that the fix was correct (enough) and should be merged.

Parting shot: IMO we should not have accepted multiprocessing into the stdlib. 
It is a very useful module, but very complex, and would have been better off as 
a third-party module, with a more focused crew of maintainers and a quicker 
release cycle. (Almost everyone who uses multiprocessing needs to install other 
packages anyway.)

--
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 
3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com