[issue41540] Test test_maxcontext_exact_arith (_decimal) consumes all memory on AIX

2020-08-13 Thread Tony Reix


Tony Reix  added the comment:

I forgot to say that this behavior was not present in stable version 3.8.5 . 
Sorry.

On 2 machines AIX 7.2, testing Python 3.8.5 with:
+ cd /opt/freeware/src/packages/BUILD/Python-3.8.5
+ ulimit -d unlimited
+ ulimit -m unlimited
+ ulimit -s unlimited
+ export 
LIBPATH=/opt/freeware/src/packages/BUILD/Python-3.8.5/64bit:/usr/lib64:/usr/lib:/opt/lib
+ export PYTHONPATH=/opt/freeware/src/packages/BUILD/Python-3.8.5/64bit/Modules
+ ./python Lib/test/regrtest.py -v test_decimal
...
gave:

507 tests in 227 items.
507 passed and 0 failed.
Test passed.

So, this issue with v3.10 (master) appeared to me as a regression. However, 
after hours debugging the issue, I forgot to say it in this defect, sorry.

(Previously, I was using limits for -d -m and -s : max 4GB. However, that 
appeared to be an issue when running tests with Python test option -M12Gb, 
which requires up and maybe more than 12GB of my 16GB memory machine in order 
to be able to run a large part of the Python Big Memory tests. And thus I 
unlimited these 3 resources, with no problem at all with version 3.8.5 .)

--

___
Python tracker 

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



[issue40994] Very confusing documenation for abc.Collections

2020-08-13 Thread Georg Brandl


Georg Brandl  added the comment:

FWIW, I think Sydney's right. Shared entries should only be used for closely 
related, or interdependent, APIs, which those here are not.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue41547] Expose default __getstate__ and __setstate__

2020-08-13 Thread youkaichao

New submission from youkaichao :

According to the doc ( 
https://docs.python.org/3/library/pickle.html#object.__getstate__ ), an object 
may not have a __getstate__ method.

During pickling and unpickling, python first finds __getstate__ and 
__setstate__, which may invoke a customed __getattr__. I think this is 
unnecessary if python just provides a default implementation for __getstate__ / 
__setstate__ . An additional benefit of this is that __setstate__ and 
__getstate__ becomes available for every object and it is possible to do 
something like ``getstate(obj)``.

For people who customize __getattr__, I think no one intends to deal with 
``obj.__getattr__(“__getstate__”)``, so it makes sense not to invoke 
``__getattr__`` during pickling and unpickling.

--
messages: 375369
nosy: youkaichao
priority: normal
severity: normal
status: open
title: Expose default __getstate__ and __setstate__
type: behavior

___
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-13 Thread hai shi


hai shi  added the comment:

oh, sorry, missing a word: I suggest this bpo.->I suggest close this bpo.

--

___
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-13 Thread hai shi


hai shi  added the comment:

If someone wants to continue the effort in libregrtest, I suggest to open a new 
issue.
+1. And if there have any other test cases blocked by test.support, I suggest 
this bpo.

--

___
Python tracker 

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



[issue41541] Make pty.spawn set window size

2020-08-13 Thread Soumendra Ganguly


Soumendra Ganguly  added the comment:

OS: Linux 4.19.0-9-amd64 Debian 10 GNU/Linux

--

___
Python tracker 

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



[issue41025] C implementation of ZoneInfo cannot be subclassed

2020-08-13 Thread Paul Ganssle


Paul Ganssle  added the comment:


New changeset 87d8287865e5c9f137f6b5cf8c34c2c509eb5e9d by Paul Ganssle in 
branch 'master':
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965)
https://github.com/python/cpython/commit/87d8287865e5c9f137f6b5cf8c34c2c509eb5e9d


--

___
Python tracker 

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



[issue41025] C implementation of ZoneInfo cannot be subclassed

2020-08-13 Thread miss-islington


Change by miss-islington :


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

___
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-13 Thread Jeffrey Kintscher


Jeffrey Kintscher  added the comment:

The current implementation calls object.__new__(cls), where cls is the child 
class type, from within a class method (@classmethod).  This is fine for 
Path.__new__() and PurePath.__new__(), which are called by the child class's 
__new__(), because we don't want them to recursively call the child class's 
__new__() when the child class is created.  This all works as expected when the 
child class is instantiated outside of Path and PurePath, and the child's 
__init__() gets called as expected.  I don't see any point in making changes to 
this behavior.

