[issue32884] Adding the ability for getpass to print asterisks when password is typed

2020-08-07 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue41497] Potential UnicodeDecodeError in dis

2020-08-07 Thread Inada Naoki


Change by Inada Naoki :


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



[issue41505] asyncio.gather of large streams with limited resources

2020-08-07 Thread Kevin Amado


Change by Kevin Amado :


Removed file: https://bugs.python.org/file49377/materialize-implementation.py

___
Python tracker 

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



[issue41497] Potential UnicodeDecodeError in dis

2020-08-07 Thread miss-islington


miss-islington  added the comment:


New changeset d9106434f77fa84c8a59f8e60dc9c14cdd989b35 by Miss Islington (bot) 
in branch '3.9':
bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)
https://github.com/python/cpython/commit/d9106434f77fa84c8a59f8e60dc9c14cdd989b35


--

___
Python tracker 

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



[issue41497] Potential UnicodeDecodeError in dis

2020-08-07 Thread miss-islington


miss-islington  added the comment:


New changeset 66c899661902edc18df96a5c3f22639310700491 by Miss Islington (bot) 
in branch '3.8':
bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)
https://github.com/python/cpython/commit/66c899661902edc18df96a5c3f22639310700491


--

___
Python tracker 

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



[issue41507] Use utf-8 in "Reading and Writing Files" tutorial.

2020-08-07 Thread Inada Naoki


New submission from Inada Naoki :

https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files

Current tutorial doesn't mention about encoding and example uses locale 
encoding.
Since UTF-8 is major text encoding and many Windows environment doesn't use 
UTF-8 by default, encoding should be mentioned in the tutorial and UTF-8 should 
be recommended.

Additionally, the paragraph about line ending conversion [1] can be removed. 
This was important in Python 2. But it is not important because (en|de)coding 
binary data is nonsense already.

[1]: "This behind-the-scenes modification to file data is fine for text files, 
but will corrupt binary data like that in JPEG or EXE files. Be very careful to 
use binary mode when reading and writing such files."

--
assignee: docs@python
components: Documentation
keywords: newcomer friendly
messages: 375033
nosy: docs@python, inada.naoki
priority: normal
severity: normal
status: open
title: Use utf-8 in "Reading and Writing Files" tutorial.
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

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



[issue41497] Potential UnicodeDecodeError in dis

2020-08-07 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset a4084b9d1e40c1c9259372263d1fe8c8a562b093 by Konge in branch 
'master':
bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)
https://github.com/python/cpython/commit/a4084b9d1e40c1c9259372263d1fe8c8a562b093


--
nosy: +inada.naoki

___
Python tracker 

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



[issue41497] Potential UnicodeDecodeError in dis

2020-08-07 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue41497] Potential UnicodeDecodeError in dis

2020-08-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20924
pull_request: https://github.com/python/cpython/pull/21783

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-08-07 Thread hai shi


Change by hai shi :


--
pull_requests: +20922
pull_request: https://github.com/python/cpython/pull/21771

___
Python tracker 

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



