[issue40912] _PyOS_SigintEvent is never closed on Windows

2020-06-11 Thread Tim Golden


Change by Tim Golden :


--
assignee:  -> tim.golden

___
Python tracker 

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



[issue40913] time.sleep ignores errors on Windows

2020-06-11 Thread Tim Golden


Tim Golden  added the comment:

Thanks, Eryk. I've had a couple of casts at this (and also with an eye to 
https://bugs.python.org/issue40912 in a very similar area).

Trouble is I can't come up with a way of adding a set.. function which doesn't 
seem wholly artificial, given that it's basically creating an anonymous event 
and checking its return. I can't come up with a non-testing scenario where the 
ability to override would be useful.

If I understand your proposal, a tentative "set..." function would have to take 
a HANDLE parameter so that it could be overridden by a test? That means its 
normal use would be something like:

setSigintEvent(CreateEvent(NULL, ));

so either the error checking for that would be inside the function, which feels 
weird, or would happen outside, which feels like the functions not doing 
anything. (I appreciate I may be overthinking here).

I'm very much open to suggestions here, but it seems to me that either:

We make the (simple) change without tests;

or we add a setSigintEvent function as above whose only purpose is to be 
overridden -- and then only for testing.

--

___
Python tracker 

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



[issue40913] time.sleep ignores errors on Windows

2020-06-11 Thread Tim Golden


Change by Tim Golden :


--
assignee:  -> tim.golden

___
Python tracker 

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



[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-11 Thread Saba Kauser


Saba Kauser  added the comment:

Thanks Steve!

--

___
Python tracker 

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



[issue40940] How to update pip permanently for new venv?

2020-06-11 Thread tillus


tillus  added the comment:

If it is not a bug, then I would strongly suggest it as a feature request!

Allright we can track it on the other issue! Thank you.

--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread hai shi


Change by hai shi :


--
pull_requests: +20019
pull_request: https://github.com/python/cpython/pull/20824

___
Python tracker 

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



[issue35019] Allow ipaddres.IPv4/v6Address in asyncio.create_server

2020-06-11 Thread Inada Naoki


Inada Naoki  added the comment:

I feel ABC is too much for just single dunder method.

--
nosy: +inada.naoki

___
Python tracker 

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



[issue40950] PEP 3121 applied to nis module

2020-06-11 Thread Dong-hee Na


New submission from Dong-hee Na :


New changeset ddef3bdc7b254a7e1129a52c17d79cb7c73a88f5 by Dong-hee Na in branch 
'master':
bpo-40950: Port nis module to multiphase initialization (GH-20811)
https://github.com/python/cpython/commit/ddef3bdc7b254a7e1129a52c17d79cb7c73a88f5


--

___
Python tracker 

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



[issue40950] PEP 3121 applied to nis module

2020-06-11 Thread Dong-hee Na


Change by Dong-hee Na :


--
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



[issue40917] pickle exceptions with mandatory keyword args will traceback

2020-06-11 Thread Toshio Kuratomi


Toshio Kuratomi  added the comment:

Thanks!  I confirm that your PR  https://github.com/python/cpython/pull/11580 
for https://bugs.python.org/issue27015 fixes this problem.

Closing this one.

--
resolution:  -> duplicate
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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 756180b4bfa09bb77394a2b3754d331181d4f28c by Pablo Galindo in 
branch 'master':
bpo-40939: Clean and adapt the peg_generator directory after deleting the old 
parser (GH-20822)
https://github.com/python/cpython/commit/756180b4bfa09bb77394a2b3754d331181d4f28c


--

___
Python tracker 

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



[issue40948] Better identify Windows installer as installer only, not runner

2020-06-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Simple is fine.  How about

If you want to run Python, press Start and find 'Python 3.x' under 'P', or 
enter 'python' in the "Search for anything" box on the taskbar.

If you don't have the time right now, where should this go?

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +20018
pull_request: https://github.com/python/cpython/pull/20822

___
Python tracker 

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



[issue40924] Recent importlib change breaks most recent certifi == 2020.4.5.2

2020-06-11 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
pull_requests: +20017
pull_request: https://github.com/python/cpython/pull/20820

___
Python tracker 

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



Re: Typing, how come that :int is not ensuring int parameter?

2020-06-11 Thread DL Neil via Python-list

On 12/06/20 9:32 AM, zljubi...@gmail.com wrote:

OK, as I can see nothing is enforced but I can use mypy and tests for the 
purpose.


Exactly! Well done - Python uses 'duck typing' and thus when the Typing 
module was added, it became an option. As mentioned elsewhere, it 
provides "hints" at 'compile time'.




As I am using pycharm, looks like I need a plugin for mypy.
There are two of them out there:
non official: https://plugins.jetbrains.com/plugin/11086-mypy
and official: https://plugins.jetbrains.com/plugin/13348-mypy-official-

Do you have any experience with any of these plugins?
Please share your opinion.


I don't have a competent opinion for the current Pycharm, but hope that 
others will answer.


TBH I'd be surprised if it doesn't come 'baked in'.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-06-11 Thread Ethan Furman


Ethan Furman  added the comment:


New changeset ebd44003c9e206755e5e28716242ed8941495a62 by Miss Islington (bot) 
in branch '3.7':
bpo-40025: Require _generate_next_value_ to be defined before members (GH-19762)
https://github.com/python/cpython/commit/ebd44003c9e206755e5e28716242ed8941495a62


--

___
Python tracker 

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



Re: Typing, how come that :int is not ensuring int parameter?

2020-06-11 Thread zljubisic
OK, as I can see nothing is enforced but I can use mypy and tests for the 
purpose.

As I am using pycharm, looks like I need a plugin for mypy.
There are two of them out there:
non official: https://plugins.jetbrains.com/plugin/11086-mypy
and official: https://plugins.jetbrains.com/plugin/13348-mypy-official-

Do you have any experience with any of these plugins?
Please share your opinion.

Best regards.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Typing, how come that :int is not ensuring int parameter?

2020-06-11 Thread DL Neil via Python-list

On 12/06/20 8:51 AM, zljubi...@gmail.com wrote:

Hi,

If I run this code:
class Property:

 def __init__(self, var: int):
 self.a: int = var

 @property
 def a(self):
 return self.__a

 @a.setter
 def a(self, var: int):
 if var > 0 and var % 2 == 0:
 self.__a = var
 else:
 self.__a = 2

if __name__ == '__main__':
 x = Property(1.5)
 print(x.a)

I am getting 2.
How come, if I have created a class with :int in order to ensure that "a" 
property must be an integer, that I can create an instance with float (1.5)?



You may be confusing Python with some other programming language 
previously-learned. We need to 're-wire' the way your mind is working 
because whilst you are not-wrong for that-language, you are not-right 
for Python.


So, I'm not going to answer your question directly, but to offer you a 
learning-path:-


What did mypy (or...) say, when you ran tests against the source-code?
(Typing is no use without such a testing regime!)

Have you read the docs for Typing?
- and for extra bonus-points, the numerous PEPs (proposals and accepted) 
related to how Python implements Typing?
(that done, you will likely answer your own question, and accumulate 
some useful learning about Python - at both the practical and 
philosophical/idiomatic levels)

--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Typing, how come that :int is not ensuring int parameter?

2020-06-11 Thread Barry Scott



> On 11 Jun 2020, at 21:51, zljubi...@gmail.com wrote:
> 
> Hi,
> 
> If I run this code:
> class Property:
> 
>def __init__(self, var: int):
>self.a: int = var
> 
>@property
>def a(self):
>return self.__a
> 
>@a.setter
>def a(self, var: int):
>if var > 0 and var % 2 == 0:
>self.__a = var
>else:
>self.__a = 2
> 
> if __name__ == '__main__':
>x = Property(1.5)
>print(x.a)
> 
> I am getting 2.
> How come, if I have created a class with :int in order to ensure that "a" 
> property must be an integer, that I can create an instance with float (1.5)?

The : int is a type *hint* that isn not enforced by python.

If you use a checker program like  mypy it will use the type hints and report 
problems to your.

You can install myy with pip.

$ python3 -m pip install mypy

I put your code in a.py and then checked it:

$ /Library/Frameworks/Python.framework/Versions/3.8/bin/mypy a.py
a.py:18: error: Argument 1 to "Property" has incompatible type "float"; 
expected "int"
Found 1 error in 1 file (checked 1 source file)

As you can see it found the problem.

Barry



> 
> Regards.
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue6721] Locks in the standard library should be sanitized on fork