When one of approximately 20 PurePath and Path functions and properties 
instantiate a new child class object the same way PurePath.__new__() and 
Path.__new__() do, the child class's __new__() and __init__() functions are not 
called.  This is the problem we are trying to solve.

My fix is to add normal functions (i.e. not decorated with @classmethod) to 
instantiate child class objects using

obj = type(self)()

This creates a child class instance, and the child's __new__() and __init__() 
functions get called.

Once I have finished re-plumbing Path and PurePath to use the new functions and 
created the necessary unit tests (to make sure I didn't break anything), I will 
also look at adding 
a proper __init__() function to the two classes instead of having __new__() 
initialize the member variables.  I didn't mean to imply that __init__() isn't 
useful.  It is required to allow the child class to initialize its own 
variable.  I just meant it isn't required to force calling __init__() and 
__new__() in the child class.

--

___
Python tracker 

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



[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

2020-08-13 Thread Eric V. Smith


Change by Eric V. Smith :


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



[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

2020-08-13 Thread miss-islington


miss-islington  added the comment:


New changeset 7c288413db8c2b84dd476b0c8a19f85110d99a2f by Miss Islington (bot) 
in branch '3.9':
bpo-41410: Fix outdated info in mkstemp docs (GH-21701)
https://github.com/python/cpython/commit/7c288413db8c2b84dd476b0c8a19f85110d99a2f


--

___
Python tracker 

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



[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

2020-08-13 Thread miss-islington


miss-islington  added the comment:


New changeset 2a9f709ba23c8f6aa2bed821aacc4e7baecde383 by Miss Islington (bot) 
in branch '3.8':
bpo-41410: Fix outdated info in mkstemp docs (GH-21701)
https://github.com/python/cpython/commit/2a9f709ba23c8f6aa2bed821aacc4e7baecde383


--

___
Python tracker 

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



[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

2020-08-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21000
pull_request: https://github.com/python/cpython/pull/21875

___
Python tracker 

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



[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

2020-08-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20998
pull_request: https://github.com/python/cpython/pull/21873

___
Python tracker 

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



[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

2020-08-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20999
pull_request: https://github.com/python/cpython/pull/21874

___
Python tracker 

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



[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

2020-08-13 Thread miss-islington


miss-islington  added the comment:


New changeset e55de68be3e5b977a17d3c0ac9805b0feff8fedc by Rishav Kundu in 
branch 'master':
bpo-41410: Fix outdated info in mkstemp docs (GH-21701)
https://github.com/python/cpython/commit/e55de68be3e5b977a17d3c0ac9805b0feff8fedc


--
nosy: +miss-islington

___
Python tracker 

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



[issue41545] gc API requiring matching number of gc.disable - gc.enable calls

2020-08-13 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

> I wrap a function's logic with `gc.disable()` to prevent GC from triggering 
> some race condition.

If this race condition is a bug in gc, then we should fix that.

If it is a bug in your code, surely you should fix that rather than disable gc.

Either way, I don't think we should complicate the gc iterface by adding a 
second way to enable and disable the cyclic gc.

--
nosy: +steven.daprano

___
Python tracker 

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



[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Steve Dower

Steve Dower  added the comment:

Fixes merged, just need Łukasz to confirm it'll be in 3.9.0 and we can resolve 
this.

--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41546] pprint() gives exception when ran from pythonw

2020-08-13 Thread Luiz


New submission from Luiz :

If you use the pprint function when running on windowed mode (either by using 
the .pyw extension or running the file with pythonw) a "AttributeError" 
exception occurs, saying that "'NoneType' object has no attribute 'write'".

Looking at the source code (Lib/pprint.py), it happens because in this mode 
sys.stdout is set to None, therefore it has no write attribute.

I think intended behavior is to simply ignore any console output when in this 
mode, since many programs have loads of print statements for debugging with a 
console window; it shouldn't crash because of a extension change.

There's two solutions I can think of. One is to check if sys.stdout is None, 
not printing anything in case it is. Another is, when in windowed mode, setting 
sys.stdout to some dummy null file. This has the advantage of automatically 
fixing this in other parts of Python where this error might also occur.

This error is particularly hard to find, since in windowed mode there's no 
console to show the exception - it simply closes. In the attached file, where I 
showcase the error, I have to log to a file to see the problem.

I'm not sure how can this be unnoticed for so much time, it can't possibly be 
intended, or maybe it is and it's print() that actually has a problem, lol.

--
components: Library (Lib)
files: pprint_error_showcase.py
messages: 375358
nosy: luizeldorado
priority: normal
severity: normal
status: open
title: pprint() gives exception when ran from pythonw
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49388/pprint_error_showcase.py

___
Python tracker 

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



[issue41543] contextlib.nullcontext doesn't work with async context managers

2020-08-13 Thread Nathaniel Smith


Nathaniel Smith  added the comment:

It does seem pretty harmless in this case.

--

___
Python tracker 

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



[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread miss-islington


miss-islington  added the comment:


New changeset 75c2281762932c4e5f0bd7deae40ef014f704de2 by Miss Islington (bot) 
in branch '3.9':
bpo-41526: Fixed layout of final page of the installer (GH-21871)
https://github.com/python/cpython/commit/75c2281762932c4e5f0bd7deae40ef014f704de2


--

___
Python tracker 

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



[issue41545] gc API requiring matching number of gc.disable - gc.enable calls

2020-08-13 Thread Yonatan Goldschmidt


New submission from Yonatan Goldschmidt :

I have a construct in my code where I wrap a function's logic with 
`gc.disable()` to prevent GC from triggering some race condition.

Today this construct got a bit more complicated, and another function had to 
use this "trick". Now there are 2 flows:

foo():
gc.disable()

gc.enable()

bar()

gc.disable()
...
# bar calls foo, which also messes with the gc
foo()
gc.disable()
...
gc.enable()
...
gc.enable()
...

I'd expected the GC to be truly enabled only on the second call to `enable()`, 
but apparently it's enabled on the first call :( Both `gc.enable()` and 
`gc.disable()` just write `1`/`0` to `gcstate->enabled`, respectively.

For the meantime I wrote a simple wrapper class to do this counting (finally 
calling `enable()` only when necessary).

Another option is for the code to check first "is GC enabled?" before 
disabling, and before enabling again, remember whether it really disabled it or 
not.

But I think those manual workarounds are more error prone, and it's easier to 
forget to use it them in all sites (compared to using the "right" API from the 
standard module), so I was considering if we can add an API that encapsulate 
this counting: an enable-disable pair that makes sure GC is only enabled back 
when the number of "enable" calls matches the number of "disable" calls.

--
components: Interpreter Core
messages: 375355
nosy: Yonatan Goldschmidt
priority: normal
severity: normal
status: open
title: gc API requiring matching number of gc.disable - gc.enable calls
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



[issue41542] module `__all__` cannot detect function name with `φ`

2020-08-13 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Hi Seth,

Surely you aren't relying on the behaviour that names in `__all__` *aren't* 
normalised but others are?

Rather than a warning, I think the right solution here is to normalise the 
names in `__all__`.

--
nosy: +steven.daprano

___
Python tracker 

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



[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 7.0 -> 8.0
pull_requests: +20997
pull_request: https://github.com/python/cpython/pull/21872

___
Python tracker 

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



[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Steve Dower


Steve Dower  added the comment:


New changeset 6444ca946984c638c67a72aac22fd6d3cc650c16 by Steve Dower in branch 
'master':
bpo-41526: Fixed layout of final page of the installer (GH-21871)
https://github.com/python/cpython/commit/6444ca946984c638c67a72aac22fd6d3cc650c16


--

___
Python tracker 

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



[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Steve Dower


Change by Steve Dower :


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

___
Python tracker 

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



[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Steve Dower


Steve Dower  added the comment:

Thanks, Mark. We shall not hold you solely responsible for the port any longer 
;)

--

___
Python tracker 

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



[issue41543] contextlib.nullcontext doesn't work with async context managers

2020-08-13 Thread Yury Selivanov


Yury Selivanov  added the comment:

I typically don't like objects that support both `with` and `async with`, but 
in this case I think that's appropriate. Nathaniel, Andrew, what do you think?

--
nosy: +njs

___
Python tracker 

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



[issue41539] print blocks with multiprocessing and buffered output

2020-08-13 Thread Martin


Martin  added the comment:

While I appreciate your suggestion, it does not help me much.
The problem that people usually have is that the output is scrambled. That is 
not the problem I'm dealing with.

I'm experiencing a deadlock caused by the print statement which seems like a 
python bug to me.

Furthermore, the problem appears in a library that is supposed to be used by 
other people and I have no control over their use of IO.

The particular behavior seems to be specific to using threading and 
multiprocessing together:
- If I use multiprocessing.dummy (multiprocessing API implemented with threads; 
so only a single processes are involved), my example works fine.
- If I use a process instead of a thread to fill the queue (filler = 
multiprocessing.Process(...); so no threads are involved), my example also 
works fine.
- Only if I have two threads in the main process and additional processes, the 
example fails.

--

___
Python tracker 

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



[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Mark Hammond


Mark Hammond  added the comment:

Yes, while I appreciate the gesture, I am somewhat embarrassed these days - as 
you say, many others deserve this more than me these days.

So please remove it.

--

___
Python tracker 

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



[issue41543] contextlib.nullcontext doesn't work with async context managers

2020-08-13 Thread Tom Gringauz


Change by Tom Gringauz :


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

___
Python tracker 

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



[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-13 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Lukasz, please cherry-pick the 3.9 commits for this issue
90eff4ed4445a0fa9d8cdf74c0f86c50ed510dad
f24430f1542ea2768793b48704ae2d4e241892ae
into 3.9.0rc2 before release.
They fix a regression introduced by a bug fix last June.

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



[issue41544] multiprocessing.dummy.Process lacks daemon parameter

2020-08-13 Thread Martin


Change by Martin :


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

___
Python tracker 

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



[issue41544] multiprocessing.dummy.Process lacks daemon parameter

2020-08-13 Thread Martin


New submission from Martin :

Although multiprocessing.Process has a `daemon` parameter, 
multiprocessing.dummy.Process doesn't.

As multiprocessing.dummy is meant to replicate the API of multiprocessing and 
the daemon parameter is readily available in threading.Thread, it should also 
be available in multiprocessing.dummy.Process.

--
messages: 375347
nosy: moi90
priority: normal
severity: normal
status: open
title: multiprocessing.dummy.Process lacks daemon parameter

___
Python tracker 

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



[issue41542] module `__all__` cannot detect function name with `φ`

2020-08-13 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> not a bug

___
Python tracker 

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



[issue41543] contextlib.nullcontext doesn't work with async context managers

2020-08-13 Thread Tom Gringauz


New submission from Tom Gringauz :

`contextlib.nullcontext` cannot be used with async conetext managers, because 
it implements only `__enter__` and `__exit__`, and doesn't implement 
`__aenter__` and `__aexit__`.

--
components: Library (Lib), asyncio
messages: 375346
nosy: asvetlov, tomgrin10, yselivanov
priority: normal
severity: normal
status: open
title: contextlib.nullcontext doesn't work with async context managers
type: enhancement

___
Python tracker 

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



[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Steve Dower


Steve Dower  added the comment:

So it'll take a bit more rearranging to get everything to fit - I've attached 
one proposal that shuffles the thanks to Mark Hammond down below the "enable 
long path names" button. (It's grey text in the screenshot, but I've switched 
it to black already.)

Alternatively, we could drop that note completely. It's entirely possible that 
Mark feels he's been thanked enough, and is now just embarrassed that we keep 
it around :) There are certainly enough other people with significant 
contributions on Windows who also deserve thanks.

One final option would be to move the "fix long paths" button to earlier in the 
install, though I'm not doing that during RC. The reason it's not part of the 
regular install is because it always requires Admin, and while it would be 
great to have it enabled by default, we already have enough people getting 
confused about whether admin is required to install or not (it's not, but you 
have to change the default launcher option on the front page).

Anyone have any thoughts?

--
nosy: +mhammond
Added file: https://bugs.python.org/file49387/NewInstallSuccessPage.png

___
Python tracker 

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



[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-08-13 Thread STINNER Victor


STINNER Victor  added the comment:

With PR 21865, there are only two remaining warnings:

Doc/library/string.rst:311: WARNING: duplicate token description of 
sf:format_spec, other instance in library/string
Doc/reference/introduction.rst:96: WARNING: duplicate token description of 
*:name, other instance in reference/expressions

See bpo-35293 for RemovedInSphinx40Warning (which are already prevent with 
Sphinx 2).

--

___
Python tracker 

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



[issue41542] module `__all__` cannot detect function name with `φ`

2020-08-13 Thread Seth Woodworth


Seth Woodworth  added the comment:

I don't think it is worth throwing a warning.  This might be the desired, or at 
least allowed, behavior.  I'm relying on the behavior in a toy library I'm 
working on.

--

___
Python tracker 

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



[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-08-13 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20992
pull_request: https://github.com/python/cpython/pull/21865

___
Python tracker 

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



[issue41536] pathlib's Path("NUL:").resolve() throws an error on windows

2020-08-13 Thread Steve Dower


Steve Dower  added the comment:

The trailing colon is unnecessary, and likely to cause more issues, but the 
same thing occurs for Path('NUL').resolve()

This is probably best handled as issue37517, where you'll find more background 
on the error messages.

But I believe that p.resolve(strict=True) should not raise when open(p) will 
succeed, and p.resolve(strict=False) should not raise when open(p)  will 
succeed or raise a *NotFoundError subclass of OSError.

--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7

___
Python tracker 

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



[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-08-13 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 474652fe9346382dbf793f20b671eb74668bebde by Victor Stinner in 
branch 'master':
bpo-40204, doc: Fix syntax of C variables (GH-21846)
https://github.com/python/cpython/commit/474652fe9346382dbf793f20b671eb74668bebde


--

___
Python tracker 

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



[issue41542] module `__all__` cannot detect function name with `φ`

2020-08-13 Thread Tianrui Luo


Tianrui Luo  added the comment:

Thanks!

I am closing this bug.

I wonder if it worth prompting warnings when unnormalized unicode characters 
are used.

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



[issue41066] Update documentation for Pathlib

2020-08-13 Thread Antoine Pitrou


Change by Antoine Pitrou :


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



[issue41066] Update documentation for Pathlib

2020-08-13 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి

Change by Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) 
:


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



[issue41066] Update documentation for Pathlib

2020-08-13 Thread miss-islington


miss-islington  added the comment:


New changeset 43b3e4c32976bf069241ad8bb174929a816ee7ba by Antoine Pitrou in 
branch '3.8':
[3.8] bpo-41066: Update the comparison section for os vs pathlib (GH-21261) 
(GH-21864)
https://github.com/python/cpython/commit/43b3e4c32976bf069241ad8bb174929a816ee7ba


--

___
Python tracker 

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



[issue40994] Very confusing documenation for abc.Collections

2020-08-13 Thread Sydney Pemberton


Sydney Pemberton  added the comment:

Nothing to do with Jupyter itself.
When I'm reading the documentation I don't necessarily think that a sibling
"node" in the document structure is going to have anything to do with my
current section.
So it was weird to see the section entirely empty.

Also, I'm not saying that all non-native speakers are going to be
unfamiliar with the construction, but it is certainly more widely
understandable if the definitions are kept separate.

On Thu, Aug 13, 2020 at 12:54 PM Irit Katriel 
wrote:

>
> Irit Katriel  added the comment:
>
> Sydney, is the issue related to how Jupyter notebook displays the
> documentation?
>
> --
>
> ___
> Python tracker 
> 
> ___
>

-- 

Sydney Pemberton

Software Engineer

512.740.6591

spember...@auntbertha.com
Aunt Bertha  | The Social Care Network

--

___
Python tracker 

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



[issue41066] Update documentation for Pathlib

2020-08-13 Thread miss-islington


miss-islington  added the comment:


New changeset 3dd1153b9963cc7fc74ba2fa5bf2be46f154c613 by Miss Islington (bot) 
in branch '3.9':
bpo-41066: Update the comparison section for os vs pathlib (GH-21261)
https://github.com/python/cpython/commit/3dd1153b9963cc7fc74ba2fa5bf2be46f154c613


--

___
Python tracker 

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



[issue41066] Update documentation for Pathlib

2020-08-13 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
pull_requests: +20991
pull_request: https://github.com/python/cpython/pull/21864

___
Python tracker 

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



[issue41066] Update documentation for Pathlib

2020-08-13 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue41066] Update documentation for Pathlib