[issue35938] crash of METADATA file cannot be fixed by reinstall of python

2019-02-08 Thread Feștilă George Cătălin

New submission from Feștilă George Cătălin :

The pip install module crash with this error:

Could not install packages due to an EnvironmentError: [Errno 2] No such file or
 directory: 'c:\\python364\\lib\\site-packages\\traits-4.6.0.dist-info\\METADATA
'

You are using pip version 18.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

I try to fix with the reinstall the python 3.6.4 but not working.
I think the METADATA was delete by the antivirus.
The version I used is 3.6.4 but the crash can be at any python version.

--
messages: 335060
nosy: catafest
priority: normal
severity: normal
status: open
title: crash of METADATA file cannot be fixed by reinstall of python
type: crash
versions: Python 3.6

___
Python tracker 

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



[issue35939] Remove urllib.parse._splittype from mimetypes.guess_type

2019-02-08 Thread Dong-hee Na


New submission from Dong-hee Na :

Since urllib.parse.splittype is deprecated on 3.8.
In the future urllib.parse._splittype also should be removed.

I found that mimetypes.guess_type uses urllib.parse._splittype and
it can be replaced and it also looks like solve the issue mentioned on 
https://github.com/python/cpython/blame/e42b705188271da108de42b55d9344642170aa2b/Lib/test/test_urllib2.py#L749

And I checked that all unit tests are passed when