2020-06-11 Thread Jesse Farnham


Change by Jesse Farnham :


--
nosy: +jesse.farnham

___
Python tracker 

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



Re: Syntax Help

2020-06-11 Thread DL Neil via Python-list

On 12/06/20 12:13 AM, Terry Reedy wrote:

On 6/11/2020 6:03 AM, John Weller wrote:
I have been able to find answers to most problems by Googling but 
couldn't work out a suitable query for this one.


That is why I and others have made the Symbols index as complete as 
possible.  If anything thinks something is missing, say so here.



It is a solid contribution to the community. Thanks!
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Typing, how come that :int is not ensuring int parameter?

2020-06-11 Thread zljubisic
Hi,

If I run this code:
class Property:

def __init__(self, var: int):
self.a: int = var

@property
def a(self):
return self.__a

@a.setter
def a(self, var: int):
if var > 0 and var % 2 == 0:
self.__a = var
else:
self.__a = 2

if __name__ == '__main__':
x = Property(1.5)
print(x.a)

I am getting 2.
How come, if I have created a class with :int in order to ensure that "a" 
property must be an integer, that I can create an instance with float (1.5)?

Regards.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue37747] _markupbase.py fails with TypeError on invalid keyword in marked section

2020-06-11 Thread Leonard Richardson


Leonard Richardson  added the comment:

