[issue35927] Intra-package References Documentation Incomplete

2019-02-08 Thread ADataGman


ADataGman  added the comment:

Here's the full error log I receive when using the code I submitted with
both ..effects and sound.effects. It also includes a print out of the sys
path as run from vocoder.

I tried running this in 3.7.2 and still get the same errors. It seems like
it's already on the sys path? I'm not saying there is a bug in python
itself, it's just not at all clear from the documentation that what is
described as being a way to access sibling packages actually works.

Given the attached code sample, as a newb I'd greatly appreciate an example
of how to take that sample and turn it into functioning code with whatever
modifiers is necessary. Ultimately whatever changes are made I'd like to
see reflected in the documentation for the intra-reference section.

PS C:\sound> &
C:/Users/user/AppData/Local/Programs/Python/Python37/python.exe
c:/sound/filters/vocoder.py
Traceback (most recent call last):
  File "c:/sound/filters/vocoder.py", line 7, in 
vocoder.pp()
  File "c:/sound/filters/vocoder.py", line 4, in pp
from ..effects import echo
ValueError: attempted relative import beyond top-level package
PS C:\sound> &
C:/Users/user/AppData/Local/Programs/Python/Python37/python.exe
c:/sound/filters/vocoder.py
Traceback (most recent call last):
  File "c:/sound/filters/vocoder.py", line 7, in 
vocoder.pp()
  File "c:/sound/filters/vocoder.py", line 4, in pp
from sound.effects import echo
ModuleNotFoundError: No module named 'sound'
PS C:\sound> &
C:/Users/user/AppData/Local/Programs/Python/Python37/python.exe
c:/sound/filters/vocoder.py
['c:\\sound\\filters',
'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip',
'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37\\DLLs',
'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37\\lib',
'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37',
'C:\\Users\\user\\AppData\\Roaming\\Python\\Python37\\site-packages',
'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']

On Fri, Feb 8, 2019 at 2:31 PM Terry J. Reedy 
wrote:

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

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



[issue35833] IDLE: revise doc for control chars sent to Shell

2019-02-08 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -11811

___
Python tracker 

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



[issue35833] IDLE: revise doc for control chars sent to Shell

2019-02-08 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue35833] IDLE: revise doc for control chars sent to Shell

2019-02-08 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -11808

___
Python tracker 

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



[issue35833] IDLE: revise doc for control chars sent to Shell

2019-02-08 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -11809

___
Python tracker 

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



[issue35833] IDLE: revise doc for control chars sent to Shell

2019-02-08 Thread miss-islington


miss-islington  added the comment:


New changeset 3fcfef357e64a25afd52ec6a0d1b5284cb162203 by Miss Islington (bot) 
in branch '3.7':
bpo-35833: Revise IDLE doc for control codes sent to Shell. (GH-11799)
https://github.com/python/cpython/commit/3fcfef357e64a25afd52ec6a0d1b5284cb162203


--
nosy: +miss-islington

___
Python tracker 

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



[issue35833] IDLE: revise doc for control chars sent to Shell

2019-02-08 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 8a03ff2ff4db973c9fe152561f1796e72cb71132 by Terry Jan Reedy in 
branch 'master':
bpo-35833: Revise IDLE doc for control codes sent to Shell. (GH-11799)
https://github.com/python/cpython/commit/8a03ff2ff4db973c9fe152561f1796e72cb71132


--
pull_requests: +11810

___
Python tracker 

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



[issue35833] IDLE: revise doc for control chars sent to Shell

2019-02-08 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11810, 11811

___
Python tracker 

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



[issue35833] IDLE: revise doc for control chars sent to Shell

2019-02-08 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch, patch
pull_requests: +11807, 11808
stage: needs patch -> patch review

___
Python tracker 

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



[issue35833] IDLE: revise doc for control chars sent to Shell

2019-02-08 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch, patch, patch
pull_requests: +11807, 11808, 11809
stage: needs patch -> patch review