[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-07 Thread Jeffrey Kintscher


Jeffrey Kintscher  added the comment:

Clarification:

PurePath.__new__() calls PurePath._from_parts(), which then calls 
PurePath._init()

--

___
Python tracker 

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



[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-07 Thread Jeffrey Kintscher

Jeffrey Kintscher  added the comment:

The workaround is to override _init(), which I agree is not desirable.

This is the relevant code in PurePath, which is the super class of 
PurePosixPath:

@classmethod
def _from_parsed_parts(cls, drv, root, parts, init=True):
self = object.__new__(cls)
self._drv = drv
self._root = root
self._parts = parts
if init:
self._init()
return self

...

def _init(self):
# Overridden in concrete Path
pass

To me, the clean way to get the desired behavior seems like it would be to have 
_init() call self.__init__().

def _init(self):
# Overridden in concrete Path
self.__init__()

This fixes p.parent, but GithubPath() ends up calling GithubPath.__init__() 
twice – the first time by PurePath.__new__() calling PurePath._init() and the 
second time by the GithubPath object creation.

--

___
Python tracker 

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



[issue41506] Inclusion or documentation of extended with syntax in 3.9

2020-08-07 Thread Aaron Meurer


New submission from Aaron Meurer :

This discussion started at https://github.com/python/cpython/pull/19503 
(actually on Twitter https://twitter.com/asmeurer/status/1289304407696261120), 
but Guido asked me to move it bpo.

Alongside the implementation of Python 3.9's new PEG parser, a new syntax 
feature has been added, which is the ability to use parentheses in with 
statements, like

with (open('a') as f1,
open('b') as f2):
...

This is an error in lower versions of Python (or an error about tuple not 
having __enter__ if the "as" parts are omitted). 

This new feature is not documented in the "What's new in Python 3.9" document 
https://docs.python.org/3.9/whatsnew/3.9.html.

It also apparently goes against PEP 627 
https://www.python.org/dev/peps/pep-0617/, which says (in bold), "no new Python 
Grammar addition will be added that requires the PEG parser".

Note that this feature does indeed rely on the PEG parser, and it stops working 
if you use python -X oldparser or PYTHONOLDPARSER=1.

I think this feature should either

1. be removed from 3.9 and held until 3.10, or
2. be documented properly, including in the document for the "with" statement 
and the "what's new" document. Also the PEP should be updated if this option is 
chosen.

Others have stated opinions about this on the issue or on Twitter, but I'll let 
them repeat them here rather than trying to summarize.

--
messages: 375029
nosy: asmeurer
priority: normal
pull_requests: 20921
severity: normal
status: open
title: Inclusion or documentation of extended with syntax in 3.9
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



[issue41505] asyncio.gather of large streams with limited resources

2020-08-07 Thread Kevin Amado


New submission from Kevin Amado :

Sometimes when dealing with high concurrency systems developers face the 
problem of executing concurrently a large number of tasks while taking care of 
a finite pool of resources

Just to mention some examples:
- reading asynchronously a lot of files without exceeding the maximum number of 
open files by the operative system
- making millions of requests to a website, doing it in sufficiently small 
batches as not to be banned by the site's firewall or hitting API limits
- making a lot of DNS lookups without exceeding the maximum number of open 
sockets allowed by the operative system
- and many more

What these examples have in common is that there is a hard-limit in the maximum 
concurrency possible to solve the problem.

A naive approach is to split the long list of tasks in small batches and use 
asyncio.gather on each batch. This, however, has some downsides if one of the 
tasks takes more time than the others because at some point in time only this 
task would be running and the execution of the following batch gets delayed, 
impacting performance and overall throughput and execution time.

Another approach is to use asyncio.wait on a subset of tasks, gathering the 
done tasks and appending more tasks from the remaining subset until all tasks 
get executed. This alternative is good but still far from optimal as many 
boilerplate code is needed.

The ideal approach is to operate in the possibly infinite list of tasks with an 
always constant number of them being resolved concurrently. If one of the tasks 
being concurrently executed finishes then immediately another one is fetched 
from the input stream and added to the list of concurrently executing ones. By 
doing it in this way we optimize the resources needed while minimizing the 
total execution time and never exceeding the finite pool of resources (sockets, 
open files, http API limit), etc.

What I'm attaching is a proof of concept of a new function to add to the 
asyncio.tasks module that implements the ideal approach.

The proposed signature for such function is:

  async def materialize(aws, *, max_concurrency=None)

And functions in this way:

```
async def do(n: int) -> None:
print('running', n)
await asyncio.sleep(1)
print('returning', n)
return n

async def main():
result = []
async for x in materialize(map(do, range(5)), max_concurrency=2):
print('got', x)
result.append(x)

print(result)
```

Whose output is:

running 0
running 1
returning 0
returning 1
got 0
got 1
running 2
running 3
returning 2
returning 3
got 2
got 3
running 4
returning 4
got 4
[0, 1, 2, 3, 4]

As you can see, tasks are resolved concurrently without exceeding the max 
concurrency allowed, yet always executing concurrently as many tasks as the 
limit specifies. Yielding results as soon as available, keeping a small memory 
footprint (proportional to the max concurrency allowed) and returning results 
in the same order of the input stream (opposite to asyncio.as_completed)

Since it's an asynchronous generator it can deal with infinite input streams, 
which is nice!

I'm willing to work further on a PR

--
components: asyncio
files: materialize.py
messages: 375028
nosy: asvetlov, kamadorueda, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.gather of large streams with limited resources
type: enhancement
versions: Python 3.10
Added file: https://bugs.python.org/file49377/materialize.py

___
Python tracker 

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



[issue41474] Missing dependency on Include/cpython/frameobject.h

2020-08-07 Thread Guido van Rossum


Guido van Rossum  added the comment:

Wrong issue, sorry. (Bpo bug?)

--

___
Python tracker 

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



[issue41474] Missing dependency on Include/cpython/frameobject.h

2020-08-07 Thread Guido van Rossum

Guido van Rossum  added the comment:

Sorry to rain on your parade, but couldn’t this be a new package on PyPI?

--
nosy: +gvanrossum

___
Python tracker 

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



[issue41494] Add window resizing support [ SIGWINCH ] to Lib/pty

2020-08-07 Thread Soumendra Ganguly


Soumendra Ganguly  added the comment:

Updated diff.

Changes _ekill()

--
Added file: https://bugs.python.org/file49376/pty.diff

___
Python tracker 

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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower


Change by Steve Dower :


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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower


Steve Dower  added the comment:


New changeset 70e9243a55be9c32b41f2149cdfa3957f96f8471 by Steve Dower in branch 
'3.9':
bpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 
(GH-21774)
https://github.com/python/cpython/commit/70e9243a55be9c32b41f2149cdfa3957f96f8471


--

___
Python tracker 

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



[issue41455] Python Devguide differs from python docs

2020-08-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +pablogsal, pitrou

___
Python tracker 

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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower


Change by Steve Dower :


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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower


Steve Dower  added the comment:


New changeset 135de08128a76f49752ac57c316129500275e828 by Steve Dower in branch 
'3.8':
bpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 
(GH-21775)
https://github.com/python/cpython/commit/135de08128a76f49752ac57c316129500275e828


--

___
Python tracker 

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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower


Steve Dower  added the comment:

GitHub Actions has decided not to run CI today, so you'll have to look at Azure 
Pipelines for the test failures: 
https://dev.azure.com/Python/cpython/_build/results?buildId=67152=logs=c83831cd-3752-5cc7-2f01-8276919eb334=5a421c4a-0933-53d5-26b9-04b36ad165eb=8012

--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-08-07 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset fcce8c649a14f7a81fae82f9f203bb5b5ee0c205 by Hai Shi in branch 
'master':
bpo-40275: Use new test.support helper submodules in tests (GH-21772)
https://github.com/python/cpython/commit/fcce8c649a14f7a81fae82f9f203bb5b5ee0c205


--

___
Python tracker 

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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +20920
pull_request: https://github.com/python/cpython/pull/21775

___
Python tracker 

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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +20919
pull_request: https://github.com/python/cpython/pull/21774

___
Python tracker 

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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower


Steve Dower  added the comment:

Added some test cases to the PR that directly trigger the issue, specifically 
this one:

def test_entered_path_does_not_keep_open(self):
# This is what certifi does on import to make its bundle
# available for the process duration.
c = resources.path('ziptestdata', 'binary.file').__enter__()
self.zip_path.unlink()

All the tests I added pass on 3.9 (with minor tweaks for moved test utils).

To unblock the upcoming releases, I'm going to do the backports first and leave 
this as a release blocker for 3.10.

--
nosy: +brett.cannon, eric.snow
priority: normal -> release blocker

___
Python tracker 

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



[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-07 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 2.0 -> 3.0
pull_requests: +20918
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/21773

___
Python tracker 

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



[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-07 Thread Edward K Ream


New submission from Edward K Ream :

These links added with the provisional approval of GvR, pending approval of the 
PR.

--
assignee: docs@python
components: Documentation
messages: 375019
nosy: docs@python, edreamleo
priority: normal
severity: normal
status: open
title: Add links to asttokens, leoAst, LibCST and Parso to ast.rst
type: enhancement
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



[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-07 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue5141] C API for appending to arrays

2020-08-07 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue41478] Empty representation of AssertionError

2020-08-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Since you should print the exception class anyway, I think that using repr 
should be sufficient and that this issue should be closed.  In any case, the 
current behavior does not seem like a bug.

--

___
Python tracker 

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



[issue41478] Empty representation of AssertionError

2020-08-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Ilya, in the future, when responding by email, please delete the message you 
are responding to.  It is already present on the web page.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue41460] Translation Error in in Functional Programming HOWTO page

2020-08-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

This tracker is only for the original English version of the docs.  The 
translations are by a different group with different tools and workflow.  This 
page
https://docs.python.org/ja/3/bugs.html#
should not literally translate the instructions for the English version.

Julien, I thought there was something about translations in the devguide but 
cannot find it.  https://devguide.python.org/docquality/ would seen line a good 
place.

--
nosy: +terry.reedy
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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower


Steve Dower  added the comment:

Okay, I've tracked it down to the new importlib.readers.ZipReader class keeping 
the zip file open, presumably until it gets GC'd. This is used by certifi to 
extract the CA certs from the whl when ensurepip is doing the self-install from 
the mounted wheel.

Jason is already on this bug, which is convenient :)

I haven't yet figured out whether there's a convenient way for the reader to 
not keep the ZIP open for as long as it exists, but I think that's going to be 
the safest fix.

We should definitely fix this one ourselves without forcing users to make 
changes to accommodate. As I mentioned above, it's only in 3.10 right now, but 
it's blocking updated pip and setuptools versions downlevel.

--

___
Python tracker 

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



[issue41455] Python Devguide differs from python docs

2020-08-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue40934] Default RLock does not work well for Manager Condition

2020-08-07 Thread Irit Katriel


Irit Katriel  added the comment:

I was unable to reproduce what you're seeing on windows 10, master branch. 

Please provide more information regarding the python version and system you are 
seeing this problem on.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower


Steve Dower  added the comment:

The issue above doesn't appear to repro on 3.9, so I guess master has started 
leaking a file handle, presumably in zipimport.

I'll see what I can track down, but can't be sure I'll have enough time to get 
it done for RC, so if anyone else wants to help out feel free.

--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-08-07 Thread hai shi


Change by hai shi :


--
pull_requests: +20917
pull_request: https://github.com/python/cpython/pull/21772

___
Python tracker 

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



[issue41433] Logging libraries BufferingHandler flushed twice at shutdown

2020-08-07 Thread Irit Katriel


Irit Katriel  added the comment:

I think this may be the same issue as in:

https://stackoverflow.com/questions/47549602/logging-handlers-bufferinghandler-subclassed-handler-showing-log-twice

Did you call flush on super()?

If this is not the same issue, please post a code snippet to explain what 
exactly you are seeing.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41303] perf_counter result does not count system sleep time in Mac OS

