[issue38129] Situs Judi Online Terpercaya

2019-09-12 Thread Situs Judi Online Terpercaya


New submission from Situs Judi Online Terpercaya :

Situs https://sukabet.co/ adalah situs judi online terpercaya Indonesia yang 
menyediakan permainan judi online dan memberikan jaminan 100% menang tanpa 
kekalahan

--
components: Distutils
files: images (3).jpg
messages: 352053
nosy: dstufft, eric.araujo, situsjudionlineterpercaya
priority: normal
severity: normal
status: open
title: Situs Judi Online Terpercaya
type: compile error
versions: Python 3.6
Added file: https://bugs.python.org/file48605/images (3).jpg

___
Python tracker 

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



[issue38129] Spam

2019-09-12 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
title: Situs Judi Online Terpercaya -> Spam

___
Python tracker 

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



[issue38129] Spam

2019-09-12 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


Removed file: https://bugs.python.org/file48605/images (3).jpg

___
Python tracker 

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



[issue38129] Spam

2019-09-12 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


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

___
Python tracker 

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



[issue38106] Race in PyThread_release_lock - can lead to memory corruption and deadlock

2019-09-12 Thread Kirill Smelkov


Kirill Smelkov  added the comment:

I agree it seems like a design mistake. Not only it leads to suboptimal
implementations, but what is more important, it throws misuse risks onto the 
user.

--

___
Python tracker 

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