This was also recently filed as a bug against Beautiful Soup, a package I 
maintain, using Python 3.8. 
(https://bugs.launchpad.net/beautifulsoup/+bug/1883104)

The attached script reproduces the problem without using external packages.

--
nosy: +leonardr
versions: +Python 3.8
Added file: https://bugs.python.org/file49226/test_issue37747.py

___
Python tracker 

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



[issue40626] application/x-hdf5 mime type missing from mimetypes library

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:

MIME type added to master and 3.8 branches. Thanks for your patch!

--
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



[issue40626] application/x-hdf5 mime type missing from mimetypes library

2020-06-11 Thread miss-islington


miss-islington  added the comment:


New changeset a3d6d23a923d62a713b9e4536d5f7ce7313d99c7 by Miss Islington (bot) 
in branch '3.8':
bpo-40626: Support HDF5 in mimetypes (GH-20042)
https://github.com/python/cpython/commit/a3d6d23a923d62a713b9e4536d5f7ce7313d99c7


--

___
Python tracker 

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



Re: repair modify uninstall

2020-06-11 Thread Grant Edwards
On 2020-06-11, Terry Reedy  wrote:
>
>> Indeed.  Is the file name not clear that it's an installer?
>
> No.  python-3.8.3-amd64.exe, which is typical naming for install files.
>
> I opened https://bugs.python.org/issue40948 and suggested adding
> '-setup' or '-install',

An excellent suggestion.  When I build .exe installers, I always end
the name in '-setup'.  Everybody seems to understand that, but my
audience is probably smaller and a bit more tech-savvy that that of the
Python audience.

> as well as instructions on the initial screen for existing installs,
> and, if not present, the final screen for new installs.

Thanks for filing that bug.

--
Grant



-- 
https://mail.python.org/mailman/listinfo/python-list


[issue40626] application/x-hdf5 mime type missing from mimetypes library

2020-06-11 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +20016
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20818

___
Python tracker 

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



[issue40626] application/x-hdf5 mime type missing from mimetypes library

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset 60c2a810e37994fc640c58d0ef45b6843354b770 by MARK SCHWAB in branch 
'master':
bpo-40626: Support HDF5 in mimetypes (GH-20042)
https://github.com/python/cpython/commit/60c2a810e37994fc640c58d0ef45b6843354b770


--
nosy: +akuchling

___
Python tracker 

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



Re: Fwd: python 3.8.3 fails

2020-06-11 Thread MRAB

On 2020-06-11 15:58, Avraham Markov wrote:

Please suggest something to fix

-- Forwarded message -
From: Avraham Markov 
Date: Thu, Jun 11, 2020 at 5:50 PM
Subject: python 3.8.3 fails
To: 


Hello, I successfully installed Python 3.8.3 (64-bit)
at Windows 10 LTSC 64 bit by python-3.8.3-amd64 installer
from https://www.python.org/downloads/windows/
Also by  python-3.8.3 installer,
but  lastly by  python-3.8.3-amd64 installer.
Then when I open powershell,

PS C:\Users\AlexJer> python
python : Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC
v.1924 64 bit (AMD64)] on win32
At line:1 char:1
+ python
+ ~~
 + CategoryInfo  : NotSpecified: (Python 3.8.3 (t...MD64)] on
win32:String) [], RemoteException
 + FullyQualifiedErrorId : NativeCommandError

Type "help", "copyright", "credits" or "license" for more information.




After typing "python", you have "python : " at the start of the next 
line. That's what it doesn't like. Where does that come from?

--
https://mail.python.org/mailman/listinfo/python-list


