[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-05 Thread Ned Deily


New submission from Ned Deily :

For 3.9.0, test_site fails with an env changed warning:

Warning -- urllib.requests._opener was modified by test_site
  Before: None
  After:  
test_site failed (env changed)

== Tests result: SUCCESS ==

1 test altered the execution environment:
test_site

The problem occurs in test_site's test_license_exists_at_url test and was 
introduced by the changes in Issue37421: "Some tests leak temporary files".

This failure has not been noticed up to now because test_license_exists_at_url 
is skipped unless the build being tested is for a released branch, which is 
about to happen for 3.9 with the 3.9.0 release.  The test failure can be 
reproduced on any build by commenting out Lib/test_site.py lines 503-504:

@unittest.skipUnless(sys.version_info[3] == 'final',
 'only for released versions')

Setting to "deferred blocker" status for release manager evaluation.

--
components: Tests
messages: 377995
nosy: lukasz.langa, ned.deily, vstinner
priority: deferred blocker
severity: normal
status: open
title: 3.9.0 test_site warning: "urllib.requests._opener was modified by 
test_site"
type: behavior
versions: Python 3.10, Python 3.9

___
Python tracker 

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



[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-05 Thread Mark Dickinson


Mark Dickinson  added the comment:

> When a concrete class registers with an ABC, it is making a promise that it 
> implements everything in the ABC.

Ah, interesting. I would have assumed that it's only making a promise that it 
registers all the methods and properties marked *abstract* in the ABC. Do you 
have references to back up the stronger statement?

--

___
Python tracker 

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



[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-05 Thread STINNER Victor


STINNER Victor  added the comment:

It's a minor issue in the test itself, not in urllib. Such bug should not block 
a release.

--

___
Python tracker 

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



[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-05 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-05 Thread STINNER Victor


STINNER Victor  added the comment:

I proposed PR 22559 to fix the issue.

See also bpo-37475: "What is urllib.request.urlcleanup() function?".

--

___
Python tracker 

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



[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-05 Thread Mark Dickinson


Mark Dickinson  added the comment:

Ok, so we need to either (a) revert PR 6121 and then re-do the changes, without 
the changes to numbers.py, or (b) make a second PR to undo the numbers.py 
changes. I think there's (calendar) time available for option (b), but I'm not 
going to have bandwidth to do it any time soon, so there's a risk that the 
current changes make it into Python 3.10 purely through inertia. What's the 
best approach here?

--

___
Python tracker 

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



[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-05 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21556
pull_request: https://github.com/python/cpython/pull/22561

___
Python tracker 

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



[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-05 Thread miss-islington


miss-islington  added the comment:


New changeset 9a7642667a71a27b38b96eb63df45f17f48b3467 by Erlend Egeberg 
Aasland in branch 'master':
bpo-41557: Update macOS installer to use SQLite 3.33.0 (GH-21959)
https://github.com/python/cpython/commit/9a7642667a71a27b38b96eb63df45f17f48b3467


--

___
Python tracker 

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



[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-05 Thread miss-islington


miss-islington  added the comment:


New changeset a859680a5bef0bced197454f4b67080694979252 by Miss Skeleton (bot) 
in branch '3.8':
bpo-41557: Update macOS installer to use SQLite 3.33.0 (GH-21959)
https://github.com/python/cpython/commit/a859680a5bef0bced197454f4b67080694979252


--

___
Python tracker 

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



[issue41936] Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION

2020-10-05 Thread STINNER Victor


STINNER Victor  added the comment:

I failed to find users of these macros outside the CPython code base, so it 
sounds safe to remove it, especially if it's documented in What's New in Python 
3.10.

If someone reports the removal as a regression and describes a legit use case, 
we can reconsider to revert the removal. Until that, I'm fine with removing 
them.

--

I ran grep on Cython and numpy code base: I cannot find "Py_ALLOW_RECURSION", 
"Py_END_ALLOW_RECURSION" or "recursion_critical".

On GitHub, I only found copies of Include/ceval.h (I looked at the first 5 
pages of result):
https://github.com/search?l=C&q=Py_ALLOW_RECURSION&type=Code

--

___
Python tracker 

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



[issue41940] AMD64 Debian root 3.x: tests fail because downloaded files start with:

2020-10-05 Thread STINNER Victor


New submission from STINNER Victor :

Why do downloaded files start with https://buildbot.python.org/all/#/builders/345/builds/132

5 tests failed:
test_codecmaps_cn test_codecmaps_jp test_codecmaps_kr
test_codecmaps_tw test_hashlib

I'm not sure if all failures are download issues.


Examples:

ERROR: test_mapping_file (test.test_codecmaps_kr.TestCP949Map)
--
Traceback (most recent call last):
  File 
"/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/multibytecodec_support.py",
 line 305, in test_mapping_file
self._test_mapping_file_plain()
  File 
"/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/multibytecodec_support.py",
 line 319, in _test_mapping_file_plain
csetval = eval(data[0])
  File "", line 1


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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread twoone3


New submission from twoone3 <3197653...@qq.com>:

When I set Py_LegacyWindowsStdioFlag to 0, after Py_Initialize, the console 
will forcibly change what encoding is displayed. At this time, my standard 
stream output is utf-8, py's print is utf-8, chcp 65001 is useless, and still 
garbled.  When I set Py_LegacyWindowsStdioFlag to 1, the console encoding is 
mbcs, the standard stream output is UTF-8 and not garbled, but the print of py 
is gbk encoding, and my system is Windows server 2016. I hope that 
Py_Initialize will not affect the console in subsequent versions.  Do any 
behavior, I suggest you test the coding problem in Chinese

--
components: C API
messages: 378004
nosy: twoone3
priority: normal
severity: normal
status: open
title: Py_Initialize affects the console
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-05 Thread Mark Dickinson


Mark Dickinson  added the comment:

[Guido]

> Possibly at some point in the future we can switch to using typing.Protocol 
> [...]

Yes, I think there's an interesting wider problem here, that typing.Protocol 
might be the answer to.

For numbers and collections.abc in the std. lib., I'm happy to accept that 
simply having a method present in the relevant ABC class implicitly makes it a 
part of the interface (though it would be good if that were clarified 
somewhere).

But in our own code, we've found it convenient to have abc.ABC subclasses that 
are a combination of interface and convenience base class, with the external 
interface separated from the convenience methods via the @abstractmethod and 
@abstractproperty decorators: classes that register with the given ABC subclass 
must provide all methods marked with those decorators, but the other methods 
are not considered part of the formal interface, and not used by client code 
that expects only an object implementing that interface.

The alternative to that convenience is to have two classes: a separate purely 
abstract interface, and a base class implementing that interface that's 
designed for subclassing. That works too, but it's a bit unwieldy, and it's 
useful to have the all-in-one option available.

--

___
Python tracker 

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



[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-05 Thread Ned Deily


Ned Deily  added the comment:


New changeset b6d37e15cfa32e04f750d78a03a68ec5bef00a59 by Miss Skeleton (bot) 
in branch '3.9':
bpo-41557: Update macOS installer to use SQLite 3.33.0 (GH-21959) (GH-22560)
https://github.com/python/cpython/commit/b6d37e15cfa32e04f750d78a03a68ec5bef00a59


--
nosy: +ned.deily

___
Python tracker 

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



[issue25292] [asyncio] ssl socket gets into broken state when client exits during handshake

2020-10-05 Thread STINNER Victor


Change by STINNER Victor :


--
title: ssl socket gets into broken state when client exits during handshake -> 
[asyncio] ssl socket gets into broken state when client exits during handshake

___
Python tracker 

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



[issue30578] Misleading example in sys.set_coroutine_wrapper docs

2020-10-05 Thread STINNER Victor


STINNER Victor  added the comment:

Right, I close the issue.

--
resolution:  -> out of date
stage: needs patch -> 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-10-05 Thread STINNER Victor


STINNER Victor  added the comment:

Can this issue be closed? Are we waiting for manual checks? Or is there any 
remaining thing to do?

--

___
Python tracker 

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



[issue25292] [asyncio] ssl socket gets into broken state when client exits during handshake

2020-10-05 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue41940] AMD64 Debian root 3.x: tests fail because downloaded files start with:

2020-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It is also not safe to pass data downloaded from untrusted source to eval().

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue41936] Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION

2020-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e by Serhiy Storchaka in 
branch 'master':
bpo-41936. Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION (GH-22552)
https://github.com/python/cpython/commit/dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e


--

___
Python tracker 

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



[issue41936] Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION

2020-10-05 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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread Eryk Sun


Eryk Sun  added the comment:

Python supports Unicode in a Windows console session by using the console API's 
wide-character functions (i.e. ReadConsoleW and WriteConsoleW) with UTF-16 
encoded text. This is implemented in the io stack via io._WindowsConsoleIO, and 
for PyOS_Readline (e.g. builtin `input`) via _PyOS_WindowsConsoleReadline. The 
UTF-16 aspect is an internal detail that's presented externally as UTF-8 by 
automatically converting between the two.

Notwithstanding the behavior of third-party packages, CPython intentionally 
makes no changes to a console session's global settings, including:

* input & output codepages
* input & output modes (except for msvcrt.getwch, etc)
* cursor size and visibility
* screen-buffer size, font, colors, & attributes
* window size
* window title

--
nosy: +eryksun

___
Python tracker 

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



[issue41921] REDoS in parseentities

2020-10-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Without evaluating the validity of the regex vulnerability, is important to 
note that the files in Tools/scripts are not part of the standard library and 
therefore they aren't a valid stack vector.

--
nosy: +pablogsal

___
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-10-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Yeah, there is some code in PR 21748 that should be merged (the new test).

--

___
Python tracker 

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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread Eryk Sun


Change by Eryk Sun :


--
components: +IO, Unicode, Windows
nosy: +ezio.melotti, paul.moore, steve.dower, tim.golden, vstinner, zach.ware

___
Python tracker 

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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread twoone3


twoone3 <3197653...@qq.com> added the comment:

So how does this explain

--
Added file: https://bugs.python.org/file49495/Screenshots.zip

___
Python tracker 

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



[issue41942] Add if condition for 'for loop'

2020-10-05 Thread chienpingtsung


New submission from chienpingtsung :

'for loop' always been used as follow code:

arr = [...]
for e in arr:
if not condition(e):
continue
...

What if be written just like 'list expression', would it be more explicit?

for e in arr if condition(e):
pass

--
components: Interpreter Core
messages: 378015
nosy: chienpingtsung
priority: normal
severity: normal
status: open
title: Add if condition for 'for loop'
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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread STINNER Victor


STINNER Victor  added the comment:

I suggest you to use 
https://docs.python.org/dev/c-api/init_config.html#c.PyConfig.PyConfig_InitIsolatedConfig
 API instead of the legacy Py_Initialize() API.

--

___
Python tracker 

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



[issue41940] AMD64 Debian root 3.x: tests fail because downloaded files start with:

2020-10-05 Thread Florian Bruhin


Florian Bruhin  added the comment:

> It is also not safe to pass data downloaded from untrusted source to eval().

To make matters worse, it's downloaded via HTTP (rather than HTTPS) - so anyone 
who can mess with the network of a machine running the Python testsuite can run 
arbitrary code on that machine.

(I contacted secur...@python.org about this a couple of hours ago, but I guess 
this is effectively public now anyways :D)

--
nosy: +The Compiler

___
Python tracker 

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



[issue41940] AMD64 Debian root 3.x: tests fail because downloaded files start with:

2020-10-05 Thread STINNER Victor


STINNER Victor  added the comment:

> It is also not safe to pass data downloaded from untrusted source to eval().

Would you mind to open a separated issue for that?

Does someone want to propose a change to avoid eval() in the tests?

--

___
Python tracker 

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



[issue28343] Bad encoding alias cp936 -> gbk: euro sign

2020-10-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue40066] Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-10-05 Thread Ethan Furman


Ethan Furman  added the comment:

Python-Dev thread [0], summary below:

> As you may have noticed, Enums are starting to pop up all
> over the stdlib [1].
>
> To facilitate transforming existing module constants to
> IntEnums there is `IntEnum._convert_`.  In Issue36548 [2]
> Serhiy modified the __repr__ of RegexFlag:
>
>   >>> import re
>   >>> re.I
>   re.IGNORECASE
>
> I think for converted constants that that looks nice.
>  For anyone that wants the actual value, it is of course
> available as the `.value` attribute:
>
>   >>> re.I.value
>   2
>
> I'm looking for arguments relating to:
>
> - should _convert_ make the default __repr__ be
>   module_name.member_name?
>
> - should _convert_ make the default __str__ be the same,
>   or be the numeric value?

After discussions with Guido I made a (largely done) PR [3] which:

for stdlib global constants (such as RE)
   - repr() -> uses `module.member_name`
   - str() -> uses `member_name`

for stdlib non-global constants, and enums in general
   - repr() -> uses `class.member_name`
   - str() -> uses `member_name`

The questions I would most appreciate an answer to at this point:

- do you think the change has merit?
- why /shouldn't/ we make the change?

As a reminder, the underlying issue is trying to keep at least the stdlib Enum 
representations the same for those that are replacing preexisting constants.


[0] 
https://mail.python.org/archives/list/python-...@python.org/message/CHQW6THTDYNPPFWQ2KDDTUYSAJDCZFNP/

[1] I'm working on making their creation faster.  If anyone wanted to convert 
EnumMeta to C I would be grateful.

[2] https://bugs.python.org/issue36548

[3] https://github.com/python/cpython/pull/22392

--
nosy: +rhettinger

___
Python tracker 

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



[issue41942] Add if condition for 'for loop'

2020-10-05 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This is a language change that has been discussed on the python-ideas list a 
number of times.

In my opinion adding this would not necessarily be an improvement, especially 
when names and expressions get longer. You'd also not win a lot compared to 
your initial pattern, especially because the "continue" statement can be placed 
on the same line as the if statement itself (for short enough conditions).

This is something that should be discussed on python-ideas, but please 
investigate what's been discussed before before you do so.

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread twoone3


twoone3 <3197653...@qq.com> added the comment:

This problem has bothered me for a month, thank you for helping me solve this 
problem, you can close it

--

___
Python tracker 

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



[issue41942] Add if condition for 'for loop'

2020-10-05 Thread chienpingtsung


chienpingtsung  added the comment:

Got it, thanks for your reply~

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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread STINNER Victor


STINNER Victor  added the comment:

> This problem has bothered me for a month, thank you for helping me solve this 
> problem, you can close it

I close the issue, but I'm not sure how you fixed it. Don't hesitate commenting 
to explain how you solved it ;-)

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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread Eryk Sun


Eryk Sun  added the comment:

Having looked at the screenshots, it seems that your issue is in part due to 
non-legacy mode not setting the standard I/O files to binary mode (_O_BINARY) 
from their default ANSI text mode (_O_TEXT). This is not a problem on its own. 

The real issue is that you're not using an isolated configuration, as Victor 
suggested, so the LC_CTYPE locale gets set to the default user locale instead 
of "C". When writing to the console in ANSI text mode with a configured locale 
other than the default "C" locale, the C runtime _write() function does a 
double translation from the locale encoding to the console codepage encoding 
via the internal function write_double_translated_ansi_nolock().

--

___
Python tracker 

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



[issue41917] Python 3.9rc2 fails to install matplotlib

2020-10-05 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

This probably isn't an issue with CPython 3.9.0 itself, but rather third-party 
libraries needing to add 3.9 support and provide wheels, and they may be 
waiting for 3.9.0 to be officially released (due out today!).

Here's a PR to add Python 3.9 support to Kiwi (aka kiwisolver):

https://github.com/nucleic/kiwi/pull/88

--
nosy: +hugovk

___
Python tracker 

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



[issue28343] Bad encoding alias cp936 -> gbk: euro sign

2020-10-05 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread twoone3


twoone3 <3197653...@qq.com> added the comment:

I used the link you gave me 
https://docs.python.org/dev/c-api/init_config.html#c.PyConfig.PyConfig_InitIsolatedConfig
 Click to open and turn up to see the box, I follow that box  The example 
inside is done, and the coding problem of the console is solved, but I hope 
that cpython can provide a more concise API, remove useless functions or 
variables, so that it is convenient for you to maintain and easy for users to 
read.

--

___
Python tracker 

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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread STINNER Victor


STINNER Victor  added the comment:

PyConfig_InitIsolatedConfig() reduces side effects on the process. For example, 
it doesn't set the LC_CTYPE locale and it doesn't change the standard streams 
(stdio).

config_init_stdio() is not called in an isolated configuration:

https://github.com/python/cpython/blob/dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e/Python/initconfig.c#L1855

https://github.com/python/cpython/blob/dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e/Python/initconfig.c#L1809-L1817

--

___
Python tracker 

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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread twoone3


twoone3 <3197653...@qq.com> added the comment:

That's it

--

___
Python tracker 

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



[issue41941] Py_Initialize affects the console

2020-10-05 Thread Eryk Sun


Eryk Sun  added the comment:

> config_init_stdio() is not called in an isolated configuration:

config_init_stdio wasn't being called anyway since Py_Initialize uses 
_PyConfig_InitCompatConfig. The issue was primarily due to the LC_CTYPE locale 
being set to the default user locale, as I discussed in msg378024.

Note that for legacy mode, i.e. Py_LegacyWindowsStdioFlag = 1, there's no 
simple way to not modify the standard I/O files. The io stack needs binary 
mode. You'd have to use and modify duped file descriptors.

--

___
Python tracker 

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-10-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21557
pull_request: https://github.com/python/cpython/pull/22562

___
Python tracker 

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



[issue41898] Any logging causes assertLogs to pass

2020-10-05 Thread Irit Katriel


Irit Katriel  added the comment:

Please reopen this issue. I understand after a discussion on stackoverflow what 
the problem is, and there is indeed a bug. I will create a PR with a unit test 
for it an a fix.

--

___
Python tracker 

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



[issue38893] broken container/selinux integration

2020-10-05 Thread Enrico Scholz


Enrico Scholz  added the comment:

IMO the SELinux security attributes must not be copied (except when requested 
explicitly).  Doing so will create badly labeled systems else.  It would be 
better to use default transition rules and call optionally selinux_restorecon() 
then.

E.g. when copying selinux.* attributes, after "cp /tmp/foo /bin/" the resulting 
"/bin/foo" would have a "tmp_t" label (which is wrong).

Without copying attributes, it would be labeled as "bin_t" (which is more 
realistic).

When there are SELinux rules for "/bin/foo", it might be relabeled e.g. to 
"bin_foo_t" by the manual selinux_restorecon().


Ignoring errors silently will make operations very unpredictable.

--
nosy: +ensc2

___
Python tracker 

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



[issue41940] AMD64 Debian root 3.x: tests fail because downloaded files start with:

2020-10-05 Thread Chris Angelico

Chris Angelico  added the comment:

Has this been ongoing, or is it something that started in the past day and a 
half? I've had intermittent internet issues (and expect them to continue for 
another half day or thereabouts), so it's possible that this is actually a 
symptom of that.

If that's the case, then the issue would be that my gateway returned a failure 
page of some sort, which would be another good reason to download the content 
via HTTPS (since that response happens only on non-encrypted downloads).

--
nosy: +Rosuav

___
Python tracker 

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-10-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 060937da988347a887a5f165b023d972fcb97802 by Terry Jan Reedy in 
branch 'master':
bpo-41774: Tweak new programming FAQ entry (GH-22562)
https://github.com/python/cpython/commit/060937da988347a887a5f165b023d972fcb97802


--

___
Python tracker 

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



[issue41894] UnicodeDecodeError during load failure in non-UTF-8 locale

2020-10-05 Thread Inada Naoki


Inada Naoki  added the comment:

I succeeded to reproduce it on Ubuntu 20.04.

$ sudo vi /var/lib/locales/supported.d/ja # add "ja_JP.EUC-JP EUC-JP"
$ sudo locale-gen ja_JP.EUC-JP
Generating locales (this might take a while)...
ja_JP.EUC-JP... done
Generation complete.
$ chmod 
-r./build/lib.linux-x86_64-3.10/_sha3.cpython-310-x86_64-linux-gnu.so
$ LC_ALL=ja_JP.eucjp ./python
Python 3.10.0a0 (heads/master:fbf43f051e, Aug 17 2020, 15:13:52)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_ALL, "")
'ja_JP.eucjp'
>>> import _sha3
Traceback (most recent call last):
File "", line 1, in 
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 101: 
invalid start byte

Error message contains file path (byte string, probably encoded with fs 
encoding) and translated error message (encoded with locale encoding).

I want to use "backslashescape" error handler, but both of 
PyUnicode_DecodeLocale() and PyUnicode_DecodeFSDefault() don't support it.

After thinking about this several minutes, now I prefer 
PyUnicode_DecodeUTF8(msg, strlen(msg), "backslashreplace").
It fixes the issue with minimum behavior change, although error message is 
still backslashescaped.
It might be the best practice for creating Unicode object from C error message 
like strerror(3).

--
nosy: +inada.naoki

___
Python tracker 

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-10-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21558
pull_request: https://github.com/python/cpython/pull/22563

___
Python tracker 

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-10-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21559
pull_request: https://github.com/python/cpython/pull/22564

___
Python tracker 

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



[issue41898] Any logging causes assertLogs to pass

2020-10-05 Thread Irit Katriel


Change by Irit Katriel :


--
pull_requests: +21560
pull_request: https://github.com/python/cpython/pull/22565

___
Python tracker 

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



[issue41944] Python testsuite calls eval() on content received via HTTP

2020-10-05 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

As was reported by Florian Bruhin, Python testsuite calls eval() on content 
received via HTTP (in Lib/test/multibytecodec_support.py).

--
components: Tests
messages: 378036
nosy: The Compiler, serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Python testsuite calls eval() on content received via HTTP
type: security
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



[issue41943] unittest.assertLogs passes unexpectedly

2020-10-05 Thread mrbean-bremen


New submission from mrbean-bremen :

Related to https://bugs.python.org/issue41898, creating a new issue after the 
discussion with Irit Katriel on StackOverflow 
(https://stackoverflow.com/a/64142338/12480730).

Consider the following:

import logging
import unittest

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)


class TestLogging(unittest.TestCase):
def test_logging(self):
with self.assertLogs(level=logging.WARNING):
logger.info('foo')

>From the docs:
The test passes if at least one message emitted inside the with block matches 
the logger and level conditions, otherwise it fails.

This means that this test should fail (nothing has been logged at warning level 
or above), but it passes. 

The reason is that in the assertLogs context manager, the log level of the 
passed logger is temporarily set to the passed level, and if no logging has 
happened on exit, the test will fail. 
If no logger is passed into the call, the temporary log level is set in the 
root level. If any descendant logger has it's own log level set (as in this 
example to INFO), this logger will still log at it's own level, and the test 
will pass. 

This will always happen on the condition that a descendent of the passed logger 
has it's own log level set that is smaller than the asserted level, and it does 
some logging at this level inside the assertLog context manager.

--
components: Library (Lib)
messages: 378035
nosy: mrbean-bremen
priority: normal
severity: normal
status: open
title: unittest.assertLogs passes unexpectedly
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-10-05 Thread miss-islington


miss-islington  added the comment:


New changeset 7e941fa8e0454c7814ce3ec646136758c0db5a25 by Miss Skeleton (bot) 
in branch '3.8':
bpo-41774: Tweak new programming FAQ entry (GH-22562)
https://github.com/python/cpython/commit/7e941fa8e0454c7814ce3ec646136758c0db5a25


--

___
Python tracker 

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



[issue41944] Python testsuite calls eval() on content received via HTTP

2020-10-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue41943] unittest.assertLogs passes unexpectedly

2020-10-05 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +patch
nosy: +iritkatriel
nosy_count: 1.0 -> 2.0
pull_requests: +21562
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22565

___
Python tracker 

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-10-05 Thread miss-islington


miss-islington  added the comment:


New changeset 75dd70e1ce0b5ce50c572802c17b7fa427d9ce23 by Miss Skeleton (bot) 
in branch '3.9':
bpo-41774: Tweak new programming FAQ entry (GH-22562)
https://github.com/python/cpython/commit/75dd70e1ce0b5ce50c572802c17b7fa427d9ce23


--

___
Python tracker 

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



[issue41898] Any logging causes assertLogs to pass

2020-10-05 Thread Irit Katriel


Irit Katriel  added the comment:

Strike that - Troy has created the new issue 41943 so this one can remain 
closed.

--

___
Python tracker 

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



[issue41805] types.GenericAlias and types.Union have no documentation

2020-10-05 Thread Ken Jin


Ken Jin  added the comment:

Hi Patrick, I've completed the docs for PEP 604, and would like to work on the 
docs for PEP 585. May I know if you're still working on this?

--
nosy: +kj

___
Python tracker 

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



[issue41774] Add programming FAQ entry: remove multiple entries from list

2020-10-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: While removing element from list using for and remove(), which has same 
items output is not right -> Add programming FAQ entry: remove multiple entries 
from list
type: behavior -> 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



[issue41945] http.cookies.SimpleCookie.parse error after [keys]

2020-10-05 Thread Jan Novak


New submission from Jan Novak :

If brackets [] are around cookie name,
next cookie names are not loaded.

try:
  import http.cookies as Cookie
except ImportError:
  import Cookie
c = Cookie.SimpleCookie()
c.load('id=12345; [object Object]=data; something=not loaded')
print(c)

Note:
It could cause big problems with session etc.
We found that Chrome/Edge starts to save and send this type of cookies for some 
(couple) users. The origin of that [object Object]=... cookies are probably 
some implementation of
https://cookiepedia.co.uk/cookies/euconsent
and errors somewhere in external javascripts or browsers?

Related issues:
https://bugs.python.org/issue41695
https://bugs.python.org/issue27674

The same problem occures in P3.7, P2.7, six.moves.http_cookies etc.

I know RFT says that cookie-name can't use brackets.
But you can set them to browser cookies.

RFC 6265:
set-cookie-header = "Set-Cookie:" SP set-cookie-string
 set-cookie-string = cookie-pair *( ";" SP cookie-av )
 cookie-pair   = cookie-name "=" cookie-value
 cookie-name   = token
 token = 

RFC 2616:
token  = 1*
   separators = "(" | ")" | "<" | ">" | "@"
  | "," | ";" | ":" | "\" | <">
  | "/" | "[" | "]" | "?" | "="
  | "{" | "}" | SP | HT

--
components: Library (Lib)
messages: 378041
nosy: xnovakj
priority: normal
severity: normal
status: open
title: http.cookies.SimpleCookie.parse error after [keys]
type: behavior
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



[issue41943] unittest.assertLogs passes unexpectedly

2020-10-05 Thread Vinay Sajip


Change by Vinay Sajip :


--
nosy: +vinay.sajip

___
Python tracker 

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



[issue41917] Python 3.9rc2 fails to install matplotlib

2020-10-05 Thread ullix


ullix  added the comment:

I guess so. Just didn't know how else to bring this to someone's attention, 
thanks.

But not having matplotlib? Ohmygod!

--

___
Python tracker 

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



[issue41946] Add concrete examples to os.path documentation

2020-10-05 Thread Stargirl Flowers


New submission from Stargirl Flowers :

Presently the documentation for os.path 
(https://docs.python.org/3.8/library/os.path.html) doesn't contain any concrete 
examples of the input and outputs of the various path manipulation functions.

Contrast this to the Node.js documentation for similar functionality 
(https://nodejs.org/api/path.html)

We could add replesque examples such as:

>> os.path.abspath("example.py")
"/full/path/to/example.py"

...

>> os.path.basename("example.py")
"example"

& so on.

I believe it would be useful for us to have concrete examples here and I'm 
happy to contribute this. If anyone feels differently, let me know.

--
assignee: docs@python
components: Documentation
messages: 378043
nosy: docs@python, theacodes
priority: normal
severity: normal
status: open
title: Add concrete examples to os.path documentation
type: enhancement

___
Python tracker 

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



[issue41602] Python doesn't exit with proper resultcode on SIGINT in runpy (pymain_run_module)

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset c26a666e6751a9fad766ef83432b893f9b15ecaf by Łukasz Langa in 
branch '3.9':
[3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from 
pymain_run_module (GH-21956) (#22397)
https://github.com/python/cpython/commit/c26a666e6751a9fad766ef83432b893f9b15ecaf


--

___
Python tracker 

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



[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 95de3627f1527cbb1e98d64dd7cc6463c297b616 by Łukasz Langa (Miss 
Islington (bot)) in branch '3.9':
bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)
https://github.com/python/cpython/commit/95de3627f1527cbb1e98d64dd7cc6463c297b616


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41819] Fix some compiler warnings

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset c549527ae2cc4b5934dbe80fea127fb04ff65af5 by Łukasz Langa (Miss 
Islington (bot)) in branch '3.9':
bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)
https://github.com/python/cpython/commit/c549527ae2cc4b5934dbe80fea127fb04ff65af5


--
nosy: +lukasz.langa

___
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-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 168a8383c8358eea1b34df0e832f5d652faa6444 by Łukasz Langa (Pablo 
Galindo) in branch '3.9':
[3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544)
https://github.com/python/cpython/commit/168a8383c8358eea1b34df0e832f5d652faa6444


--

___
Python tracker 

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



[issue37328] remove deprecated HTMLParser.unescape

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 8dd430265ccd4d34b74c841d6bcc8f58aa93ad94 by Łukasz Langa (Terry 
Jan Reedy) in branch '3.9':
[3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)
https://github.com/python/cpython/commit/8dd430265ccd4d34b74c841d6bcc8f58aa93ad94


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset f8b3c64958753abce7badbff3525863577fe2e04 by Łukasz Langa (Victor 
Stinner) in branch '3.9':
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309)
https://github.com/python/cpython/commit/f8b3c64958753abce7badbff3525863577fe2e04


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset df71b65a882cc9ddf9cd45ae9f83a04ec441af1e by Łukasz Langa (Miss 
Islington (bot)) in branch '3.9':
bpo-41875: Use __builtin_unreachable when possible (GH-22433)
https://github.com/python/cpython/commit/df71b65a882cc9ddf9cd45ae9f83a04ec441af1e


--

___
Python tracker 

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



[issue40833] Clarify docstring of Path.rename

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 5533c4952cd6c44c63274874be7de06495b914ea by Łukasz Langa (Miss 
Skeleton (bot)) in branch '3.9':
[3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths 
(GH-20554)
https://github.com/python/cpython/commit/5533c4952cd6c44c63274874be7de06495b914ea


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41815] SQLite: segfault if backup called on closed database

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset bd55c46895d2fcfadda46701d3c34d78441a7806 by Łukasz Langa (Miss 
Islington (bot)) in branch '3.9':
bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)
https://github.com/python/cpython/commit/bd55c46895d2fcfadda46701d3c34d78441a7806


--

___
Python tracker 

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



[issue41858] Fix incomplete line on optparse documentation

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset a5750cf43466f5913cdeef774f7c2dcb5943d408 by Łukasz Langa (Miss 
Islington (bot)) in branch '3.9':
bpo-41858: Clarify line in optparse doc (GH-22407)
https://github.com/python/cpython/commit/a5750cf43466f5913cdeef774f7c2dcb5943d408


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41867] Include options for timespec in docstrings of isoformat

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset faaa30392221c7d53d995f65f59f26e86fb84d76 by Łukasz Langa (Miss 
Skeleton (bot)) in branch '3.9':
[3.9] bpo-41867: List options for timespec in docstrings of isoformat methods 
(GH-22418)
https://github.com/python/cpython/commit/faaa30392221c7d53d995f65f59f26e86fb84d76


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41844] IDLE subsection of What's New 3.9

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 7e21aab45d78e2593f231a1290fa6e629e50d90c by Łukasz Langa (Miss 
Islington (bot)) in branch '3.9':
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
https://github.com/python/cpython/commit/7e21aab45d78e2593f231a1290fa6e629e50d90c


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue37062] `AutoNumber` class in enum documentation: support *args in constructor

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset e8165e79f57cb3ca60bf031c417f8fd20c99eaa2 by Łukasz Langa (Miss 
Islington (bot)) in branch '3.9':
bpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22370)
https://github.com/python/cpython/commit/e8165e79f57cb3ca60bf031c417f8fd20c99eaa2


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset e5cc5fd89cc8855ad644ce4ba5e7de766313e418 by Łukasz Langa (Miss 
Islington (bot)) in branch '3.9':
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
https://github.com/python/cpython/commit/e5cc5fd89cc8855ad644ce4ba5e7de766313e418


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 8dd430265ccd4d34b74c841d6bcc8f58aa93ad94 by Łukasz Langa (Terry 
Jan Reedy) in branch '3.9':
[3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)
https://github.com/python/cpython/commit/8dd430265ccd4d34b74c841d6bcc8f58aa93ad94


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 1fce240d6c4b2b2cc17a86e88c65169e15b9feeb by Victor Stinner in 
branch 'master':
bpo-41939: Fix test_site.test_license_exists_at_url() (#22559)
https://github.com/python/cpython/commit/1fce240d6c4b2b2cc17a86e88c65169e15b9feeb


--

___
Python tracker 

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



[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-05 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> I would have assumed that it's only making a promise that it 
> registers all the methods and properties marked *abstract* in
> the ABC. Do you have references to back up the stronger statement?

The isn't some weird or incidental promise.  It is the fundamental reason that 
abstract base classes exist at all (and not just in Python).

>From PEP 3119: "Each test carries with it a set of promises: it contains a 
>promise about the general behavior of the class, and a promise as to what 
>other class methods will be available."

>From PEP 3119: "In addition, the ABCs define a minimal set of methods that 
>establish the characteristic behavior of the type. Code that discriminates 
>objects based on their ABC type can trust that those methods will always be 
>present."

> we need to either (a) revert PR 6121 and then re-do the changes,
> without the changes to numbers.py, or (b) make a second PR to undo
> the numbers.py changes.

Given that (b) can't be done in the short-run, I recommend option (a) so that 
there is a single clean patch and to make sure this doesn't leak into a 
release.  The PR changed 19 files, so the longer we wait the harder it will be 
to revert cleanly.

--

___
Python tracker 

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



[issue38490] statistics: add covariance, Pearson's correlation, and simple linear regression

2020-10-05 Thread Tal Einat


Tal Einat  added the comment:

Given the discussion here and the state of the attached PR, I intend to merge 
the PR in several weeks, unless someone has anything else to say.

--
nosy: +taleinat

___
Python tracker 

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



[issue41947] Tests When Building Python

2020-10-05 Thread Michael L. Boom


New submission from Michael L. Boom :

When building Python it runs 416 tests in sequence.  It would be a "lot" faster 
if these were run in parallel.

--
components: Installation
messages: 378062
nosy: boom0192
priority: normal
severity: normal
status: open
title: Tests When Building Python
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



[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +21564
stage: commit review -> patch review
pull_request: https://github.com/python/cpython/pull/22568

___
Python tracker 

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



[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset d02d824e05e2cb86f4df381be18832e76e2c475f by Brett Cannon in 
branch 'master':
bpo-41584: clarify when the reflected method of a binary arithemtic operator is 
called (#22505)
https://github.com/python/cpython/commit/d02d824e05e2cb86f4df381be18832e76e2c475f


--

___
Python tracker 

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



[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21565
pull_request: https://github.com/python/cpython/pull/22569

___
Python tracker 

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



[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 10b4136bfa5878c058753e1d1bd091e0f7e1ba40 by Miss Skeleton (bot) 
in branch '3.9':
bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559) (#22567)
https://github.com/python/cpython/commit/10b4136bfa5878c058753e1d1bd091e0f7e1ba40


--

___
Python tracker 

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



[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread miss-islington


miss-islington  added the comment:


New changeset 31ceccb2c77854893f3a754aca04bedd74bedb10 by Miss Skeleton (bot) 
in branch '3.8':
bpo-41584: clarify when the reflected method of a binary arithemtic operator is 
called (GH-22505)
https://github.com/python/cpython/commit/31ceccb2c77854893f3a754aca04bedd74bedb10


--

___
Python tracker 

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



[issue40430] ast.Slice is no longer a subclass of ast.slice

2020-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Even if make ast.Slice a (virtual) subclass of ast.slice it will not help much, 
because we cannot do it for ast.Index and ast.ExtSlice. ast.ExtSlice is not 
replaced with ast.Tuple, and any node type can now be used instead of 
ast.Index. The code that does isinstance() or issublass() check for ast.slice 
or one of its subcasses is now broken.

--
resolution:  -> wont fix
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



[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread miss-islington


miss-islington  added the comment:


New changeset 4aad1e5770fab72908f922a7876075d3d5a7c0d0 by Miss Skeleton (bot) 
in branch '3.9':
bpo-41584: clarify when the reflected method of a binary arithemtic operator is 
called (GH-22505)
https://github.com/python/cpython/commit/4aad1e5770fab72908f922a7876075d3d5a7c0d0


--

___
Python tracker 

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



[issue41947] Tests When Building Python

2020-10-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

>From the test.regrtest help:

  -j PROCESSES, --multiprocess PROCESSES
run PROCESSES processes at once

So, if you want to run 4 processes in parallel:
./python -m test.regrtest -j4

--
nosy: +eric.smith

___
Python tracker 

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



[issue41933] Wording of s * n in Common Sequence Operations is not optimal

2020-10-05 Thread Chavdar Yotov


Chavdar Yotov  added the comment:

Looks like a fitting first contribution. Working on a PR now :-)

--
nosy: +chavdar

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2020-10-05 Thread Matthieu hemea


Matthieu hemea  added the comment:

Hi, 

Does anyone find the solution ?
It would help me for this one : https://www.hemea.com/fr/devis-travaux

--
nosy: +matthieuhemea -Jmgray47, Patrick Valibus 410 Gone, amiir.mascud, arnaud, 
calamina, jeanotlapin

___
Python tracker 

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



[issue41947] Tests When Building Python

2020-10-05 Thread Michael L. Boom


Michael L. Boom  added the comment:

When I do the ./configure, make -j 32, and make install it runs 416 tests in 
sequence.  Is there a way to make it run 32 unit tests at a time so it is much 
quicker?  Thanks.

--

___
Python tracker 

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



[issue41947] Tests When Building Python

2020-10-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

You could try setting EXTRATESTOPTS, although I haven't tried it.

This question is probably better asked on python-list or StackOverflow.

--

___
Python tracker 

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



[issue32192] Provide importlib.util.lazy_import helper function

2020-10-05 Thread Brett Cannon


Brett Cannon  added the comment:

Yep, I think the example is enough to close this. Thanks!

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



[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread Brett Cannon


Change by Brett Cannon :


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



  1   2   >