2020-08-07 Thread STINNER Victor


STINNER Victor  added the comment:

> For time.time in Windows, Python 3.10 should switch to using 
> GetSystemTimePreciseAsFileTime [3] instead of GetSystemTimeAsFileTime. 

It's already tracked by bpo-19007: "precise time.time() under Windows 8: use 
GetSystemTimePreciseAsFileTime".

--

___
Python tracker 

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



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread miss-islington


miss-islington  added the comment:


New changeset 5e12a5b82230cfa34a9c32f58467770e2076313c by Miss Islington (bot) 
in branch '3.9':
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
https://github.com/python/cpython/commit/5e12a5b82230cfa34a9c32f58467770e2076313c


--

___
Python tracker 

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



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread miss-islington


miss-islington  added the comment:


New changeset 87bc22051fcfcf181160d06a57ac2b16ee071f8f by Miss Islington (bot) 
in branch '3.8':
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
https://github.com/python/cpython/commit/87bc22051fcfcf181160d06a57ac2b16ee071f8f


--

___
Python tracker 

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



[issue41477] test_genericalias fails if ctypes is missing

2020-08-07 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset f44693eaed3b9d91a6e415d48224fd4750b59366 by Victor Stinner in 
branch 'master':
bpo-41477: Make ctypes optional in test_genericalias (GH-21766)
https://github.com/python/cpython/commit/f44693eaed3b9d91a6e415d48224fd4750b59366