[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:

Changes applied to master, 3.8, and 3.7.  Thanks!

--
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



[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset f881c869753fb2b1b7aef353416893190251c539 by Miss Islington (bot) 
in branch '3.7':
bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20817)
https://github.com/python/cpython/commit/f881c869753fb2b1b7aef353416893190251c539


--

___
Python tracker 

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



[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset 3e499cda47afe2282ca3f1d04151e2c86f2e7e09 by Miss Islington (bot) 
in branch '3.8':
bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20816)
https://github.com/python/cpython/commit/3e499cda47afe2282ca3f1d04151e2c86f2e7e09


--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 3782497cc22e70b41e32ac09cb06d3948074d8a7 by Pablo Galindo in 
branch '3.9':
[3.9] bpo-40939: Fix test_keyword for the old parser (GH-20814)
https://github.com/python/cpython/commit/3782497cc22e70b41e32ac09cb06d3948074d8a7


--

___
Python tracker 

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



[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20015
pull_request: https://github.com/python/cpython/pull/20817

___
Python tracker 

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



[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +20014
pull_request: https://github.com/python/cpython/pull/20816

___
Python tracker 

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



Re: The FaQ project - Single or Double quotes

2020-06-11 Thread Abdur-Rahmaan Janhangeer
I'm still unsure whether or not to have a summary instead of just listing
the
texts

Kind Regards,

Abdur-Rahmaan Janhangeer
compileralchemy  | blog

github 
Mauritius


On Thu, Jun 11, 2020 at 10:00 PM Abdur-Rahmaan Janhangeer <
arj.pyt...@gmail.com> wrote:

> Since the single vs double quote thread
> i decided to reactivate the FaQ project.
>
> You can view it here
>
> https://abdur-rahmaanj.github.io/pyfaq/[list]_Single_or_double_quotes.html
>
> The index has some some more summaries:
>
> https://abdur-rahmaanj.github.io/pyfaq/
> 
>
> I auto pull the messages with some manual edits like
> filtering empty mails etc
>
> Mr Christopher maintains one for python-ideas
> https://github.com/PythonCHB/PythonListsSummaries
>
> This one is intended to have even some common questions
> like where do i start etc
>
> Kind Regards,
>
> Abdur-Rahmaan Janhangeer
> compileralchemy  | blog
> 
> github 
> Mauritius
>
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset 46398fba4d66ad342cf2504ef947b5fb857423b2 by kernc in branch 
'master':
bpo-29620: iterate over a copy of sys.modules (GH-4800)
https://github.com/python/cpython/commit/46398fba4d66ad342cf2504ef947b5fb857423b2


--
nosy: +akuchling

___
Python tracker 

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



The FaQ project - Single or Double quotes

2020-06-11 Thread Abdur-Rahmaan Janhangeer
Since the single vs double quote thread
i decided to reactivate the FaQ project.

You can view it here

https://abdur-rahmaanj.github.io/pyfaq/[list]_Single_or_double_quotes.html

The index has some some more summaries:

https://abdur-rahmaanj.github.io/pyfaq/


I auto pull the messages with some manual edits like
filtering empty mails etc

Mr Christopher maintains one for python-ideas
https://github.com/PythonCHB/PythonListsSummaries

This one is intended to have even some common questions
like where do i start etc

Kind Regards,

Abdur-Rahmaan Janhangeer
compileralchemy  | blog

github 
Mauritius
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue40940] How to update pip permanently for new venv?

2020-06-11 Thread Ned Deily


Ned Deily  added the comment:

Also, this issue has come up before and is discussed in more detail in 
Issue37107, so let's continue any further discussion there.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> ensurepip --upgrade doesn't change the version of pip used by 
venv

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Brandt Bucher


Change by Brandt Bucher :


--
nosy: +brandtbucher

___
Python tracker 

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



[issue40855] statistics.stdev ignore xbar argument

2020-06-11 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> do you have any comment on my previous answer?

I see what you're trying to do but think that interpretation is surprising
and is at odds with the existing and intended uses of the *xbar* argument.  

The goals were to allow the mean to be precomputed (common case) or to be 
recentered (uncommon).  Neither case should have the effect of changing the 
divisor.  

We can't break existing code that assumes that stdev(data) is equal to 
stdev(data, xbar=mean(data)).

>>> data = [1, 2]
>>> stdev(data)
0.7071067811865476
>>> stdev(data, xbar=mean(data))
0.7071067811865476

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread miss-islington


miss-islington  added the comment:


New changeset 436b648910c27baf8164a6d46d746d36d8a93478 by Pablo Galindo in 
branch 'master':
bpo-40939: Remove some extra references to PYTHONOLDPARSER (GH-20815)
https://github.com/python/cpython/commit/436b648910c27baf8164a6d46d746d36d8a93478


--

___
Python tracker 

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



Fwd: python 3.8.3 fails

2020-06-11 Thread Avraham Markov
Please suggest something to fix

-- Forwarded message -
From: Avraham Markov 
Date: Thu, Jun 11, 2020 at 5:50 PM
Subject: python 3.8.3 fails
To: 


Hello, I successfully installed Python 3.8.3 (64-bit)
at Windows 10 LTSC 64 bit by python-3.8.3-amd64 installer
from https://www.python.org/downloads/windows/
Also by  python-3.8.3 installer,
but  lastly by  python-3.8.3-amd64 installer.
Then when I open powershell,

PS C:\Users\AlexJer> python
python : Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC
v.1924 64 bit (AMD64)] on win32
At line:1 char:1
+ python
+ ~~
+ CategoryInfo  : NotSpecified: (Python 3.8.3 (t...MD64)] on
win32:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

Type "help", "copyright", "credits" or "license" for more information.
>
>>

Thanks,
Avraham
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue40940] How to update pip permanently for new venv?

2020-06-11 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the report.  I have to agree that the behavior is a little bit 
counterintuitive but I believe everything is working as designed and 
documented.  It all comes down to the fact that the ensurepip module is only 
concerned with the version of pip bundled with the python release; ensurepip 
deliberately does not check PyPI for a newer version of pip.  As documented, 
venv calls ensurepip after creating a new venv so the pip that is installed 
there is the one released with ensurepip. To get the latest version of pip, you 
would need to run (in the activated venv):

python3 -m pip install --upgrade pip

just as you needed to do to upgrade the system-wide instance of python3 to the 
latest pip.

https://docs.python.org/3/library/venv.html#creating-virtual-environments
  "Unless the --without-pip option is given, ensurepip will be invoked
   to bootstrap pip into the virtual environment."

https://docs.python.org/3/library/venv.html#creating-virtual-environments
  "Note: This module does not access the internet [...]"

--
nosy: +ned.deily

___
Python tracker 

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



Re: Syntax Help

2020-06-11 Thread Terry Reedy

On 6/11/2020 6:03 AM, John Weller wrote:

I have been able to find answers to most problems by Googling but couldn't work 
out a suitable query for this one.


That is why I and others have made the Symbols index as complete as 
possible.  If anything thinks something is missing, say so here.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: pyinstaller

2020-06-11 Thread Grant Edwards
On 2020-06-11, Chris Angelico  wrote:

> But you DO get to choose what you support.

True, for a certain value of "you".  The requirement to support
certains OSes and versions is often a business decision that is out of
the hands of the developer.  I suppose the OP could quit and stand on
the street corner with a cardboard sign:

 Please Help
   Didn't want to support Windows 7