[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I wanted to merge the PR of Joannah but I have a question, are you sure that 
there is nobody using this module. Maybe we could add a warning when a user 
tries to use the module/function with a DeprecationWarning.

Could we have a wrapper raising the warning when we call it and redirect to the 
new function?

Thank you

--
nosy: +matrixise

___
Python tracker 

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



[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Mohammad Dehghan


Change by Mohammad Dehghan :


--
assignee: docs@python
components: Documentation
nosy: Mohammad Dehghan, docs@python
priority: normal
severity: normal
status: open
title: Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` 
bullet points))
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue38120] DeprecationWarning in test_random due to invalid seed arguments

2019-09-12 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue38120] DeprecationWarning in test_random due to invalid seed arguments

2019-09-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a06d683d7fd88721eaf59abcf5b02eb82045c7b1 by Serhiy Storchaka 
(Xtreak) in branch 'master':
bpo-38120: Fix DeprecationWarning in test_random for invalid type of arguments 
to random.seed. (GH-15987)
https://github.com/python/cpython/commit/a06d683d7fd88721eaf59abcf5b02eb82045c7b1


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Mohammad Dehghan


New submission from Mohammad Dehghan :

In section 8.6 of the tutorials page 
(https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions), the 
first item of the bullet points explaining some situations about finally 
clause, states that

> If an exception occurs during execution of the try clause, the exception may 
> be handled by an except clause. **In all cases, the exception is re-raised 
> after the finally clause has been executed.**

This is wrong, since the exception is not re-raised if an `except` clause 
handles the exception.

--
nosy:  -docs@python

___
Python tracker 

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



[issue38106] Race in PyThread_release_lock - can lead to memory corruption and deadlock

2019-09-12 Thread Armin Rigo


Armin Rigo  added the comment:

I agree with your analysis.  I guess you (or someone) needs to write an 
explicit pull request, even if it just contains 187aa545165d cherry-picked.  
(I'm not a core dev any more nowadays)

--

___
Python tracker 

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



[issue38129] Spam

2019-09-12 Thread Zachary Ware


Change by Zachary Ware :


--
components:  -Distutils
nosy:  -dstufft, eric.araujo, situsjudionlineterpercaya
type: compile error -> 
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



[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Mohammad Dehghan


Mohammad Dehghan  added the comment:

I submitted a PR for this:
https://github.com/python/cpython/pull/16016

--

___
Python tracker 

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



[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2019-09-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Let's keep it open if you don't give up the issue entirely.

--

___
Python tracker 

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



[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue35264] SSL Module build fails with OpenSSL 1.1.0 for Python 2.7

2019-09-12 Thread Christian Heimes


Change by Christian Heimes :


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

___
Python tracker 

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



[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow


Eric Snow  added the comment:

@db3l, I'll take a look right away.

--

___
Python tracker 

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



[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Other discussion with Zach, and at the end, there is no problem to merge your 
PR.

Thank you for your contribution

--

___
Python tracker 

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



[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:


New changeset 92777d5e5aed1753bafe07265dbe98b2d271815b by Stéphane Wirtel 
(Joannah Nanjekye) in branch 'master':
bpo-18578: Rename and document test.bytecode_helper as 
test.support.bytecode_helper (GH-15168)
https://github.com/python/cpython/commit/92777d5e5aed1753bafe07265dbe98b2d271815b


--

___
Python tracker 

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



[issue32820] Add __format__ method to ipaddress

2019-09-12 Thread Zachary Ware


Zachary Ware  added the comment:


New changeset f9c95a4ba24c52eb1c052e3052d677e90a429a9a by Zachary Ware 
(ewosborne) in branch 'master':
bpo-32820: __format__ method for ipaddress (#5627)
https://github.com/python/cpython/commit/f9c95a4ba24c52eb1c052e3052d677e90a429a9a


--
nosy: +zach.ware

___
Python tracker 

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



[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2019-09-12 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.9 -Python 3.8

___
Python tracker 

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



[issue32820] Add and document __format__ method for IPv[46]Address

2019-09-12 Thread Zachary Ware


Zachary Ware  added the comment:

The enhancement patch is merged, but it occurs to me after the fact that this 
could use some documentation, and possibly a mention in whatsnew.  I'll leave 
this open as a documentation issue.

--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
stage: patch review -> needs patch
title: Add __format__ method to ipaddress -> Add and document __format__ method 
for IPv[46]Address
versions: +Python 3.9 -Python 3.8

___
Python tracker 

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



[issue38123] Unable to find Python3.8.0b4 on Ubuntu 19004 desktop

2019-09-12 Thread Zachary Ware


Zachary Ware  added the comment:

If calling /usr/local/bin/python3.8 directly works as expected, there's nothing 
for us to do here so I'm going to go ahead and close the issue.  Please reopen 
if you can demonstrate a real bug in the installation code, though!

--
nosy: +zach.ware
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue37879] Segfaults in C heap type subclasses

2019-09-12 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset 5e9caeec76119a0d61c25f1466c27b7dbd5115bd by Petr Viktorin in 
branch 'master':
bpo-37879: Fix warnings in _testcapimodule (GH-16004)
https://github.com/python/cpython/commit/5e9caeec76119a0d61c25f1466c27b7dbd5115bd


--

___
Python tracker 

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



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset a65678c5c90002c5e40fa82746de07e6217df625 by Benjamin Peterson 
(Greg Price) in branch 'master':
bpo-37760: Convert from length-18 lists to a dataclass, in makeunicodedata. 
(GH-15265)
https://github.com/python/cpython/commit/a65678c5c90002c5e40fa82746de07e6217df625


--

___
Python tracker 

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



[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow


Change by Eric Snow :


--
pull_requests: +15640
pull_request: https://github.com/python/cpython/pull/16017

___
Python tracker 

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



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


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



[issue37758] unicodedata checksum-tests only test 1/17th of Unicode's codepoints

2019-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 6954be815a16fad11d1d66be576865bbbeb2b97d by Benjamin Peterson 
(Greg Price) in branch 'master':
closes bpo-37758: Extend unicodedata checksum tests to cover all of Unicode. 
(GH-15125)
https://github.com/python/cpython/commit/6954be815a16fad11d1d66be576865bbbeb2b97d


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



[issue21120] PyArena type is used in headers from the limited API

2019-09-12 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset 421a72af4deaec96a49a79951b9c2546a2faa13d by Mark Shannon (Zackery 
Spytz) in branch 'master':
bpo-21120: Exclude Python-ast.h, ast.h and asdl.h from the limited API (#14634)
https://github.com/python/cpython/commit/421a72af4deaec96a49a79951b9c2546a2faa13d


--

___
Python tracker 

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



[issue32312] Create Py_AtExitRegister C API

2019-09-12 Thread STINNER Victor


STINNER Victor  added the comment:

Joannah Nanjekye asked me to have a look at this issue.

The existing Py_AtExit() C function is very low-level: it's called very late in 
Py_Finalize(), when the Python runtime is already destroyed.

I understand that the need here is to call C code which would still like to 
access the Python C API.

I propose the following C API:

   void Py_AtExitRegister(PyObject* (*func) (void *data), void *data)

which would call func(data).

The return type is void since I don't see any practical way to log an useful 
warning if a function fails: we only gets its memory address, we cannot log 
that. The callback function ('func') should be responsible to log errors itself 
(ex: using PySys_WriteStderr which writes into sys.stderr).


Neil:
> It would be handy to have a C API that registered an atexit function, similar 
> to what calling atexit.register does.  This API could be used by C extension 
> modules to register atexit functions.


The PyModuleDef already has 2 slots to call code at Python exit:
  void m_clear(PyObject *module)
and:
  void m_free(void *data).

But these callbacks can be late in Py_Finalize(), while Python runtime is being 
destroyed: when all modules are unloaded.

atexit.register() callbacks are different: they are called "early" in 
Py_Finalize(), when Python is still fully working.

I guess that Py_AtExitRegister() callbacks should also be called when Python is 
still fully working, right?

Apart C extensions, Py_AtExitRegister() also sounds interesting when Python is 
embedded in an application. For example, if you call Py_Main() or Py_RunMain(), 
you cannot easily execute arbitrary C code just before Py_Finalize().



Antoine:
> Calling "atexit.register" using the C API isn't very difficult. The annoying 
> part is to wrap a simple C function pointer in a callable PyObject (I don't 
> think there is a simple C API for that).

We could store C callbacks as C function pointers. We can have 2 lists of 
functions in the atexit module: one for Python function, one for C functions 
(registered using the C API). I would suggest to call Python functions first, 
and then call C functions.

--

I changed my mind, and I now consider that adding a public function would be 
useful. Sorry, first I misunderstood the use cases.

--

___
Python tracker 

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



[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Hi Mohammad,

Could you sign the CLA?

Thank you

--
nosy: +matrixise
versions:  -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



[issue38121] Synchronize importlib.metadata with importlib_metadata 0.22

2019-09-12 Thread Paul Ganssle


Paul Ganssle  added the comment:


New changeset 8ed6503eca4e3ea4949479d8d7fd9ffd54f81038 by Paul Ganssle (Jason 
R. Coombs) in branch 'master':
bpo-38121: Sync importlib.metadata with 0.22 backport (GH-15993)
https://github.com/python/cpython/commit/8ed6503eca4e3ea4949479d8d7fd9ffd54f81038


--
nosy: +p-ganssle

___
Python tracker 

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



[issue26050] Add new StreamReader.readuntil() method

2019-09-12 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

StreamReader and StreamWriter were merged to Stream with issue36889 and there 
were also docs added for it along with asyncio docs rewritten. I am closing 
this as fixed. Feel free to reopen if needed. Thanks.

--
nosy: +xtreak
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



[issue21120] PyArena type is used in headers from the limited API

2019-09-12 Thread Mark Shannon


Change by Mark Shannon :


--
stage: patch review -> resolved

___
Python tracker 

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



[issue21120] PyArena type is used in headers from the limited API

2019-09-12 Thread Mark Shannon


Change by Mark Shannon :


--
status: open -> closed

___
Python tracker 

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



[issue37409] relative import without parent succeeds with builtins.__import__

2019-09-12 Thread Brett Cannon


Brett Cannon  added the comment:

Thanks for catching the warning and the fix, Karthikeyan!

--

___
Python tracker 

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



[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-12 Thread Paul Ganssle


Paul Ganssle  added the comment:

Sorry guys, my mistake. I think I was a bit caught up in the workflow at the 
sprint where I've been going through the review-cleanup-merge process a lot 
faster than I usually do (partially since I have the time and partially since 
the huge number of PRs getting merged is requiring a lot of rebases, so it's 
better to get them in quicker).

No need to worry, I will not merge any of your PRs in the future unless you 
request it for some reason.

--

___
Python tracker 

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



[issue27589] asyncio doc: issue in as_completed() doc

2019-09-12 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Current docs read as below with an example to show that earliest future is 
returned. I guess this can be closed.

https://docs.python.org/dev/library/asyncio-task.html#asyncio.as_completed

Run awaitable objects in the aws set concurrently. Return an iterator of Future 
objects. Each Future object returned represents the earliest result from the 
set of the remaining awaitables.

--
nosy: +asvetlov, xtreak

___
Python tracker 

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



[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-12 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
assignee:  -> michael.foord

___
Python tracker 

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



[issue32395] asyncio.StreamReader.readuntil is not general enough

2019-09-12 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I think this is a duplicate of issue37141 where multiple separators are 
requested for readuntil. I guess we can close one of them as duplicates.

--
nosy: +xtreak

___
Python tracker 

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



[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-12 Thread Gregory P. Smith


Change by Gregory P. Smith :


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

___
Python tracker 

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



[issue27589] asyncio doc: issue in as_completed() doc

2019-09-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



[issue32395] asyncio.StreamReader.readuntil is not general enough

2019-09-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Agree

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Allow multiple separators in Stream.readuntil

___
Python tracker 

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



[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

i reopened this without diving into the code to better understand based on 
Samuels comment.

We could really do with a testcase that demonstrates the misleading error 
message problem for some test driven development here.

--
keywords:  -patch
stage: needs patch -> test needed

___
Python tracker 

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



[issue37829] Documentation of stdlib: add example of mixed arguments to dict()

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Thank you for your contribution, merged into master.

--
nosy: +matrixise
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 2.7, 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



[issue37879] Segfaults in C heap type subclasses

2019-09-12 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset 3562ae25402aad36583bc27d4d82c67554323d5e by Petr Viktorin in 
branch '3.8':
[3.8] bpo-37879: Suppress subtype_dealloc decref when base type is a C heap 
type (GH-15323, GH-16004) (GH-15966)
https://github.com/python/cpython/commit/3562ae25402aad36583bc27d4d82c67554323d5e


--

___
Python tracker 

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



[issue32847] Add DirectoryNotEmptyError subclass of OSError

2019-09-12 Thread STINNER Victor


STINNER Victor  added the comment:

Copy of my comment on the review:
https://github.com/python/cpython/pull/15496#pullrequestreview-287311626

I'm not excited by adding a new builtin symbol: IMHO this module already exists 
too many symbols.

I'm not convinced that it's worth it. There is exactly 0 line of code in 
CPython code base which expects ENOTEMPTY errno. So it looks like an artifical 
use case.

I recall that when PEP 3151 was implemented, the implementation replaced a lot 
of code using "except OSError as exc: if exc.errno == XXX: ... else: raise" 
with "except : ..." which was neat.

But again, I don't see any usage of ENOTEMPTY in the Python stdlib.

Are you aware of 3rd party code expecting ENOTEMPTY? How many projects?

Adding a builtin symbol is a significant change, it should be well motived.

--

___
Python tracker 

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



[issue32847] Add DirectoryNotEmptyError subclass of OSError

2019-09-12 Thread STINNER Victor


STINNER Victor  added the comment:

> Python's code base never specifically handles ENOTEMPTY.

Right, so this use case looks artificial to me.


> On the other hand, in terms of basic operations on files and directories, I 
> think implementing DirectoryNotEmptyError follows naturally from the existing 
> set: FileNotFoundError, FileExistsError, NotADirectoryError, and 
> IsADirectoryError.

Again, I consider that we must not add one exception per errno, since the 
Python errno module contains 133 error codes on Linux. Many are very rare and 
don't deserve to add a new symbol to the builtins module.

I suggest to close this issue.

If later someone wants to get DirectoryNotEmptyError, please open a new issue 
with statistics of how many 3rd party projects use ENOTEMPTY.

--

___
Python tracker 

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



[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow


Eric Snow  added the comment:


New changeset 64535fc6c0712caef0bc46be30e661f7ccf8280e by Eric Snow in branch 
'master':
bpo-36876: Skip test_check_c_globals for now. (gh-16017)
https://github.com/python/cpython/commit/64535fc6c0712caef0bc46be30e661f7ccf8280e


--

___
Python tracker 

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



[issue37405] socket.getsockname() returns string instead of tuple

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15641
pull_request: https://github.com/python/cpython/pull/16018

___
Python tracker 

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



[issue37405] socket.getsockname() returns string instead of tuple

2019-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 954900a3f98a8c0dea14dd575490237f3f8626b3 by Benjamin Peterson 
(bggardner) in branch 'master':
closes bpo-37405: Make socket.getsockname() always return a tuple for AF_CAN. 
(GH-14392)
https://github.com/python/cpython/commit/954900a3f98a8c0dea14dd575490237f3f8626b3


--
nosy: +benjamin.peterson
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



[issue38127] A fatal error when running test_ctypes

2019-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset ea683deccc505a781eb8c6a88b0835ad5151 by Benjamin Peterson 
(Zackery Spytz) in branch 'master':
closes bpo-38127: _ctypes: PyObject_IsSubclass() should be checked for failure. 
(GH-16011)
https://github.com/python/cpython/commit/ea683deccc505a781eb8c6a88b0835ad5151


--
nosy: +benjamin.peterson
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



[issue38127] A fatal error when running test_ctypes

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15643
pull_request: https://github.com/python/cpython/pull/16020

___
Python tracker 

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



[issue38127] A fatal error when running test_ctypes

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15642
pull_request: https://github.com/python/cpython/pull/16019

___
Python tracker 

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



[issue38008] ContextManager and AsyncContextManager protocols can't be subclassed

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15644
pull_request: https://github.com/python/cpython/pull/16021

___
Python tracker 

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



[issue38008] ContextManager and AsyncContextManager protocols can't be subclassed

2019-09-12 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:


New changeset 692a0dc91597b7fb350383b633dc4d044cbd360e by Ivan Levkivskyi 
(Divij Rajkumar) in branch 'master':
bpo-38008: Move builtin protocol whitelist to mapping instead of list (GH-15647)
https://github.com/python/cpython/commit/692a0dc91597b7fb350383b633dc4d044cbd360e


--

___
Python tracker 

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



[issue37141] Allow multiple separators in Stream.readuntil

2019-09-12 Thread Bruce Merry


Bruce Merry  added the comment:

I finally have permission from my employer to sign the contributors agreement, 
so I'll take a stab at this when I have some free time (unless nobody else gets 
to it first).

--

___
Python tracker 

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



[issue38131] compile(mode='eval') uninformative error message

2019-09-12 Thread Ilya Kamenshchikov


New submission from Ilya Kamenshchikov :

While trying to construct a valid ast node programmatically, I have tried 
following: 

import ast

tree = ast.BinOp(left=ast.Num(n=2), right=ast.Num(n=2), op=ast.Add())
expr = ast.Expression(body=[tree])
ast.fix_missing_locations(expr)
exe = compile(expr, filename="", mode="eval")
print(eval(exe))

Unfortunately this gives unhelpful error message:

>>>exe = compile(expr, filename="", mode="eval")
TypeError: required field "lineno" missing from expr

Turns out I need to make body of ast.Expression not a list, but a node:
expr = ast.Expression(body=tree)  # works

Confusion also comes from naming the field "body", which takes value of a list 
for ast.Module and some others.

--
components: Library (Lib)
messages: 352090
nosy: Ilya Kamenshchikov
priority: normal
severity: normal
status: open
title: compile(mode='eval') uninformative error message
versions: 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



[issue13927] Document time.ctime format

2019-09-12 Thread Paul Ganssle


Paul Ganssle  added the comment:


New changeset 2d32bf1ef23c9e468b2e8afab3c24e7a2047ac36 by Paul Ganssle 
(Harmandeep Singh) in branch 'master':
bpo-13927: time.ctime and time.asctime return string explantion (GH-11303)
https://github.com/python/cpython/commit/2d32bf1ef23c9e468b2e8afab3c24e7a2047ac36


--
nosy: +p-ganssle

___
Python tracker 

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



[issue13927] Document time.ctime format

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15645
pull_request: https://github.com/python/cpython/pull/16022

___
Python tracker 

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



[issue38127] A fatal error when running test_ctypes

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 79cbaf50ac9530d507149402de5c84fa590d9cfb by Miss Islington (bot) 
in branch '3.8':
closes bpo-38127: _ctypes: PyObject_IsSubclass() should be checked for failure. 
(GH-16011)
https://github.com/python/cpython/commit/79cbaf50ac9530d507149402de5c84fa590d9cfb


--
nosy: +miss-islington

___
Python tracker 

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



[issue36675] Doctest directives and comments missing from code samples

2019-09-12 Thread Julien Palard


Julien Palard  added the comment:

I opened an issue on the sphinx-doc repo [1] to check if it would be possible 
to have an option in doctest blocks to not trim them.

We previously had a hack in Doc/tools/extensions/pyspecific.py to patch sphinx 
to not trim them for the doctest.rst file. But sphinx deprecated the hack we 
used :(

[1]: https://github.com/sphinx-doc/sphinx/issues/6698

--

___
Python tracker 

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



[issue38127] A fatal error when running test_ctypes

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 197ac1ad1c03243c647aa9100edbaa16bebbb7e9 by Miss Islington (bot) 
in branch '3.7':
closes bpo-38127: _ctypes: PyObject_IsSubclass() should be checked for failure. 
(GH-16011)
https://github.com/python/cpython/commit/197ac1ad1c03243c647aa9100edbaa16bebbb7e9


--

___
Python tracker 

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



[issue13927] Document time.ctime format

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 1e17c4d414049ad2b5b6a0a53685efc7a550c5c5 by Miss Islington (bot) 
in branch '3.8':
bpo-13927: time.ctime and time.asctime return string explantion (GH-11303)
https://github.com/python/cpython/commit/1e17c4d414049ad2b5b6a0a53685efc7a550c5c5


--
nosy: +miss-islington

___
Python tracker 

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



[issue38008] ContextManager and AsyncContextManager protocols can't be subclassed

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 52baf90a74f3a4573f4266bb4ca8569534db42a9 by Miss Islington (bot) 
in branch '3.8':
bpo-38008: Move builtin protocol whitelist to mapping instead of list (GH-15647)
https://github.com/python/cpython/commit/52baf90a74f3a4573f4266bb4ca8569534db42a9


--
nosy: +miss-islington

___
Python tracker 

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



[issue37405] socket.getsockname() returns string instead of tuple

2019-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset f60fd95dcc189ace8c0a2177a394b9cc20389a1e by Benjamin Peterson 
(Miss Islington (bot)) in branch '3.8':
closes bpo-37405: Make socket.getsockname() always return a tuple for AF_CAN. 
(GH-14392) (GH-16018)
https://github.com/python/cpython/commit/f60fd95dcc189ace8c0a2177a394b9cc20389a1e


--

___
Python tracker 

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



[issue13927] Document time.ctime format

2019-09-12 Thread Paul Ganssle


Paul Ganssle  added the comment:

We've merged the PR and I think it resolves this issue, so we can close this 
issue now. Please let me know if it's not fully resolved and we can re-open.

Thanks Roger for reporting this and Harmandeep for making the PR and requested 
changes.

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

___
Python tracker 

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



[issue38132] Simplify hashlib implementation

2019-09-12 Thread Christian Heimes


New submission from Christian Heimes :

The hashlib module uses complicated macros and some pointless optimization. The 
code can be simplified to make maintenance easier. Cleanup also makes it easier 
to get rid of static global state and to add "usedforsecurity" feature.

* The EVPobject contains a PyObject* with the name of the hashing algorithm as 
PyUnicode object. The name is rarely used and can be efficiently calculated 
from a const char* of the EVP_MD_CTX.

* The module caches pre-generated EVP_MD_CTX objects for commonly used hashes 
like sha256. Tests with timeit has shown that generating a EVP_MD_CTX from a 
EVP constructor is as fast as copying and reinitializing a EVP_MD_CTX.

* The pre-calculated constructs can be replaced with argument clinic to make 
the code more readable.

--
assignee: christian.heimes
components: Extension Modules
messages: 352099
nosy: christian.heimes, gregory.p.smith
priority: normal
severity: normal
status: open
title: Simplify hashlib implementation
type: enhancement
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue38132] Simplify hashlib implementation

2019-09-12 Thread Charalampos Stratakis


Charalampos Stratakis  added the comment:

Yes that would be awesome!

Indeed hashlib has been a bit of a pain to work with especially with FIPS 
related modifications, simplifying it would help a ton.

--
nosy: +cstratak

___
Python tracker 

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



[issue38122] AsyncMock force always creating an AsyncMock for child mocks

2019-09-12 Thread Michael Foord


Michael Foord  added the comment:

That may change though, right?

In general I dislike the proliferation of keyword arguments if it's at all 
possible to avoid. I added way too many of them originally and the mock API is 
really big.

--

___
Python tracker 

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



[issue37972] unittest.mock.call does not chain __getitem__ to another _Call object

2019-09-12 Thread Roundup Robot


Roundup Robot  added the comment:


New changeset db0d8a5b2c803d30d9df436e00b6627ec8e09a13 by Michael Foord (Miss 
Islington (bot)) in branch '3.8':
bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ 
chaining so that call() can be subscriptable (GH-15565) (GH-15965)
https://github.com/python/cpython/commit/db0d8a5b2c803d30d9df436e00b6627ec8e09a13


--

___
Python tracker 

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



[issue38132] Simplify hashlib implementation

2019-09-12 Thread Christian Heimes


Change by Christian Heimes :


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

___
Python tracker 

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



[issue36675] Doctest directives and comments missing from code samples

2019-09-12 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +15647
pull_request: https://github.com/python/cpython/pull/16024

___
Python tracker 

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



[issue9938] Add optional keyword argument exit_on_error to argparse.ArgumentParser

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset f545638b5701652ffbe1774989533cdf5bc6631e by Miss Islington (bot) 
(Hai Shi) in branch 'master':
bpo-9938: Add optional keyword argument exit_on_error to 
argparse.ArgumentParser (GH-15362)
https://github.com/python/cpython/commit/f545638b5701652ffbe1774989533cdf5bc6631e


--
nosy: +miss-islington

___
Python tracker 

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



[issue9938] Add optional keyword argument exit_on_error to argparse.ArgumentParser

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Thank you for your PR and for your time, I have merged the PR into master.

--
nosy: +matrixise
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



[issue38086] Synchronize importlib.metadata with importlib_metadata 0.21

2019-09-12 Thread Jason R. Coombs


Change by Jason R. Coombs :


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



[issue34632] Port importlib_metadata to Python 3.8

2019-09-12 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I've addressed the requests made by rhettinger in issue38086 and issue38121.

--
status: open -> closed

___
Python tracker 

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



[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-12 Thread Michael Foord


Michael Foord  added the comment:

The code around whether or not to swallow self is hairy. Even if the original 
spec object is a class we may still be mocking an instance of the class (we 
don't want users to have to create an instance just to be able to use it as a 
spec). So we have to carry metadata about whether or not we're mocking an 
instance. But we also have to support the use case of when users are mocking an 
actual class object. 

This gets potentially recursive in the case of autospec and has to apply to the 
class object itself. If we're mocking an instance that is callable then the 
signature on the top level mock should be taken from __call__. If we're mocking 
the constructor the signature comes from __init__.

So it's all complicated. And when I originally wrote the code it was worse as 
it predated inspect.Signature (and was one of the driving use cases for it) and 
created functions with the right signature by exec'ing code.

So it's better code than it used to be, but I'm still scared of it and that 
particular bug came in the switch to use sig.bind which I didn't write.

--

___
Python tracker 

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



[issue38133] py.exe cannot locate Store package

2019-09-12 Thread Steve Dower


New submission from Steve Dower :

The py.exe launcher cannot locate installations from the Store (unless you have 
no other installations on your machine, which is unlikely).

--
assignee: steve.dower
components: Windows
messages: 352107
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: py.exe cannot locate Store package
type: behavior
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue38133] py.exe cannot locate Store package

2019-09-12 Thread Steve Dower


Change by Steve Dower :


--
keywords: +patch
pull_requests: +15648
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/16025

___
Python tracker 

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



[issue32008] Example suggest to use a TLSv1 socket

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15649
pull_request: https://github.com/python/cpython/pull/16026

___
Python tracker 

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



[issue32008] Example suggest to use a TLSv1 socket

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:


New changeset 894d0f7d5542ee04556ec1bee8c58506f7c916d4 by Stéphane Wirtel 
(Christian Heimes) in branch 'master':
bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797)
https://github.com/python/cpython/commit/894d0f7d5542ee04556ec1bee8c58506f7c916d4


--
nosy: +matrixise

___
Python tracker 

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



[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-12 Thread Samuel Freilich


Samuel Freilich  added the comment:

Check out my PR, which solves a much smaller issue: It fixes a bug in the 
exception raising logic in assert_has_calls (and _awaits) which makes 
complicated problems like the one you mention much harder to debug.

Also it has tests!

--

___
Python tracker 

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



[issue32008] Example suggest to use a TLSv1 socket

2019-09-12 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
pull_requests: +15650
pull_request: https://github.com/python/cpython/pull/16027

___
Python tracker 

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



[issue37609] support "UNC" device paths in ntpath.splitdrive

2019-09-12 Thread Steve Dower


Steve Dower  added the comment:

For clarity, given Eryk's examples above, both "\\?\UNC\" and "//?/UNC/" are 
okay (as are any combination of forward and backslashes in the prefix, as 
normalization will be applied for any except the "\\?\" version). "UNC" is also 
case-insensitive.

--

___
Python tracker 

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



[issue38134] Remove copy of fast PBKDF2 algorithm

2019-09-12 Thread Christian Heimes


New submission from Christian Heimes :

bpo #18582 added a C implementation of PBKDF2 algorithm. Back then Python still 
supported OpenSSL versions with a slow version of PBKDF2-HMAC. Nowadays all 
supported OpenSSL versions contain an optimized version of the password 
derivation algorithm.

--
assignee: christian.heimes
components: Extension Modules
messages: 352111
nosy: christian.heimes
priority: normal
severity: normal
stage: needs patch
status: open
title: Remove copy of fast PBKDF2 algorithm
type: enhancement
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue38133] py.exe cannot locate Store package

2019-09-12 Thread Steve Dower


Steve Dower  added the comment:

I added an "exe_display" override for listing paths, since the full path to the 
store app is not supposed to be used by users (it's different from 
sys.executable) and is only going to work when the shorter name is on PATH 
anyway (due to a limitation in Windows that I'm still trying to get fixed).

I also enabled support for the ExecutablePath key, which has the added benefit 
of making the debug py_d.exe able to find release Python 3.5+ installs (as well 
as finding the Store install at all, which is now using python3.8.exe as the 
main file because of the limitation I mentioned above).

--

___
Python tracker 

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



[issue37967] Beta GPG signature check failing

2019-09-12 Thread Ned Deily


Ned Deily  added the comment:

> If the pubkeys.txt on python.org has no benefit, why does it exist?

That's an excellent question!  Based on the points raised here and elsewhere, 
we discussed this more off-line and decided that we should remove the 
pubkeys.txt file from the website since, as noted here, it encourages a false 
sense of security and has proven difficult to keep up-to-date.

I have submitted a request to have the file removed from the website (it may 
take some time for the URL to disappear) and have already updated the wording 
in the OpenPGP section of the Downloads page of the website.  If anyone has 
suggestions for improvements to the wording, feel free to submit them on the 
pythondotorg issue tracker.

Thanks all for bringing this up and helping to come to a resolution.

https://www.python.org/downloads/
https://github.com/python/pythondotorg/pull/1509
https://github.com/python/pythondotorg/issues

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



[issue38110] Use fdwalk() within os.closerange() impl if available

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 84eb42e3c90c03f13262f19185b14566e10941ac by Miss Islington (bot) 
in branch '3.8':
bpo-38110: Use fdwalk for os.closerange() when available. (GH-15224)
https://github.com/python/cpython/commit/84eb42e3c90c03f13262f19185b14566e10941ac


--
nosy: +miss-islington

___
Python tracker 

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



[issue38135] Depth first search in compile.c creates wrong BB order for certain CFG.

2019-09-12 Thread Mark Shannon


New submission from Mark Shannon :

Consider a flow graph of four nodes, A, B, C, D
where the A, B, C are "next" successors of each other (in order) and C branches 
to B and B branches to D. Note that there is no "next" link to the D block.

The correct order is A, B, C, D but the 'dfs' function in compile.c produces 
the order A, B, D, C.

This is not an issue with the current compiler as it always add the "next" link 
from C to D, but this will become an issue when we use a more powerful CFG 
based optimizer than the current "peephole" optimizer.

--
assignee: Mark.Shannon
components: Interpreter Core
messages: 352114
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Depth first search in compile.c creates wrong BB order for certain CFG.
versions: Python 3.9

___
Python tracker 

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



[issue35685] Add samples on patch.dict of the use of decorator and in class

2019-09-12 Thread Julien Palard


Julien Palard  added the comment:

We're using assert instead of assertEqual to denote that we're not "testing 
unittest" but asserting that unittest work as documented. Whch is semantically 
a bit different.

Unittesting unittest using unittest works, but using unittest test to test 
unittest as documentation example could lead the reader to having hard time 
figuring what's what. I think using assert here disambiguate the whole thing.

--
nosy: +mdk

___
Python tracker 

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



[issue38135] Depth first search in compile.c creates wrong BB order for certain CFG.

2019-09-12 Thread Mark Shannon


Change by Mark Shannon :


--
nosy: +pablogsal

___
Python tracker 

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



[issue32008] Example suggest to use a TLSv1 socket

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:


New changeset 07b4148f3932ed22f9cd8476f49bd0079d093590 by Stéphane Wirtel (Miss 
Islington (bot)) in branch '3.7':
bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797) (GH-16026)
https://github.com/python/cpython/commit/07b4148f3932ed22f9cd8476f49bd0079d093590


--

___
Python tracker 

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



[issue38134] Remove copy of fast PBKDF2 algorithm

2019-09-12 Thread Christian Heimes


Change by Christian Heimes :


--
keywords: +patch
pull_requests: +15651
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/16028

___
Python tracker 

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



[issue9938] Add optional keyword argument exit_on_error to argparse.ArgumentParser

2019-09-12 Thread hai shi

hai shi  added the comment:

Stéphane, thanks for your good comment. Some argparse's bpo is too old ;)

--

___
Python tracker 

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



[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-12 Thread Michael Foord


Michael Foord  added the comment:

(The code that generated functions was originally borrowed from the decorator 
module by Michele Simionato. When I first started in Python, around 2002, I was 
impressed by the Python community as it had two very prominent women amongst 
the part of the community I inhabited. Nicola Larosa and Michele Simionato. It 
turned out they were both Italian men.)

--

___
Python tracker 

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



[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2019-09-12 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
keywords: +patch
pull_requests: +15652
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/16029

___
Python tracker 

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



[issue36675] Doctest directives and comments missing from code samples

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15653
pull_request: https://github.com/python/cpython/pull/16030

___
Python tracker 

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



[issue36675] Doctest directives and comments missing from code samples

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset 2c910c1e732c9a3ec4c67a7c43d789d6c729304a by Gregory P. Smith 
(Julien Palard) in branch 'master':
bpo-36675: Remove obsolete code. (GH-16024)
https://github.com/python/cpython/commit/2c910c1e732c9a3ec4c67a7c43d789d6c729304a


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue38133] py.exe cannot locate Store package

2019-09-12 Thread Steve Dower


Steve Dower  added the comment:

Sample output after this change (some paths elided):

Installed Pythons found by ...\py.exe Launcher for Windows
 (venv) C:\...\env\Scripts\python.exe *
 -3.8-64python3.8.exe
 -3.7-32-32 C:\Python37_x86\python.exe
 -3.7-64C:\Python37_x64\python.exe
 -3.6-32-32 C:\Python36_x86\python.exe
 -3.6-64C:\Users\...\AppData\Local\Programs\Python\Python36\python.exe
 -3.5-32-32 C:\Python35_x86\python.exe
 -3.5-64C:\Python35_x64\python.exe
 -3.4-64C:\Python34_x64\python.exe
 -3.3-64C:\Python33_x64\python.exe
 -3.3-32C:\Python33_x86\python.exe
 -3.2-64C:\Python32_x64\python.exe
 -3.2-32C:\Python32_x86\python.exe
 -3.1-64C:\Python31_x64\python.exe
 -3.1-32C:\Python31_x86\python.exe
 -3.0-32C:\Python30_x86\python.exe
 -2.7-64C:\Python27_x64\python.exe
 -2.7-32C:\Python27_x86\python.exe
 -2.6-32C:\Python26_x86\python.exe
 -2.5-32C:\Python25_x86\python.exe

--

___
Python tracker 

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



  1   2   3   >