--

___
Python tracker 

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



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20916
pull_request: https://github.com/python/cpython/pull/21770

___
Python tracker 

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



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset e27a51c11e10d5df79b3e48dc3e7bfedfad5a794 by Victor Stinner in 
branch 'master':
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
https://github.com/python/cpython/commit/e27a51c11e10d5df79b3e48dc3e7bfedfad5a794


--

___
Python tracker 

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



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +20915
pull_request: https://github.com/python/cpython/pull/21769

___
Python tracker 

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



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread STINNER Victor


STINNER Victor  added the comment:

Since I identified a gdb regression in gdb 9.2, I wrote PR 21768 to skip 
test_gdb on gdb >= 9.2 until the bug is fixed:
https://bugzilla.redhat.com/show_bug.cgi?id=1866884

--

___
Python tracker 

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



[issue41483] Do not acquire lock in MemoryHandler.flush() if no target defined

2020-08-07 Thread Irit Katriel


Irit Katriel  added the comment:

Regarding the change you suggest here - I think you need add another check that 
target is not None after you've acquired the lock to make it safe.

--

___
Python tracker 

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



[issue27307] string.Formatter does not support key/attribute access on unnumbered fields

2020-08-07 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 3.0 -> 4.0
pull_requests: +20911
pull_request: https://github.com/python/cpython/pull/21767

___
Python tracker 

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



[issue41476] test_zoneinfo fails if the _lzma module is missing

2020-08-07 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> test_zoneinfo fails when lzma module is unavailable

___
Python tracker 

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



[issue41477] test_genericalias fails if ctypes is missing

2020-08-07 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-08-07 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 598a951844122678de2596dbc1e0e09e2be65fd2 by Hai Shi in branch 
'master':
bpo-40275: Use new test.support helper submodules in tests (GH-21764)
https://github.com/python/cpython/commit/598a951844122678de2596dbc1e0e09e2be65fd2


--

___
Python tracker 

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



[issue41503] Race between setTarget and flush in logging.handlers.MemoryHandler