-- 
https://mail.python.org/mailman/listinfo/python-list


Re: repair modify uninstall

2020-06-11 Thread Terry Reedy

On 6/10/2020 11:30 PM, Grant Edwards wrote:

On 2020-06-11, Michael Torrie  wrote:


Since this comes up on a weekly basis, perhaps the installer should open
that web page to section 3.8.1 after a successful installation.  Maybe
users would read that short section and not try to run the installer
over and over again.  Or since that can be annoying, a prominent "how to
get started" link to click on.  I dunno.


Suggestions like this also get made regularly.  I'm baffled why the
Python installer doesn't display an initial screen that says something
like.

  This is the Python INSTALLER.  If you have installed Python,
  here's what you do to run it:

 

  Click the buttons below only if you want to INSTALL, UNINSTALL,
  or REPAIR Python. See the above instruction to use/run Python.


I'm not sure why users think the installer is the python interpreter
after running it the first time, but apparently many do.


Indeed.  Is the file name not clear that it's an installer?


No.  python-3.8.3-amd64.exe, which is typical naming for install files. 
I opened

https://bugs.python.org/issue40948
and suggested adding '-setup' or '-install', as well as instructions on 
the initial screen for existing installs, and, if not present, the final 
screen for new installs.



--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> A few remaining references to the good old times of the old parser:

Thanks Victor, opened https://github.com/python/cpython/pull/20815 to address 
those.

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +20013
pull_request: https://github.com/python/cpython/pull/20815

___
Python tracker 

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



[issue40945] TKinter.Tk.geometry(Tk.winfo_geometry()) should be idempotent

2020-06-11 Thread E. Paine


E. Paine  added the comment:

This is interesting as it works fine on Windows but does the behaviour you 
describe on Linux. I presume the difference is due to how Tcl/Tk handles the 
title-bar, in which case this isn't really a tkinter issue and there isn't much 
that can be done (from a tkinter perspective anyway).

When tested (on Linux), however, calling tk.geometry() returned a different 
value to tk.winfo_geometry(). Calling tk.geometry(tk.geometry()) did not change 
the window position and everything worked as expected (weird!).

I am not sure, though, if this behaviour should be changed. Looking at the Tk 
man page (https://www.tcl.tk/man/tcl8.6/TkCmd/wm.htm#M42), it says:
"Note that this is related to winfo geometry, but not the same. That [...] 
always reflects Tk's current understanding of the actual size and location of 
window, whereas wm geometry allows [...] querying of the window manager's 
understanding of the size and location of the window. This can vary 
significantly, for example to reflect the addition of decorative elements to 
window such as title bars, and window managers are not required to precisely 
follow the requests made through this command."

--
nosy: +epaine, gpolo, serhiy.storchaka

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +20012
pull_request: https://github.com/python/cpython/pull/20814

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

A few remaining references to the good old times of the old parser:

Programs/_testembed.c:488:putenv("PYTHONOLDPARSER=1");
Programs/_testembed.c:676:putenv("PYTHONOLDPARSER=1");
Tools/scripts/run_tests.py:29:if 'PYTHONOLDPARSER' not in os.environ:

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 1ed83adb0e95305af858bd41af531e487f54fee7 by Pablo Galindo in 
branch 'master':
bpo-40939: Remove the old parser (GH-20768)
https://github.com/python/cpython/commit/1ed83adb0e95305af858bd41af531e487f54fee7


--

___
Python tracker 

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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset dc40105c88b968a50c3458e10e1d732e957ef0a3 by Victor Stinner in 
branch '3.9':
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807) (GH-20813)
https://github.com/python/cpython/commit/dc40105c88b968a50c3458e10e1d732e957ef0a3


--

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Sandro!

--
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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset dc40105c88b968a50c3458e10e1d732e957ef0a3 by Victor Stinner in 
branch '3.9':
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807) (GH-20813)
https://github.com/python/cpython/commit/dc40105c88b968a50c3458e10e1d732e957ef0a3


--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 30abcd8ab648dbf1803e36a8ba5d93fa019b by Victor Stinner in 
branch 'master':
bpo-40275: Move TransientResource to test_urllib2net (GH-20812)
https://github.com/python/cpython/commit/30abcd8ab648dbf1803e36a8ba5d93fa019b


--

___
Python tracker 

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



[issue40948] Better identify Windows installer as installer only, not runner

2020-06-11 Thread Steve Dower


Steve Dower  added the comment:

The current "using" doc page is way too in-depth, but I'm actually okay with 
the idea of having a "Did you mean to launch Python? Press 'Start' and type 
'Python' to find it" message on the Modify page of the installer.