___
Python tracker 

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



[issue35833] IDLE: revise doc for control chars sent to Shell

2019-02-08 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +11807
stage: needs patch -> patch review

___
Python tracker 

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



[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-02-08 Thread Dong-hee Na


Change by Dong-hee Na :


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

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


--
nosy: +martin.panter

___
Python tracker 

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



[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-02-08 Thread Dong-hee Na


Dong-hee Na  added the comment:

The proposed patch I mentioned on bpo-35939 also solve the above situation.

Python 3.8.0a1+ (heads/bpo-12317:96d37dbcd2, Feb  8 2019, 12:03:40)
[Clang 9.1.0 (clang-902.0.39.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.guess_type("http://example.com;)
(None, None)
>>> mimetypes.guess_type("example.com")
('application/x-msdownload', None)
>>>

I've also added the unit tests of mimetypes-host.patch. It works well.
I think that we close this issue also when the bpo-35939 is closed.

Thanks alot!

--
nosy: +corona10

___
Python tracker 

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



[issue35949] Move PyThreadState into Include/internal/pycore_pystate.h

2019-02-08 Thread Eric Snow

New submission from Eric Snow :

(also see issue #35886)

In November Victor created the Include/cpython directory and moved a decent 
amount of public (but not limited) API there.  This included the PyThreadState 
struct.  I'd like to move it into the "internal" headers since it is somewhat 
coupled to the internal runtime implementation.  The alternative is extra 
complexity.  I ran into this while working on another issue.

There are 2 problems, however, with PyThreadState which make a move potentially 
challenging.  In fact, they could be (but probably aren't) cause for moving it 
back to Include/pystate.h.

1. the docs say: "The only public data member is PyInterpreterState *interp, 
which points to this thread’s interpreter state."
2. the struct has 6 fields that are exposed (likely unintentionally) in 
"stable" header files via the following macros:

  # Include/object.h
  Py_TRASHCAN_SAFE_BEGIN
  Py_TRASHCAN_SAFE_END
  Include.ceval.h
  Py_EnterRecursiveCall
  Py_LeaveRecursiveCall
  _Py_MakeRecCheck
  Py_ALLOW_RECURSION
  Py_END_ALLOW_RECURSION

I'm not sure how that factors into the stable ABI (PyThreadState wasn't ever 
guarded by Py_LIMITED_API).  However, keep in mind that Victor already moved 
PyThreadState out of the "stable" headers in November.

I'm fine with sorting out the situation with the macros if that's okay to do.  
Likewise the promised field ("interp") should be solvable one way or another 
(e.g. remove it or use a private struct).

...or we could do nothing or (if the change in Novemver is a problem) move it 
back to Include/pystate.h.

--
components: Interpreter Core
messages: 335122
nosy: eric.snow, ncoghlan, vstinner
priority: normal
severity: normal
status: open
title: Move PyThreadState into Include/internal/pycore_pystate.h
type: behavior
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



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

2019-02-08 Thread Eric Snow


Change by Eric Snow :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue35948] update version of libffi in cpython-sources-dep

2019-02-08 Thread Steve Dower


Steve Dower  added the comment:

This is complete.

Right now it's a straight merge from the libffi repo, as we want to be on their 
latest to help resolve any remaining bugs. Once they make a stable release, we 
can snap to that.

--
assignee:  -> steve.dower
resolution:  -> fixed
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



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

2019-02-08 Thread Eric Snow


Eric Snow  added the comment:

@Victor, do you see any problems with doing this?  It will help simplify other 
changes I'm working on.

--

___
Python tracker 

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



[issue35947] Update libffi_msvc to current version of libffi

2019-02-08 Thread Paul Monson


Change by Paul Monson :


--
keywords: +patch, patch
pull_requests: +11803, 11804
stage:  -> patch review

___
Python tracker 

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



[issue35947] Update libffi_msvc to current version of libffi

2019-02-08 Thread Paul Monson


Change by Paul Monson :


--
keywords: +patch, patch, patch, patch
pull_requests: +11803, 11804, 11805, 11806
stage:  -> patch review

___
Python tracker 

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



[issue35947] Update libffi_msvc to current version of libffi

2019-02-08 Thread Paul Monson


Change by Paul Monson :


--
keywords: +patch, patch, patch
pull_requests: +11803, 11804, 11806
stage:  -> patch review

___
Python tracker 

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



[issue35947] Update libffi_msvc to current version of libffi

2019-02-08 Thread Paul Monson


Change by Paul Monson :


--
keywords: +patch
pull_requests: +11803
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 Mark Forrer

Mark Forrer  added the comment:

Thank you Rémi!

Thanks,

--Mark--

On Fri, Feb 8, 2019 at 2:39 PM Rémi Lapeyre  wrote:

>
> Rémi Lapeyre  added the comment:
>
> Hi Mark Forrer, I opened a new PR to add this precision to
> assert_called_with documentation.
>
> --
> nosy: +remi.lapeyre
> versions: +Python 3.8
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-02-08 Thread Martin Panter


Change by Martin Panter :


--
dependencies: +Remove urllib.parse._splittype from mimetypes.guess_type

___
Python tracker 

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



[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2019-02-08 Thread Martin Panter

Martin Panter  added the comment:

I haven’t confirmed, but it looks like the original change here broke 
bidirectional reading and writing with a single TextIOWrapper object; see Issue 
35928.

--

___
Python tracker 

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



[issue35928] socket makefile read-write discards received data

2019-02-08 Thread Martin Panter


Martin Panter  added the comment:

Looking over the changelog, my guess (untested) is this is caused by commit 
d6a283b3 for Issue 25862. That change looks like it drops the internal 
TextIOWrapper decoding buffer for each successful write.

I don't have the right version of Python to test with, but I expect this to 
also be broken without using a socket:

>>> f = TextIOWrapper(BufferedRWPair(BytesIO(b"Hello\nYou\n"), BytesIO()))
>>> f.readline()
'Hello\n'
>>> f.write(_)
6
>>> f.readline()  # Does this now return EOF?
'You\n'

--
keywords: +3.6regression
nosy: +martin.panter

___
Python tracker 

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



[issue35948] update version of libffi in cpython-sources-dep

2019-02-08 Thread Paul Monson


New submission from Paul Monson :

libffi needs to be updated to the current version for Windows builds to make it 
easier to add ARM support

--
components: Windows, ctypes
messages: 335116
nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: update version of libffi in cpython-sources-dep
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



[issue35947] Update libffi_msvc to current version of libffi

2019-02-08 Thread Paul Monson


New submission from Paul Monson :

libffi needs to be updated to the current version for Windows builds to make it 
easier to add ARM support

--
components: Windows, ctypes
messages: 335115
nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Update libffi_msvc to current version of libffi
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



[issue35904] Add statistics.fmean(seq)

2019-02-08 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Would you like me to submit a PR with docs and tests?

--

___
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

Rémi Lapeyre  added the comment:

Hi Mark Forrer, I opened a new PR to add this precision to assert_called_with 
documentation.

--
nosy: +remi.lapeyre
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



[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



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



[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



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

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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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, ___spec__);
if (_PyModuleSpec_IsInitializing(spec)) {
PyObject *value = _PyObject_CallMethodIdObjArgs(interp->importlib,
__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:

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, ___spec__);
if (_PyModuleSpec_IsInitializing(spec)) {
PyObject *value = _PyObject_CallMethodIdObjArgs(interp->importlib,
__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



[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



[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



[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



[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

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



[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



[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



[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



[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



[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



[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



[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



[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



[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



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

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



[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



[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



[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



[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

___
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



[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

___
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



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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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


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


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


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



  1   2   >