2020-08-07 Thread Irit Katriel


Change by Irit Katriel :


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

___
Python tracker 

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



[issue41503] Race between setTarget and flush in logging.handlers.MemoryHandler

2020-08-07 Thread Irit Katriel


New submission from Irit Katriel :

The `logging.handlers.MemoryHandler.setTarget()` method does not acquire the 
lock, so it can change the target while flush is processing the buffer.

The script below causes flush to call target.handle when target is None, 
causing:

  File "C:\Users\User\src\cpython\lib\logging\handlers.py", line 1265, in emit
self.flush()
  File "C:\Users\User\src\cpython\lib\logging\handlers.py", line 1348, in flush
self.target.handle(record)
AttributeError: 'NoneType' object has no attribute 'handle'



import io
import logging.handlers
import threading
import time

class SlowHandler:
def __init__(self):
self.stream = io.StringIO()
self.streamHandler = logging.StreamHandler(self.stream)

def handle(self, msg):
time.sleep(1)
self.streamHandler.handle(msg)

target = SlowHandler()
mem_hdlr = logging.handlers.MemoryHandler(10, logging.ERROR, target)
mem_logger = logging.getLogger('mem')
mem_logger.propagate = False
mem_logger.addHandler(mem_hdlr)

def toggleTarget():
time.sleep(1)
mem_hdlr.setTarget(None)

t = threading.Thread(target=toggleTarget, args=())
t.daemon = True
t.start()

while True:
time.sleep(0.1)
mem_logger.warning("warning not flushed")
mem_logger.error("error is flushed")



--
components: Library (Lib)
messages: 375001
nosy: iritkatriel
priority: normal
severity: normal
status: open
title: Race between setTarget and flush in logging.handlers.MemoryHandler
type: behavior
versions: Python 3.10

___
Python tracker 

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



[issue41500] InterpolationSyntaxError reading the (windows) environment with unresolved environment variables

2020-08-07 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

There's multiple options:

1. Escape '%' in environment variables (%%not_existing%%) to avoid the exception

2. Switch to configparser.ExtendedInterpolation for the interpolation, which 
uses a different syntax that doesn't conflict with env. variables on Windows 
(but does conflict with that on Unix)

Note that regardless of the option ConfigParser will not expand the value of 
the environment variable reference. If you want to be able to interpolate env 
variables you need a different solution, for example by using the 'defaults' 
argument to ConfigParser and expand references using the ConfigParser 
interpolation syntax.

--

___
Python tracker 

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



[issue41483] Do not acquire lock in MemoryHandler.flush() if no target defined

2020-08-07 Thread Irit Katriel


Irit Katriel  added the comment:

I guess the missing lock in setTarget is a different issue than the one you 
raise here and should be a separate ticket - I will create one.

--

___
Python tracker 

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