--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -114,7 +114,8 @@ class MimeTypes:
 but non-standard types.
 """
 url = os.fspath(url)
-scheme, url = urllib.parse._splittype(url)
+p = urllib.parse.urlparse(url)
+scheme, url = p.scheme, p.path
 if scheme == 'data':
 # syntax of data URLs:
 # dataurl   := "data:" [ mediatype ] [ ";base64" ] "," data
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 876fcd4199..0677390c2b 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -746,7 +746,7 @@ class HandlerTests(unittest.TestCase):
  ["foo", "bar"], "", None),
 ("ftp://localhost/baz.gif;type=a";,
  "localhost", ftplib.FTP_PORT, "", "", "A",
- [], "baz.gif", None),  # XXX really this should guess image/gif
+ [], "baz.gif", "image/gif"),
 ]:
 req = Request(url)
 req.timeout = None

I'd like to work on this issue if this proposal is accepted!
Always thanks

--
components: Library (Lib)
messages: 335061
nosy: corona10
priority: normal
severity: normal
status: open
title: Remove urllib.parse._splittype from mimetypes.guess_type
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue35939] Remove urllib.parse._splittype from mimetypes.guess_type

2019-02-08 Thread Dong-hee Na


Change by Dong-hee Na :


--
versions: +Python 3.7

___
Python tracker 

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



[issue35938] crash of METADATA file cannot be fixed by reinstall of python

2019-02-08 Thread Feștilă George Cătălin

Feștilă George Cătălin  added the comment:

I delete two folders of traits
Using the pip-review --auto this is the output of traits:

  copying traits\util\tests\__init__.py -> build\lib.win-amd64-3.6\traits\util\t
ests
  running build_ext
  building 'traits.ctraits' extension
  creating build\temp.win-amd64-3.6
  creating build\temp.win-amd64-3.6\Release
  creating build\temp.win-amd64-3.6\Release\traits
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14
.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python
364\include -Ic:\python364\include "-IC:\Program Files (x86)\Microsoft Visual St
udio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)
\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\
10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\
10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.1713
4.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-
IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tctraits
/ctraits.c /Fobuild\temp.win-amd64-3.6\Release\traits/ctraits.obj -DNDEBUG=1 -O3

  cl : Command line warning D9002 : ignoring unknown option '-O3'
  ctraits.c
  c:\python364\include\pyconfig.h(59): fatal error C1083: Cannot open include fi
le: 'io.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Commun
ity\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit s
tatus 2

  
  Failed building wheel for traits
  Running setup.py clean for traits
Failed to build scapy traits
chalice 1.7.0 has requirement attrs==17.4.0, but you'll have attrs 18.2.0 which
is incompatible.
chalice 1.7.0 has requirement click<7.0,>=6.6, but you'll have click 7.0 which i
s incompatible.
chalice 1.7.0 has requirement typing==3.6.4; python_version < "3.7", but you'll
have typing 3.6.6 which is incompatible.

--

___
Python tracker 

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



[issue35938] crash of METADATA file cannot be fixed by reinstall of python

2019-02-08 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

traits is not a part of stdlib and the tracker deals with issues in CPython. I 
think this is a third party issue or something related to your environment that 
can be reported to the respective project.

--
nosy: +xtreak

___
Python tracker 

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



[issue35938] crash of METADATA file cannot be fixed by reinstall of python

2019-02-08 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

hi @xtreak

because I don't have a windows vm with me, I can't reproduce this issue, but 
maybe this issue is related with ensurepip or just with pip.

when I have seen this issue, my first reaction was "it's not related to 
python", but I am not sure.

--
nosy: +matrixise

___
Python tracker 

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



[issue35921] Use ccache by default

2019-02-08 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Hi @Raymond

I use this script since 1 year for the compilation of Python,

https://github.com/python/cpython/pull/11773#issuecomment-461179522

#!/usr/bin/env fish

set number_of_cpu (python3 -c "import os; 
print(os.sysconf('SC_NPROCESSORS_ONLN'))")

./configure --prefix=$PWD-build --with-pydebug --silent -C > stdout.txt ^ 
stderr.txt
make CC="/usr/bin/ccache gcc" --jobs $number_of_cpu --silent > stdout.txt ^ 
stderr.txt


Really useful because I use the cache of configure.ac and ccache for makefile. 
Now we could use distcc (for a distributed compilation or alternative) but I 
don't think the result will be really significative.

--

___
Python tracker 

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



[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-08 Thread Pierre Glaser


Pierre Glaser  added the comment:

Thanks Antoine and Raymond for the feedback.

Indeed, a subclass of a slotted class can have a dict: I enriched the script, 
pickling_depickling instances of such subclasses, with the length-2 tuple 
__getstate__ method, and made sure their attributes were properly retrieved.

Apart from the different checks on state carried out in the c load_build and 
the python load_build, AFAICT, it seems like this feature works :)

--

___
Python tracker 

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



[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-08 Thread Pierre Glaser


Change by Pierre Glaser :


Removed file: https://bugs.python.org/file48113/test_slots.py

___
Python tracker 

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



[issue28488] shutil.make_archive (xxx, zip, root_dir) is adding './' entry to archive which is wrong

2019-02-08 Thread Hinayf Wikileakean


Hinayf Wikileakean  added the comment:

There is a similar bug/issue for 'tar' archives.

--
nosy: +Hinayf Wikileakean

___
Python tracker 

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



[issue35933] python doc does not say that the state kwarg in Pickler.save_reduce can be a tuple (and not only a dict)

2019-02-08 Thread Pierre Glaser


Change by Pierre Glaser :


Added file: https://bugs.python.org/file48114/test_slots.py

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


--
title: Crash - algos.cp36-win_amd64.pyd  join.cp36-win_amd64.pyd -> Crash by 
Pandas - algos.cp36-win_amd64.pyd  join.cp36-win_amd64.pyd

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Bangert  added the comment:

I updated Pandas with the same result. I created new environments. When I load 
Pandas I get the same result and behaiviour. Permanent crashes of the 
python.exe.

--

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi Bangert, thanks for reporting the issue.

we need more information to reproduce the bug. Can you post the requirement.txt 
file as a text file rather than a screenshot and the step to reproduce the 
crash starting from an empty project?

Were you able to reproduce the crash on another computer or is it specific to 
yours?

--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue35938] crash of METADATA file cannot be fixed by reinstall of python

2019-02-08 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

That's not a crash. You are trying to install a package using pip, pip sees 
that it is missing the METADATA file and reports a problem. That is working 
correctly, not a crash.

There is no way for us to know how the metadata file got deleted. Maybe you 
deleted it yourself by accident? Maybe an anti-virus program moved it. Maybe 
you never installed it. Maybe the traits package is broken and you need to 
report the issue to them.

But whatever the problem is, it isn't a problem with your Python installation. 
You can reinstall Python a million times, that isn't going to make the traits 
METADATA file reappear.

If you are absolutely sure that the traits package doesn't have a METADATA 
file, you should report this to the maintainers of the traits package. 

The *second* problem you report is a missing io.h file. That sounds like it has 
been deleted. Again, we have no way of knowing how. Unless someone reproduces 
that error we can only guess that this is something specific to your system and 
not a problem with Python.

The *third* problem you report is with chalice. Again, this has nothing to do 
with Python, it is a third-party library and pip is doing exactly the right 
thing. chalice has unmet dependencies and cannot be installed, so pip is 
reporting the problem. You should complain to the chalice maintainers that 
their requirements are too strict.

I don't think any of these problems have anything to do with Python itself, so 
I'm going to close this issue as "Third Party". If you have additional 
information which shows that it is a Python problem, please tell us and we will 
re-open the issue.

--
nosy: +steven.daprano
resolution:  -> third party
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



[issue35904] Add statistics.fmean(seq)

2019-02-08 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Oh, I seem to have accidentally reverted the change of title.

Sorry, that was definitely not intended and I don't know how it 
happened. But now that it has, I'm not going to change it until we have 
a decision on a name.

--

___
Python tracker 

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



[issue35937] Add instancemethod to types.py

2019-02-08 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Could you expand on why instancemethod is amazing, other than that's it is 
apparently fast at something.

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: https://bugs.python.org/file48115/Conda-Algos-Joint-Crash-04.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: https://bugs.python.org/file48116/Conda-Algos-Joint-Crash-05.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: https://bugs.python.org/file48117/requirements.txt

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Removed file: https://bugs.python.org/file48117/requirements.txt

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: 
https://bugs.python.org/file48119/requirementsWin10-Educ-1809-x64-German.txt

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: 
https://bugs.python.org/file48118/requirementsWin7-Prof-SP1-x64-English.txt

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: https://bugs.python.org/file48120/Conda-Algos-Joint-Crash-06.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Bangert  added the comment:

1. In Win7 the crash happens on every change in code, even in the webroot of 
tensorboard.

2. In Win10 there is !no! crash

--

___
Python tracker 

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



[issue35937] Add instancemethod to types.py

2019-02-08 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

I presume you aren't referring to this:

from types import MethodType

> There really isn't anything else to say about it

How about starting with why you want this and what you will do with it?

According to this post on StackOverflow:

https://stackoverflow.com/questions/40876368/where-can-i-find-an-instancemethod-in-the-python-3-standard-library

The name instancemethod looks a lot like a bound method 
object, but it turns out it's something else entirely. 
It's a weird internal thing that, according to its 
documentation, is supposed to be the new way for C types
to represent their methods, except that the standard 
C-level API for creating a type doesn't actually use it.

According to conversations on the Python issue tracker,
this feature was requested by the developers of Cython
and Pyrex.


Given that this is not used anywhere in CPython, the documentation for the C 
API specifically says it is not exposed to Python code, and the name is 
painfully misleading, we should assume that it is undocumented for a reason. It 
might help to persuade the core devs to expose it as part of the public Python 
API if you have a use-case for this.

(And if so, I think it desperately needs to change the displayed name away from 
"instancemethod", since that's not what it returns.)


See also #28842

--
nosy: +steven.daprano

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Removed file: https://bugs.python.org/file48120/Conda-Algos-Joint-Crash-06.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Removed file: https://bugs.python.org/file48116/Conda-Algos-Joint-Crash-05.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: 
https://bugs.python.org/file48121/Conda-Algos-Joint-Crash-Win7-RWTH-SAP1.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: 
https://bugs.python.org/file48122/Conda-Algos-Joint-NoCrash-Win10-RWTH-SAP2.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Removed file: 
https://bugs.python.org/file48122/Conda-Algos-Joint-NoCrash-Win10-RWTH-SAP2.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Removed file: https://bugs.python.org/file48115/Conda-Algos-Joint-Crash-04.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: 
https://bugs.python.org/file48123/Conda-Algos-Joint-Crash-Event-Win7-RWTH-SAP1.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Removed file: 
https://bugs.python.org/file48121/Conda-Algos-Joint-Crash-Win7-RWTH-SAP1.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: 
https://bugs.python.org/file48125/Conda-Algos-Joint-Crash-Silent-Event-Win10-RWTH-SAP2.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: 
https://bugs.python.org/file48124/Conda-Algos-Joint-Crash-Popup-Win7-RWTH-SAP1.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Change by Bangert :


Added file: 
https://bugs.python.org/file48126/Conda-Algos-Joint-Crash-Silent-Project-Win10-RWTH-SAP2.jpg

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Bangert


Bangert  added the comment:

Correction - I did not see the popup in Win10 for it is a silent crash without 
popup so:

1. Win 7 crashes with popup

2. Win10 crashes silently

--
Added file: https://bugs.python.org/file48127/Crash-Popup-Win7-RWTH-SAP1.jpg

___
Python tracker 

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



[issue35904] Add statistics.fmean(seq)

2019-02-08 Thread Mark Dickinson


Mark Dickinson  added the comment:

No further bikeshedding on the name from me; +1 on whatever you decide on. :-)

--

___
Python tracker 

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



[issue35937] Add instancemethod to types.py

2019-02-08 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Also see issue 11776 about documenting the signatures.

--
nosy: +cheryl.sabella

___
Python tracker 

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



[issue21109] tarfile: Traversal attack vulnerability

2019-02-08 Thread uhei3nn9


uhei3nn9  added the comment:

Is there any update on this? Will this be fixed in the next release?

Having a code execution vulnerability (yes it is!) in python for 5 years does 
not really spark confidence...

--
nosy: +uhei3nn9

___
Python tracker 

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



[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2019-02-08 Thread Steven Davidson


Change by Steven Davidson :


--
nosy: +Steven Davidson

___
Python tracker 

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



[issue24087] Documentation doesn't explain the term "coroutine" (PEP 342)

2019-02-08 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

While some of the proposed changes in this issue have been applied to the 
documentation under other issues, other changes have not been applied.  Is it 
still desirable to incorporate the other changes (such as native coroutine) or 
have the existing doc changes been enough to make this issue obsolete?

Thank you.

--
nosy: +cheryl.sabella

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2019-02-08 Thread Lele Gaifax


Lele Gaifax  added the comment:

I rebased my work on current master of the cpython git repository, cherry 
picking the changes from the old branch (that was based on a at the time 
unofficial git mirror of the mercurial repository). 

To avoid any ambiguity I called it "issue8_3", so it is now available here: 
https://github.com/lelit/cpython/tree/issue8_3

Since now I own a Mac, I could find the energies to adapt the changes to 
libedit, if at all possible. That would be even more likely to happen should I 
receive some positive feedback on the chances this has to be accepted :-)

--

___
Python tracker 

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



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Ramy Abdel-Azim


Ramy Abdel-Azim  added the comment:

Hi,

Is there any update on this ticket? I would love to use Requests instead of 
writing a curl command and running it from the command line out of my script 
but I need this functionality to pull the cookies.txt file in.

Thanks!
_Ramy

--
nosy: +Ramy Abdel-Azim

___
Python tracker 

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



[issue24087] Documentation doesn't explain the term "coroutine" (PEP 342)

2019-02-08 Thread Paul Moore


Paul Moore  added the comment:

I'm OK that the basic glossary item is now covered. I don't know about any of 
the other issues Martin mentioned.

I've closed the issue as my original comment is addressed, but if Martin wants 
to reopen it to address his concerns, I'm OK with him doing that.

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



[issue35940] multiprocessing manager tests fail in the Refleaks buildbots

2019-02-08 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

After PR11772, some buildbots with refleak checks fail because the tests modify 
the environment (leaking processes or threads or files ...). Some of the 
failures:

https://buildbot.python.org/all/#builders/80/builds/506
ttps://buildbot.python.org/all/#builders/114/builds/375
https://buildbot.python.org/all/#builders/1/builds/497


== Tests result: ENV CHANGED ==
409 tests OK.
10 slowest tests:
- test_multiprocessing_spawn: 32 min 19 sec
- test_concurrent_futures: 25 min 37 sec
- test_asyncio: 24 min 56 sec
- test_multiprocessing_forkserver: 13 min 57 sec
- test_multiprocessing_fork: 11 min 2 sec
- test_zipfile: 10 min 2 sec
- test_decimal: 8 min 30 sec
- test_gdb: 8 min 301 ms
- test_lib2to3: 7 min 46 sec
- test_buffer: 7 min 43 sec
3 tests altered the execution environment:
test_multiprocessing_fork test_multiprocessing_forkserver
test_multiprocessing_spawn
8 tests skipped:
test_devpoll test_kqueue test_msilib test_startfile
test_winconsoleio test_winreg test_winsound test_zipfile64

--
components: Tests
messages: 335083
nosy: giampaolo.rodola, pablogsal, pitrou
priority: normal
severity: normal
status: open
title: multiprocessing manager tests fail in the Refleaks buildbots
versions: 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



[issue35941] ssl.enum_certificates() regression

2019-02-08 Thread Michael Schlenker


New submission from Michael Schlenker :

The introduction of the ReadOnly flag in the ssl.enum_certificates() function 
implementation has introduced a regression.

The old version returned certificates for both the current user and the local 
system, the new function only enumerates system wide certificates and ignores 
the current user.

The old function before Patch from https://bugs.python.org/issue25939 used a 
different function to open the certificate store (CertOpenStore vs. 
CertOpenSystemStore). Probably some of the param flags are not identical, the 
new code explictly lists only local system.

Testing:
1. Import a self signed CA only into the 'current user' trustworthy 
certificates.
2. Use IE to Connect to a https:// website using that trust root. Works.
3. Try to open the website with old python and new python. 
Old one works, new one fails.

Or just enum certificates:

1. Import a self signed CA into the current_user trusted store.
2. Compare outputs of:
import ssl
len(ssl.enum_certificates('ROOT'))

--
assignee: christian.heimes
components: SSL, Windows
messages: 335084
nosy: christian.heimes, paul.moore, schlenk, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: ssl.enum_certificates() regression
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, 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



[issue35941] ssl.enum_certificates() regression

2019-02-08 Thread Christian Heimes


Christian Heimes  added the comment:

I guess the flags are wrong. https://hg.python.org/cpython/rev/d6474257ef38 
changed flags to CERT_SYSTEM_STORE_LOCAL_MACHINE. To get local user certs, the 
flag should probably be CERT_SYSTEM_STORE_CURRENT_USER.

--
assignee: christian.heimes -> steve.dower

___
Python tracker 

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



[issue35941] ssl.enum_certificates() regression

2019-02-08 Thread Christian Heimes


Change by Christian Heimes :


--
versions:  -Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle


Change by Paul Ganssle :


--
pull_requests: +11790

___
Python tracker 

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



[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2019-02-08 Thread Paul Ganssle


Change by Paul Ganssle :


--
pull_requests: +11794

___
Python tracker 

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



[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle


Change by Paul Ganssle :


--
pull_requests: +11790, 11791, 11792

___
Python tracker 

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



[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle


Change by Paul Ganssle :


--
pull_requests: +11790, 11791

___
Python tracker 

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



[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2019-02-08 Thread Paul Ganssle


Change by Paul Ganssle :


--
pull_requests: +11794, 11795

___
Python tracker 

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



[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle


Change by Paul Ganssle :


--
pull_requests: +11790, 11791, 11792, 11793

___
Python tracker 

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



[issue35935] threading.Event().wait() not interruptable with Ctrl-C on Windows

2019-02-08 Thread Steve Dower


Steve Dower  added the comment:

I'm not sure it's quite as simple as calling sys.exit, but it would be a great 
project to bring universal cancellation support to all (regularly) blocking 
functions. Asyncio has suffered from this as well.

Part of the problem is that POSIX APIs often don't support cancellation, and so 
things have been designed in ways that prevent use of Windows's cancellation 
support (via APCs or kernel events). Given that we would have to emulate a lot 
of things on all platforms to make it consistent, this is certainly a PEP and 
long-term project. (And probably a lot of arguments with people who don't like 
new abstractions :( )

But on this particular issue, making the unconditional wait be interruptable by 
signals shouldn't be impossible. It's been done elsewhere, so probably just 
this one got missed.

--

___
Python tracker 

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



[issue35941] ssl.enum_certificates() regression

2019-02-08 Thread Michael Schlenker


Michael Schlenker  added the comment:

It probably is even worse.

The flag seems to specifiy the physical locations, and just using 
CERT_SYSTEM_STORE_LOCAL_SYSTEM probably misses the certificates distributed by 
Group Policy or AD too, in addition to the stores for the current user.

See 
https://blogs.msdn.microsoft.com/muaddib/2013/10/18/understanding-and-managing-the-certificate-stores-used-for-smart-card-logon/

--

___
Python tracker 

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



[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle


Paul Ganssle  added the comment:

Hm, when I made the "What's new" issue, it added the same PR to the "Pull 
requests" 4 times instead of once, and in the history it seems like it *tried* 
to actually add PR 11790, 11791, 11792 and 11793 (only the first one exists at 
the moment). Not sure why that happened and where I'd report that bug.

--

___
Python tracker 

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



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Paul Ganssle


Paul Ganssle  added the comment:

Ah, sorry for the noise, this is a known issue: 
https://github.com/python/bugs.python.org/issues/12

--

___
Python tracker 

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



[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2019-02-08 Thread glin


glin  added the comment:

@Andrew Svetlov: I was surprised when you wrote "as_completed() is low-level 
API.", so I wondered what is high level API and I googled it and first that 
came was official doc:

https://docs.python.org/3/library/asyncio-api-index.html

Where it's written that it's high level API indeed.

IMHO without limit, all of these functions are quite impractical (as_completed, 
wait, gather, ...). I have simple to moderately complex scripts and I'm running 
into problems with it (API servers limiting number of requests per minute, 
/tmp/ (4GB ramdisk) out of space, memory issues...

Please reconsider adding limit to these functions as it's suppose to be high 
level API, not low level.

Thanks

--
nosy: +glin

___
Python tracker 

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



[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2019-02-08 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d9503c307a8b6a7b73f6344183602ffb014d3356 by Łukasz Langa (Paul 
Ganssle) in branch 'master':
Add What's New entry for date subclass behavior (#11790)
https://github.com/python/cpython/commit/d9503c307a8b6a7b73f6344183602ffb014d3356


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue32417] fromutc does not respect datetime subclasses

2019-02-08 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d9503c307a8b6a7b73f6344183602ffb014d3356 by Łukasz Langa (Paul 
Ganssle) in branch 'master':
Add What's New entry for date subclass behavior (#11790)
https://github.com/python/cpython/commit/d9503c307a8b6a7b73f6344183602ffb014d3356


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue35922] robotparser crawl_delay and request_rate do not work with no matching entry

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
keywords: +patch
pull_requests: +11796
stage:  -> patch review

___
Python tracker 

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



[issue35922] robotparser crawl_delay and request_rate do not work with no matching entry

2019-02-08 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Thanks for your report Joseph, I opened a new PR to fix this.

--
nosy: +orsenthil

___
Python tracker 

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



[issue35939] Remove urllib.parse._splittype from mimetypes.guess_type

2019-02-08 Thread SilentGhost


Change by SilentGhost :


--
nosy: +orsenthil

___
Python tracker 

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



[issue35936] Give modulefinder some much-needed updates.

2019-02-08 Thread SilentGhost


Change by SilentGhost :


--
nosy: +jvr

___
Python tracker 

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



[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-08 Thread Łukasz Langa

New submission from Łukasz Langa :

>>> class K:
...   def __fspath__(self):
... return 1
...
>>> import os
>>> os.stat(K())
Traceback (most recent call last):
  File "", line 1, in 
TypeError: stat: path should be string, bytes, os.PathLike or integer, not int


This error message is internally inconsistent:
- it suggests that the error is about the path argument whereas it's in fact 
about the value returned from `__fspath__()`
- it hilariously states "should be integer, not int"
- it claims os.PathLike is fine as a return value from `__fspath__()` whereas 
it's not


I would advise removing the custom `__fspath__()` handling from 
`path_converter` and just directly using PyOS_FSPath which returns a valid 
error in this case (example from pypy3):

 class K:
   def __fspath__(self):
 return 1

 import os
 os.open(K(), os.O_RDONLY)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: expected K.__fspath__() to return str or bytes, not int

--
messages: 335094
nosy: lukasz.langa
priority: normal
severity: normal
stage: needs patch
status: open
title: posixmodule.c:path_converter() returns an invalid exception message for 
broken PathLike objects
type: behavior
versions: 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



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
pull_requests: +11797
stage:  -> patch review

___
Python tracker 

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



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
pull_requests: +11797, 11798
stage:  -> patch review

___
Python tracker 

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



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
pull_requests: +11797, 11798, 11799
stage:  -> patch review

___
Python tracker 

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



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi Ramy, thanks for bumping the issue.

The solution suggested by Piotr Dobrogost is backward compatible and I think 
it's the right thing to do.

I opened a new PR thanks to the patch of Jérémie Detrey.

--
versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5

___
Python tracker 

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



[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2019-02-08 Thread Eric Snow


Change by Eric Snow :


--
pull_requests:  -11625

___
Python tracker 

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



[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2019-02-08 Thread Eric Snow


Change by Eric Snow :


--
pull_requests:  -11624

___
Python tracker 

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



[issue34572] C unpickling bypasses import thread safety

2019-02-08 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

I agree that more generally PyImport_GetModule() should be fixed.  But it 
should be done carefully so as to not to lose the performance benefit of doing 
it.  I think we should open a separate issue about that.

PS: one possibility is to reuse the optimization already done in 
PyImport_ImportModuleLevelObject():

/* Optimization: only call _bootstrap._lock_unlock_module() if
   __spec__._initializing is true.
   NOTE: because of this, initializing must be set *before*
   stuffing the new module in sys.modules.
 */
spec = _PyObject_GetAttrId(mod, &PyId___spec__);
if (_PyModuleSpec_IsInitializing(spec)) {
PyObject *value = _PyObject_CallMethodIdObjArgs(interp->importlib,
&PyId__lock_unlock_module, abs_name,
NULL);
if (value == NULL) {
Py_DECREF(spec);
goto error;
}
Py_DECREF(value);
}
Py_XDECREF(spec);

--

___
Python tracker 

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



[issue35943] PyImport_GetModule() can return partially-initialized module

2019-02-08 Thread Antoine Pitrou


New submission from Antoine Pitrou :

PyImport_GetModule() returns whatever is in sys.modules, even if the module is 
still importing and therefore only partially initialized.

One possibility is to reuse the optimization already done in 
PyImport_ImportModuleLevelObject():

/* Optimization: only call _bootstrap._lock_unlock_module() if
   __spec__._initializing is true.
   NOTE: because of this, initializing must be set *before*
   stuffing the new module in sys.modules.
 */
spec = _PyObject_GetAttrId(mod, &PyId___spec__);
if (_PyModuleSpec_IsInitializing(spec)) {
PyObject *value = _PyObject_CallMethodIdObjArgs(interp->importlib,
&PyId__lock_unlock_module, abs_name,
NULL);
if (value == NULL) {
Py_DECREF(spec);
goto error;
}
Py_DECREF(value);
}
Py_XDECREF(spec);

Issue originally mentioned in issue34572.

--
components: Interpreter Core
messages: 335097
nosy: brett.cannon, eric.snow, ncoghlan, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: PyImport_GetModule() can return partially-initialized module
type: behavior
versions: 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



[issue34572] C unpickling bypasses import thread safety

2019-02-08 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Opened issue35943 for PyImport_GetModule().

--

___
Python tracker 

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



[issue34572] C unpickling bypasses import thread safety

2019-02-08 Thread Eric Snow


Eric Snow  added the comment:

Thanks, Antoine.

--

___
Python tracker 

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



[issue35943] PyImport_GetModule() can return partially-initialized module

2019-02-08 Thread Eric Snow


Eric Snow  added the comment:

Yeah, that makes sense.

--

___
Python tracker 

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



[issue35943] PyImport_GetModule() can return partially-initialized module

2019-02-08 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
nosy: +pablogsal

___
Python tracker 

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



[issue35904] Add statistics.fmean(seq)

2019-02-08 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

+1 from me as well.

I like your count() solution because 1) it gives the same answer for both an 
iterator and for an iterable 2) it preserves the memory friendly 
characteristics of iterators, 3), it is still reasonably fast, and 4) the 
function signature is still simple.

My top name preference is "fmean" because I'm used to "isqrt" for integers, 
"fsqrt" for floats, and "cmath" for complex where the first letter means the 
type.  Incidentally, that is why "fsum" is named with an "f". My second choice 
is "fastmean" without an underscore.  To my ear, "float_mean" is confusing, as 
if "float" were a verb and "mean" were the direct object, the antonym of 
"sink_mean" ;-)

--

___
Python tracker 

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



[issue35889] sqlite3.Row doesn't have useful repr

2019-02-08 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Enhancements only go into future versions.

This would have the same pluses and minuses as printing dicts in full.  I don't 
know the general feeling about expanding the classes printed out like this, or 
whether Gerhard is still active.  If you don't get responses within a few days, 
you might try posting to python-ideas list.

--
nosy: +ghaering, terry.reedy
versions:  -Python 2.7, Python 3.4, Python 3.5, 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



[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-08 Thread Neil Schemenauer


Neil Schemenauer  added the comment:


New changeset 5741c45acf9b0ce22ff0dbf56322fe0ff16cfcfc by Neil Schemenauer in 
branch 'master':
bpo-35903: Use autoconfig to probe for shm_open() and shm_unlink(). (#11765)
https://github.com/python/cpython/commit/5741c45acf9b0ce22ff0dbf56322fe0ff16cfcfc


--

___
Python tracker 

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



[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-08 Thread Neil Schemenauer


Change by Neil Schemenauer :


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



[issue35943] PyImport_GetModule() can return partially-initialized module

2019-02-08 Thread Paul Ganssle


Change by Paul Ganssle :


--
nosy: +p-ganssle

___
Python tracker 

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



[issue35927] Intra-package References Documentation Incomplete

2019-02-08 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

3.6 only gets security patches.

I cannot comment on relative imports as I never use them, but the absolute 
imports should work and do for me.  I just added to idlelib.idle_test a file 
a.py containing 'from idlelib.idle_test import htest' and it works find.  The 
idlelib and idle_test __init__.py files are not empty, but that should not make 
a difference.  In fact, many of the test_xyz modules already import from the 
non-test utility modules in the same directory.

The error messsage suggests that you did not put the top level package 
directory, 'sound', in a directory in sys.path, as you must.  What directory 
contains your sound package and what is your sys.path?  I suspect that this 
should be closed as 'not a bug'.

--
nosy: +brett.cannon, eric.snow, ncoghlan, terry.reedy
versions: +Python 3.7, Python 3.8 -Python 3.6

___
Python tracker 

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



[issue35927] Intra-package References Documentation Incomplete

2019-02-08 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

When reporting problems, copy and paste into the report the complete exception 
traceback and error message.  For import problems, also copy and paste 
sys.path.  If you disagree that this should be closed, please do so.

--

___
Python tracker 

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



[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Eryk Sun


Eryk Sun  added the comment:

The access violation (exception code 0xC005) occurs in 
algos.cp36-win_amd64.pyd, which is a Pandas extension module, so I'm closing 
this issue as third party. You can open an issue with the Pandas project at 
their GitHub repo:

https://github.com/pandas-dev/pandas/issues

It will help whoever has to analyze this problem if you include the crash dump 
file. The default location for dump files is "%LocalAppData%\CrashDumps". In 
Windows 7 and 10, it should be enabled by default and configured to keep at 
least the last 10 dump files. 

Regarding error reporting in Windows 10, the default policy is to not show a 
user interface. If the Windows Error Reporting service is called, it still 
executes as before (e.g. saving crash dumps and sending anonymized data to 
Microsoft), but users won't see a dialog, which for most people is a useless 
annoyance. If desired, we can show the error-reporting dialog by setting a 
DWORD value of 0 named "DontShowUI" in either of the following registry keys:

HKLM\Software\Microsoft\Windows\Windows Error Reporting
HKLM\Software\Policies\Microsoft\Windows\Windows Error Reporting

That said, error reporting itself may be disabled, which can be configured by 
setting the flag SEM_NOGPFAULTERRORBOX in the error mode of the process, 
thread, or job. (GPFAULT, or "General Protection Fault", is used loosely here 
to mean an unhandled exception.) It can also be repressed if the process calls 
SetUnhandledExceptionFilter to set a custom unhandled exception filter that 
returns either EXCEPTION_EXECUTE_HANDLER or EXCEPTION_CONTINUE_EXECUTION 
instead of EXCEPTION_CONTINUE_SEARCH. So it may be normal for a particular 
program to not show the error-reporting dialog.

--
nosy: +eryksun
resolution:  -> third party
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



[issue35944] Python 3.7 install error

2019-02-08 Thread princebaridi


New submission from princebaridi :

win10 x64 bit machine. looks like msi installer error/

--
components: Installation
files: Python 3.7.2 (64-bit)_20190208145004_000_core_JustForMe.log
messages: 335107
nosy: lasonjack
priority: normal
severity: normal
status: open
title: Python 3.7 install error
type: crash
versions: Python 3.7
Added file: https://bugs.python.org/file48128/Python 3.7.2 
(64-bit)_20190208145004_000_core_JustForMe.log

___
Python tracker 

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



[issue35944] Python 3.7 install error

2019-02-08 Thread Zachary Ware


Change by Zachary Ware :


--
assignee:  -> steve.dower
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue35945] Cannot distinguish between subtask cancellation and running task cancellation

2019-02-08 Thread Nic Watson


New submission from Nic Watson :

Goal: to distinguish inside a CancelledError exception handler whether the 
current running task is being cancelled, or another task that the current task 
is pending on was cancelled.

Example:

import asyncio

async def task2func():
await asyncio.sleep(2)

async def task1func(task2):
try:
await task2
except asyncio.CancelledError:
print("I don't know if I got cancelled")

async def main():
loop = asyncio.get_event_loop()
task2 = loop.create_task(task2func())
task1 = loop.create_task(task1func(task2))
await asyncio.sleep(0.5)

print('Cancelling first task')
task1.cancel()
await task1

await asyncio.sleep(0.5)

task2 = loop.create_task(task2func())
task1 = loop.create_task(task1func(task2))
await asyncio.sleep(0.5)

print('Cancelling second task')
task2.cancel()
await task1

asyncio.run(main())


If I have a task1 waiting on a task2, there's no public method (that I can 
tell) available in the task1func exception handler to distinguish between 
whether task1 or task2 were cancelled.

There is an internal field task_must_cancel in the C task struct that could be 
used to interrogate one's own current task to see if it is being cancelled.  It 
is not available from Python (without ctypes hacking).  The Python 
implementation's equivalent is called _must_cancel.  (I'm not sure it is a good 
idea to export this from an API design perspective, but it does mean a 
mechanism exists.)

A workaround is that one can explicitly add attributes to the Python task 
object to communicate that a task is *starting to* be cancelled.  This field 
would have the same purpose as the task_must_cancel field.

--
components: asyncio
messages: 335108
nosy: asvetlov, jnwatson, yselivanov
priority: normal
severity: normal
status: open
title: Cannot distinguish between subtask cancellation and running task 
cancellation
versions: Python 3.7

___
Python tracker 

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



[issue35945] Cannot distinguish between subtask cancellation and running task cancellation

2019-02-08 Thread epiphyte


Change by epiphyte :


--
nosy: +epiphyte

___
Python tracker 

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



[issue35944] Python 3.7 install error

2019-02-08 Thread Steve Dower


Steve Dower  added the comment:

That looks like an incomplete log. Do you have the log file without 
"000_core_JustForMe" at the end of the name?

--

___
Python tracker 

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



[issue35944] Python 3.7 install error

2019-02-08 Thread princebaridi


princebaridi  added the comment:

sure sorry

--
Added file: https://bugs.python.org/file48129/Python 3.7.2 
(64-bit)_20190208145004.log

___
Python tracker 

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



[issue35944] Python 3.7 install error

2019-02-08 Thread Steve Dower


Steve Dower  added the comment:

It seems to think the install has been deleted between extracting/verifying it 
and launching the installer.

Do you have any antivirus running that you could disable? Those can sometimes 
interfere like this.

--

___
Python tracker 

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



[issue35946] Ambiguous documentation for assert_called_with()

2019-02-08 Thread Mark Forrer


New submission from Mark Forrer :

The documentation for assert_called_with() is ambiguous with regard to the fact 
that the method only checks the most recent call.  This behavior for 
assert_called_with() is only documented under assert_any_call(), which users 
are unlikely to read when making quick reference to the documentation.

--
assignee: docs@python
components: Documentation
messages: 335112
nosy: chimaerase, docs@python
priority: normal
severity: normal
status: open
title: Ambiguous documentation for assert_called_with()
versions: Python 3.7

___
Python tracker 

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



[issue35946] Ambiguous documentation for assert_called_with()

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
keywords: +patch
pull_requests: +11800
stage:  -> patch review

___
Python tracker 

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



[issue35946] Ambiguous documentation for assert_called_with()

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
keywords: +patch, patch, patch
pull_requests: +11800, 11801, 11802
stage:  -> patch review

___
Python tracker 

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



[issue35946] Ambiguous documentation for assert_called_with()

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
keywords: +patch, patch
pull_requests: +11800, 11801
stage:  -> patch review

___
Python tracker 

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



  1   2   >