Perhaps the people hitting this problem would read the final page of the 
installer, but I suspect they're just like everyone else and don't read 
instructions until just-in-time. So if they're reaching the Modify page, that's 
the place to put them.

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset bcd7deed9118e365c1225de2a2e1a81bf988c6ab by Lysandros Nikolaou in 
branch 'master':
bpo-40939: Remove PEG parser easter egg (__new_parser__) (#20802)
https://github.com/python/cpython/commit/bcd7deed9118e365c1225de2a2e1a81bf988c6ab


--

___
Python tracker 

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



[issue29633] MSI installer does not pass values as SecureProperty from UI

2020-06-11 Thread Steve Dower


Steve Dower  added the comment:

We can close it. bdist_msi isn't recommended for any reason, and cx_Freeze 
isn't ours.

--
resolution:  -> out of date
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



[issue40275] test.support has way too many imports

2020-06-11 Thread hai shi


hai shi  added the comment:

I propose to start updating tests to use directly support.import_helper and 
support.os_helper. Hai: do you want to work on that? Maybe start by focusing on 
import_helper (but if you modify a test, check for also symbols imported from 
os_helper).

> of course, I will do it.

Try to not create giant PRs modifying 100+ files. For example, limit a PR to 20 
test files.

> forgive me again. I will create some PRs of appropriate size.

--

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20010
pull_request: https://github.com/python/cpython/pull/20813

___
Python tracker 

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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20011
pull_request: https://github.com/python/cpython/pull/20813

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I propose to start updating tests to use directly support.import_helper and 
support.os_helper. Hai: do you want to work on that? Maybe start by focusing on 
import_helper (but if you modify a test, check for also symbols imported from 
os_helper).

When you modify tests, I suggest to remove "from .import_helper import ..." and 
"from .os_helper import ..." in support/__init__.py and then run tests, to 
ensure that you updated all imports of the modified tests.

Try to not create giant PRs modifying 100+ files. For example, limit a PR to 20 
test files.

When PR 20812 will be merged and import_helper and os_helper will no longer be 
imported  by support, "import test.support" done after "import unittest"  will 
only import 17 modules which is way better than the situation in April!

--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I'm no longer sure that it's worth it to create support.process_helper. I only 
see these functions which would be untroversial for process_helper:

* wait_process()
* reap_children()
* args_from_interpreter_flags()
* optim_args_from_interpreter_flags()

PythonSymlink might be moved to support.script_helper instead.

For now, I suggest to leave all these functions in support/__init__.py.

--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 10e6506aa8261aacc89b49e629ae1c927fa5151c by Hai Shi in branch 
'master':
bpo-40275: Add warnings_helper submodule in test.support (GH-20797)
https://github.com/python/cpython/commit/10e6506aa8261aacc89b49e629ae1c927fa5151c


--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20009
pull_request: https://github.com/python/cpython/pull/20812

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset bdfe9b633a171522bc6cdb7c8aa1215cbd119b59 by Victor Stinner in 
branch 'master':
bpo-40275: test.supports imports lazily fnmatch, glob, struct (GH-20810)
https://github.com/python/cpython/commit/bdfe9b633a171522bc6cdb7c8aa1215cbd119b59


--

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset d72b9644a3e6eec83be48b1ebc2ec6ca776134d3 by Victor Stinner in 
branch 'master':
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807)
https://github.com/python/cpython/commit/d72b9644a3e6eec83be48b1ebc2ec6ca776134d3


--

___
Python tracker 

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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset d72b9644a3e6eec83be48b1ebc2ec6ca776134d3 by Victor Stinner in 
branch 'master':
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807)
https://github.com/python/cpython/commit/d72b9644a3e6eec83be48b1ebc2ec6ca776134d3


--

___
Python tracker 

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



[issue40950] PEP 3121 applied to nis module

2020-06-11 Thread Dong-hee Na


Change by Dong-hee Na :


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

___
Python tracker 

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



[issue40950] PEP 3121 applied to nis module

2020-06-11 Thread Dong-hee Na


Change by Dong-hee Na :


--
assignee: corona10
components: Extension Modules
nosy: corona10
priority: normal
severity: normal
status: open
title: PEP 3121  applied to nis module
type: enhancement
versions: Python 3.10

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20007
pull_request: https://github.com/python/cpython/pull/20810

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

> This change broke this buildbot:

GH-20802 fixes this breakage.

--

___
Python tracker 

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



[issue27578] inspect.findsource raises exception with empty __init__.py

2020-06-11 Thread kernc


Change by kernc :


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

___
Python tracker 

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



[issue27578] inspect.findsource raises exception with empty __init__.py

2020-06-11 Thread kernc


Change by kernc :


--
nosy: +kernc
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

> Lysandros can you modify PR 20802 to remove it?

Yup!

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Ok, let's remove it. Lysandros can you modify PR 20802 to remove it?

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

> New changeset 961edf7979ca34d6fe104a1cce005aa8cac35821 by Miss Islington 
> (bot) in branch '3.9':
> bpo-40939: Generate keyword.py using the new parser (GH-20800)

This change broke this buildbot:

AMD64 Arch Linux VintageParser 3.9:
https://buildbot.python.org/all/#/builders/765/builds/67
1 test failed: test_keyword

--

___
Python tracker 

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



[issue40949] test_socket: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-06-11 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue40424] AIX: makexp_aix, parallel build (failures) and ld WARNINGS

2020-06-11 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
nosy: +BTaskaya

___
Python tracker 

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



[issue40949] test_socket: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-06-11 Thread STINNER Victor


New submission from STINNER Victor :

aarch64 RHEL8 Refleaks 3.x:
https://buildbot.python.org/all/#/builders/563/builds/127

The system load was quite high (9.95) for "CPU count: 8".