[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-08-07 Thread wyz23x2


wyz23x2  added the comment:

Ping? Which of the 3 should we choose?

--
versions: +Python 3.10

___
Python tracker 

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



[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-08-07 Thread wyz23x2


Change by wyz23x2 :


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



[issue41502] Option for Colored Logging in http.server Module

2020-08-07 Thread Aaron Lichtman


New submission from Aaron Lichtman :

It would be useful if the http.server module had an option for colored logging 
to help users visually parse the HTTP traffic logs.

$ python3 -m http.server 80 --color is along the lines of what I'm thinking.

--
components: Library (Lib)
messages: 374997
nosy: alichtman
priority: normal
severity: normal
status: open
title: Option for Colored Logging in http.server Module
type: enhancement
versions: Python 3.10

___
Python tracker 

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



[issue41501] 0x80070643, can't install any version

2020-08-07 Thread BSM and 102 others


New submission from BSM and 102 others :

I wanted to install Python 3.8, but I poorly removed a previous version of 
Python 3.3 through the "permanently delete" function. I started the installer 
and it gave me a 0x80070643 error with a log similar to the link 
provided(https://pastebin.com/RzQEttiL). I then try and uninstall via the 
Control Panel, but it does nothing. "Change" brings up a 3.3 launcher, but that 
crashes as well. "Repair" brings up a message saying "Fatal error during 
installation", so I switch to installing via a 3.3.3 64bit launcher, which 
crashes, then I switch to a non-64bit one, and that crashes. I also try 
toggling PATH, but that changes nothing. And now I am stuck.

--
components: Installation
messages: 374996
nosy: BSMMedia
priority: normal
severity: normal
status: open
title: 0x80070643, can't install any version
type: crash
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



[issue40275] test.support has way too many imports

2020-08-07 Thread hai shi


Change by hai shi :


--
pull_requests: +20908
pull_request: https://github.com/python/cpython/pull/21764

___
Python tracker 

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



[issue41483] Do not acquire lock in MemoryHandler.flush() if no target defined

2020-08-07 Thread Irit Katriel


Irit Katriel  added the comment:

Actually the lock is needed and it is currently missing from setTarget. 

The script below causes handle to be called on None, causing:

  File "C:\Users\User\src\cpython\lib\logging\handlers.py", line 1265, in emit
self.flush()
  File "C:\Users\User\src\cpython\lib\logging\handlers.py", line 1348, in flush
self.target.handle(record)
AttributeError: 'NoneType' object has no attribute 'handle'



import io
import logging.handlers
import threading
import time

class SlowHandler:
def __init__(self):
self.stream = io.StringIO()
self.streamHandler = logging.StreamHandler(self.stream)

def handle(self, msg):
time.sleep(1)
self.streamHandler.handle(msg)

target = SlowHandler()
mem_hdlr = logging.handlers.MemoryHandler(10, logging.ERROR, target)
mem_logger = logging.getLogger('mem')
mem_logger.propagate = False
mem_logger.addHandler(mem_hdlr)

def toggleTarget():
time.sleep(1)
mem_hdlr.setTarget(None)

t = threading.Thread(target=toggleTarget, args=())
t.daemon = True
t.start()

while True:
time.sleep(0.1)
mem_logger.warning("warning not flushed")
mem_logger.error("error is flushed")
print("%s" % target.stream.getvalue().splitlines())



--
nosy: +iritkatriel

___
Python tracker 

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



[issue41500] InterpolationSyntaxError reading the (windows) environment with unresolved environment variables

2020-08-07 Thread Pauser


Pauser  added the comment:

So I have to use two config parser objects to merge the configuration of one 
config.ini (needs interpolation) and the environment on windows ?

So at the end choose wether to use environment variables or config parser 
interpolation, right? (only on windows) 

Not the solution I was looking for.

--

___
Python tracker 

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



[issue41499] logging nested file path

2020-08-07 Thread Lasse Nørfeldt

Lasse Nørfeldt  added the comment:

When running a script like this

```
import os
import utils.logger
import utils.stats
import utils.dir
import utils.convert
import re

import CONSTANTS


HTML_DIR_PATH = CONSTANTS.RAW_DATA_DIR + '/html'
folder_contents = [fc for fc in os.listdir(
HTML_DIR_PATH) if '.html' in fc and 'tablet' in fc and (', ' in fc or ' og 
' in fc)]

utils.dir.remove_dir(CONSTANTS.PROCESS_DATA_DIR)
md_output_path = f'{CONSTANTS.PROCESS_DATA_DIR}/md'
utils.dir.create_dir(md_output_path)

convert_logger = utils.logger.LogFile('convert')

for index, filename in enumerate(folder_contents):
html_text = open(f'{HTML_DIR_PATH}/{filename}', 'r', 
encoding='utf-8').read()
md_text = utils.convert.word_html_to_markdown(html_text)

with open(f'{md_output_path}/{filename}.md', 'w+') as md_file:
md_file.write(md_text)

if any([flag in md_text for flag in CONSTANTS.INSPECT_FLAGS]):
convert_logger.entry('Flag detected!')
else:
convert_logger.entry('Success! - no flags detected')

procent = int(100*(index+1)/len(folder_contents))
print(f"{index+1}/{len(folder_contents)} ({procent}%)", end='\r')

if index > 50:
break

utils.stats.gen_frequency_stats(convert_logger.path)
utils.stats.gen_frequency_stats(utils.logger.EXCIPIENTS.path)
utils.stats.gen_alpha_sort_stats(utils.logger.EXCIPIENTS.path)
os.system(f'cat {utils.logger.EXCIPIENTS.path}.freq.stats')
```

I get an error like this


```
Traceback (most recent call last):
  File "dev/run_convert.py", line 40, in 
utils.stats.gen_frequency_stats(utils.logger.EXCIPIENTS.path)
  File "~/scraper-produktresume.dk/utils/stats.py", line 5, in 
gen_frequency_stats
lines = _gen_list_from_lines(path_to_log_file)
  File "~/scraper-produktresume.dk/utils/stats.py", line 24, in 
_gen_list_from_lines
with open(path_to_log_file, 'r') as log_file:
FileNotFoundError: [Errno 2] No such file or directory: 
'PROCESSED/excipients.log'
```

Was not expecting that since my utils.logger.py looks like this

```
import os
import logging

import CONSTANTS


class LogFile:
def __init__(self, logger_name):
if not os.path.exists(CONSTANTS.PROCESS_DATA_DIR):
os.makedirs(CONSTANTS.PROCESS_DATA_DIR)

self.path = f'{CONSTANTS.PROCESS_DATA_DIR}/{logger_name}.log'
self.file_handler = logging.FileHandler(self.path)

self.logger = logging.getLogger(f'{logger_name}')
self.logger.setLevel(logging.INFO)
self.logger.addHandler(self.file_handler)

def entry(self, text):
self.logger.info(text)


EXCIPIENTS = LogFile('excipients')

```

I'm both creating the file via the lib `os` (just to be sure that was not the 
case) and in the `self.file_handler`

--

___
Python tracker 

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



[issue41500] InterpolationSyntaxError reading the (windows) environment with unresolved environment variables

2020-08-07 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The exception is due to the interpolation feature of ConfigParser, which 
expects a different syntax. The default interpolation syntax is "%(key)s".

Interpolation can be turned off by passing "interpolation=None" when creating 
the ConfigParser object.

See also 
https://docs.python.org/3/library/configparser.html#interpolation-of-values

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



[issue41500] InterpolationSyntaxError reading the (windows) environment with unresolved environment variables

2020-08-07 Thread Pauser


New submission from Pauser :

Hello,
I tried to extend our config processing using the environment variables and the 
configparser module. 

On some machines (all windows) the configparser failed with an 
InterpolationSyntaxError ...
It seems that not resolved environment variables (e.g. "test":"%not_existing%") 
lead to this error.
I wrote little python test file reproducing the error and providing a very 
simple workaround to not fix all environments ;) Attention the bug is 
reproduced but the test is green ^^

I would be happy to remove the workaround as soon as possible ;)

--
components: Library (Lib)
files: test_EnvironmentProcessing.py
messages: 374991
nosy: c_panser, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: InterpolationSyntaxError reading the (windows) environment with 
unresolved environment variables
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49375/test_EnvironmentProcessing.py

___
Python tracker 

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



[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-07 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

That doesn't answer my question, synthetic.conf should still make it possible 
to have the mountpoint in /, and that's even used as an example in the manpage.

--

___
Python tracker 

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



[issue41499] logging nested file path

2020-08-07 Thread Eric V. Smith


Eric V. Smith  added the comment:

You'll need to explain what behavior you're seeing, and how that differs from 
what you expect.

--
nosy: +eric.smith

___
Python tracker 

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



[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-07 Thread Ned Deily


Ned Deily  added the comment:

> Why is this share mounted under /System/Volumes/Data and not under /Volumes?

See man 5 synthetic_conf for more details.

--

___
Python tracker 

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



[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-07 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

> For some background, our network location /mathworks is usually mounted at 
> root, but due to the restrictions on macOS Catalina, it mounts at 
> /System/Volumes/Data and we then add a symlink to the root directory so 
> "/mathworks -> /System/Volumes/Data/mathworks" as to not break old code and 
> scripts. So the real problem is that we cannot find extension module files 
> under /System/Volumes/Data.

Could you tell more about this? Why is this share mounted under 
/System/Volumes/Data and not under /Volumes? 

With the direction Apple is moving in I'm a bit surprised that this works at 
all, the direction seems to be toward a completely read-only tree in /System in 
/usr (except for /usr/local).

--

___
Python tracker 

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



[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-07 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

> As a reminder when implementing: 

The whole configure machinery needs work :-(.

Disabling looking in /usr/local should IMHO be an explicit choice when 
building, not something inferred from the presence of "-isysroot" in the 
compiler flags because that flag can be left out from most builds as Xcode 
hasn't shipped with multiple SDKs for a long while.

--

___
Python tracker 

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



[issue41499] logging nested file path

2020-08-07 Thread Lasse Nørfeldt

New submission from Lasse Nørfeldt :

I have been having a lot of issues when creating loggers that are located in 
nested folders.

I have attached a .py with a logger module. 

Currently it works if I don't place them in nested folders...

--
components: Library (Lib)
files: logger.py
messages: 374985
nosy: Norfeldt
priority: normal
severity: normal
status: open
title: logging nested file path
versions: Python 3.8
Added file: https://bugs.python.org/file49374/logger.py

___
Python tracker 

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



[issue41458] Avoid overflow/underflow in math.prod()

2020-08-07 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I had not put any thought into subnormals (denormals?) because they didn't 
arise in my use cases.  But it would be nice to handle them as well as possible.

Accuracy improvements are welcome as well.  And that goes hand in hand with 
better commutativity.

The frexp() approach looks cleaner than my big/little matching algorithm and it 
doesn't require auxiliary memory.  It may slower though.  The matching 
algorithm only kicks in when overflows or underflows occur; otherwise, it runs 
close to full speed for the common case.

--

___
Python tracker 

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



[issue41098] Deprecating PyUnicodeEncodeError_Create

2020-08-07 Thread miss-islington


miss-islington  added the comment:


New changeset b2514c4934291364404a2bc78256b77026a80dff by Miss Islington (bot) 
in branch '3.9':
bpo-41098: Doc: Add missing deprecated directives (GH-21162)
https://github.com/python/cpython/commit/b2514c4934291364404a2bc78256b77026a80dff


--

___
Python tracker 

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



[issue41098] Deprecating PyUnicodeEncodeError_Create

2020-08-07 Thread miss-islington


miss-islington  added the comment:


New changeset dc98a5468a48ecffe95a6c3a07ce21366477bdd7 by Miss Islington (bot) 
in branch '3.8':
bpo-41098: Doc: Add missing deprecated directives (GH-21162)
https://github.com/python/cpython/commit/dc98a5468a48ecffe95a6c3a07ce21366477bdd7


--

___
Python tracker 

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



[issue26834] Add truncated SHA512/224 and SHA512/256

2020-08-07 Thread Sergey Fedoseev


Change by Sergey Fedoseev :


--
nosy: +sir-sigurd

___
Python tracker 

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



[issue41456] loop.run_in_executor creat thread but not destory it after the task run over

2020-08-07 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
resolution:  -> not a bug
type:  -> behavior

___
Python tracker 

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



[issue41098] Deprecating PyUnicodeEncodeError_Create

2020-08-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20907
pull_request: https://github.com/python/cpython/pull/21762

___
Python tracker 

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



[issue41098] Deprecating PyUnicodeEncodeError_Create

2020-08-07 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 46e19b61d31ba99f049258efa4ff1334856a3643 by Inada Naoki in branch 
'master':
bpo-41098: Doc: Add missing deprecated directives (GH-21162)
https://github.com/python/cpython/commit/46e19b61d31ba99f049258efa4ff1334856a3643


--

___
Python tracker 

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



[issue41098] Deprecating PyUnicodeEncodeError_Create

2020-08-07 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +20906
pull_request: https://github.com/python/cpython/pull/21761

___
Python tracker 

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



[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-07 Thread Ned Deily


Change by Ned Deily :


--
title: Python extension modules fail to build on Mac 10.15.1 (Catalina) -> 
setup.py test for macOS SDK files may incorrectly classify files in other file 
systems

___
Python tracker 

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



[issue41129] Python extension modules fail to build on Mac 10.15.1 (Catalina)

2020-08-07 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the detailed analysis. That does seem like a reasonable explanation: 
the code in setup.py was not expecting to find anything other than system files 
under /System.  For Apple to put other fs mount points in the /System hierarchy 
seems ... odd but there it is. At first glance, rather than singling out 
/Systems/Volumes/Data, changing the inclusion test from /System to 
/System/Library is probably sufficient.

In the most recent SDKs, there is also /System/iOSSupport which is probably 
never going to come up in Python build contexts but it does point out that 
making assumptions here about the SDK contents is fragile.  So perhaps an even 
better solution would be for setup.py to dynamically build a filter based on 
the contents of the SDK in use, i.e. examine the top level of System and usr in 
the SDK?

As a reminder when implementing: /usr/local is a bit tricky.  IIRC, recent 
versions of the compiler chain include /usr/local/include and /usrlocal/bin in 
the default search paths only in cases where an SDK was not explicitly named, 
the idea being that you don't want to include references to /usr/local files if 
you are building something to distribute to the world but it's fine (and 
necessary) to include /usr/local if you are just building something to run 
locally on the build system.  I believe /Library works the same way. The tool 
chains from older version of Xcode and/or CLTs may work differently. So any 
changes we make here should try to do the right thing on the build tools for 
all supported versions of macOS.

--
components: +macOS
nosy: +ronaldoussoren
resolution: works for me -> 
stage:  -> needs patch

___
Python tracker 

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



[issue34360] urllib.parse doesn't fully comply to RFC 3986

2020-08-07 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue37495] socket.inet_aton parsing issue on some libc versions

2020-08-07 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue41419] Path.mkdir and os.mkdir don't respect setgid if its parent is g-s

2020-08-07 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy:  -Jeffrey.Kintscher

___
Python tracker 

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



[issue41419] Path.mkdir and os.mkdir don't respect setgid if its parent is g-s

2020-08-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

os.mkdir() is a thin wrapper around syscalls mkdir or mkdirat. Path.mkdir() is 
a thin wrapper around os.mkdir(). If you think that the behavior of mkdir 
differs from the documentation please file a report in the Linux kernel.

--
nosy: +serhiy.storchaka
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