0:22:19 load avg: 9.95 [406/426/2] test_socket failed (env changed) (2 min 41 
sec) -- running: test_pydoc (20 min 35 sec), test_asyncio (11 min 56 sec), 
test_faulthandler (39.2 sec), test_concurrent_futures (20 min 7 sec), test_venv 
(1 min 17 sec), test_peg_generator (15 min 51 sec), test_multiprocessing_spawn 
(54.4 sec), test_signal (9 min 26 sec)
beginning 6 repetitions
123456
Warning -- threading_cleanup() failed to cleanup 0 threads (count: 0, 
dangling: 5)
Warning -- Dangling thread: 
Warning -- Dangling thread: 
Warning -- Dangling thread: 
Warning -- Dangling thread: 
Warning -- Dangling thread: <_MainThread(MainThread, started 281473770473840)>
..

It may be related to bpo-36750: "test_socket leaks file descriptors on macOS".

--
components: Tests
messages: 371287
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_socket: threading_cleanup() failed to cleanup 0 threads (count: 0, 
dangling: 5)
versions: Python 3.10

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Guido van Rossum


Guido van Rossum  added the comment:

Honestly I see no reason to keep that easter egg. Can we remove it please?

--

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-06-11 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +20005
pull_request: https://github.com/python/cpython/pull/20808

___
Python tracker 

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



[issue36560] test_functools leaks randomly 1 memory block

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

AMD64 Fedora Rawhide Refleaks 3.8:
https://buildbot.python.org/all/#/builders/79/builds/196
test_functools leaked [1, 1, 1] memory blocks, sum=3

--

___
Python tracker 

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



[issue28557] error message for bad raw readinto

2020-06-11 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
versions: +Python 3.10, 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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

Follow-up: bpo-40947 "Replace PLATLIBDIR macro with config->platlibdir".

--

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20004
pull_request: https://github.com/python/cpython/pull/20807

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner
nosy_count: 1.0 -> 2.0
pull_requests: +20003
pull_request: https://github.com/python/cpython/pull/20807

___
Python tracker 

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread miss-islington


miss-islington  added the comment:


New changeset 2f46c65071c5528ce143bd02786f8fe94fe65d1f by Miss Islington (bot) 
in branch '3.9':
bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)
https://github.com/python/cpython/commit/2f46c65071c5528ce143bd02786f8fe94fe65d1f


--

___
Python tracker 

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread miss-islington


miss-islington  added the comment:


New changeset 5b8e3a533560c39eb40b2fb950d2b14caacfaf6a by Miss Islington (bot) 
in branch '3.8':
bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)
https://github.com/python/cpython/commit/5b8e3a533560c39eb40b2fb950d2b14caacfaf6a


--

___
Python tracker 

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Michael Osipov for the fix! It's already merged into the master branch 
and will be merged into 3.8 and 3.9 branches as soon as the CI tests pass on 
the two backport PRs.

I don't think that it's worth it to backport the fix to 3.7: this branch is 
close to move to security fixes only. I prefer to reduce any risk of regression.

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

___
Python tracker 

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b2dca49ca3769cb60713f5c2b43e5d5bbdc1f9c7 by Victor Stinner in 
branch 'master':
bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)
https://github.com/python/cpython/commit/b2dca49ca3769cb60713f5c2b43e5d5bbdc1f9c7


--

___
Python tracker 

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



[issue32834] test_gdb fails with Posix locale in 3.7

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I close the issue. I cannot reproduce the issue on Fedora 32. Please open it if 
you can still reproduce it on the master branch. In this case, please mention 
your GDB version, Python version used by GDB and tested Python version.

* Python master at commit 9727694f08cad4b019d2939224e3416312b1c0e1
* gcc (GCC) 10.1.1 20200507 (Red Hat 10.1.1-1)
* GNU gdb (GDB) Fedora 9.1-5.fc32

On Fedora 32, GDB is linked to Python 3.8:

$ gdb 
GNU gdb (GDB) Fedora 9.1-5.fc32
(gdb) python import sys; print(sys.version)
3.8.3 (default, May 15 2020, 00:00:00) 
[GCC 10.1.1 20200507 (Red Hat 10.1.1-1)]


test_gdb:

vstinner@apu$ LC_ALL=C ./python -We -m test -vuall -m test_strings test_gdb
== CPython 3.10.0a0 (heads/master:9727694f08, Jun 11 2020, 15:44:14) [GCC 
10.1.1 20200507 (Red Hat 10.1.1-1)]
== Linux-5.6.16-300.fc32.x86_64-x86_64-with-glibc2.31 little-endian
== cwd: /home/vstinner/python/master/build/test_python_151860
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
0:00:00 load avg: 1.68 Run tests sequentially
0:00:00 load avg: 1.68 [1/1] test_gdb
GDB version 9.1:
GNU gdb (GDB) Fedora 9.1-5.fc32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
test_strings (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of unicode strings ... ok

--

Ran 1 test in 1.834s

OK

== Tests result: SUCCESS ==

1 test OK.

Total duration: 2.4 sec
Tests result: SUCCESS

--
resolution:  -> out of date
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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +20001
pull_request: https://github.com/python/cpython/pull/20805

___
Python tracker 

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20002
pull_request: https://github.com/python/cpython/pull/20806

___
Python tracker 

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



Convert and analyze image data in a spreadsheet.

2020-06-11 Thread Vincent Davis
Looking for a little advise.
I have 6x6 color (CIELAB )
data in a spreadsheet (color samples of clothing). I would like to
visualize this as an image on a per channel (l,a,b) and as a color image. I
can read the data from the spreadsheet. I am not sure the path a should
choose from there. I think the path is to read this data into a numpy array
and use scikit-image.

Questions:
1. I am not sure how to get the 3 color measurements into a color image
pixel.
2. I only kinda understand color spaces, this data is in CIELAB, do I want
to keep it in that color format? I think yes.
3. How can I visualize this data as a 6x6 color image and visualize each
color on a gray scale.
4. General hints or link of how to proceed would be helpful.

Thanks
Vincent Davis
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue26788] test_gdb fails all tests on a profile-opt build configured --with-lto

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I fail to reproduce the issue on the master branch of Python on Fedora 32:

* Python master at commit 9727694f08cad4b019d2939224e3416312b1c0e1
* Fedora 32
* gcc (GCC) 10.1.1
* GNU gdb (GDB) Fedora 9.1-5.fc32

Notice that multiple tests are skipped:

$ ./configure --with-lto && make && ./python -m test -v test_gdb 
(...)
gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 
-Wall -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g 
-std=c99 (...)
(...)
== CPython 3.10.0a0 (heads/master:9727694f08, Jun 11 2020, 15:31:25) [GCC 
10.1.1 20200507 (Red Hat 10.1.1-1)]
== Linux-5.6.16-300.fc32.x86_64-x86_64-with-glibc2.31 little-endian
== cwd: /home/vstinner/python/master/build/test_python_139705
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
0:00:00 load avg: 2.77 Run tests sequentially
0:00:00 load avg: 2.77 [1/1] test_gdb
GDB version 9.1:
GNU gdb (GDB) Fedora 9.1-5.fc32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
test_NULL_ob_type (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with NULL ob_type is handled gracefully ... ok
test_NULL_ptr (test.test_gdb.PrettyPrintTests)
Ensure that a NULL PyObject* is handled gracefully ... ok
test_builtin_method (test.test_gdb.PrettyPrintTests) ... ok
test_builtins_help (test.test_gdb.PrettyPrintTests)
Ensure that the new-style class _Helper in site.py can be handled ... ok
test_bytes (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of bytes ... ok
test_corrupt_ob_type (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a corrupt ob_type is handled gracefully ... ok
test_corrupt_tp_flags (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a type with corrupt tp_flags is handled ... ok
test_corrupt_tp_name (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a type with corrupt tp_name is handled ... ok
test_dicts (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of dictionaries ... ok
test_exceptions (test.test_gdb.PrettyPrintTests) ... ok
test_frames (test.test_gdb.PrettyPrintTests) ... ok
test_frozensets (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of frozensets ... ok
test_getting_backtrace (test.test_gdb.PrettyPrintTests) ... ok
test_int (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of various int values ... ok
test_lists (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of lists ... ok
test_modern_class (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of new-style class instances ... ok
test_selfreferential_dict (test.test_gdb.PrettyPrintTests)
Ensure that a reference loop involving a dict doesn't lead proxyval ... ok
test_selfreferential_list (test.test_gdb.PrettyPrintTests)
Ensure that a reference loop involving a list doesn't lead proxyval ... ok
test_selfreferential_new_style_instance (test.test_gdb.PrettyPrintTests) ... ok
test_selfreferential_old_style_instance (test.test_gdb.PrettyPrintTests) ... ok
test_sets (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of sets ... ok
test_singletons (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of True, False and None ... ok
test_strings (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of unicode strings ... ok
test_subclassing_list (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of an instance of a list subclass ... ok
test_subclassing_tuple (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of an instance of a tuple subclass ... ok
test_truncation (test.test_gdb.PrettyPrintTests)
Verify that very long output is truncated ... ok
test_tuples (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of tuples ... ok
test_bt (test.test_gdb.PyBtTests)
Verify that the "py-bt" command works ... skipped 'Python was compiled with 
optimizations'
test_bt_full (test.test_gdb.PyBtTests)
Verify that the "py-bt-full" command works ... skipped 'Python was compiled 
with optimizations'
test_gc (test.test_gdb.PyBtTests)
Verify that "py-bt" indicates if a thread is garbage-collecting ... skipped 
'Python was compiled with optimizations'
test_pycfunction (test.test_gdb.PyBtTests)
Verify that "py-bt" displays invocations of PyCFunction instances ... skipped 
'Python was compiled with optimizations'
test_threads (test.test_gdb.PyBtTests)
Verify that "py-bt" indicates threads that are waiting for the GIL ... ok
test_wrapper_call (test.test_gdb.PyBtTests) ... skipped 'Python was compiled 
with optimizations'
test_basic_command (test.test_gdb.PyListTests)
Verify that the "py-list" command works ... skipped 'Python was compiled with 
optimizations'
test_one_abs_arg (test.test_gdb.PyListTests)
Verify the "py-list" command with one absolute argument ... skipped 'Python was 
compiled 

[issue18822] poor proxyval() coverage in test_gdb

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

No activity for 7 years, I close the issue as out of date.

--
nosy: +vstinner
resolution:  -> out of date
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



  1   2   >