[issue44469] Fix tests for "async with"

2021-06-20 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue44469] Fix tests for "async with"

2021-06-20 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

In Lib/test/test_coroutines.py some tests test that the body of the "asyn with" 
statement with bad context manager was not executed by setting a value of a 
variable in the body and checking its value after executing.

body_executed = False
async def foo():
async with CM():
body_executed = True

with self.assertRaisesRegex(AttributeError, '__aexit__'):
run_async(foo())
self.assertFalse(body_executed)

The problem is that it sets the value of local variable of the inner function, 
and does not affect the outer variable. The test would pass even if the body 
was executed.

--
components: Tests
messages: 396206
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Fix tests for "async with"
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue17359] Mention "__main__.py" explicitly in command line docs

2021-06-20 Thread Cameron Simpson


Change by Cameron Simpson :


--
nosy: +cameron

___
Python tracker 

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



[issue24632] Improve documentation about __main__.py

2021-06-20 Thread Cameron Simpson


Change by Cameron Simpson :


--
nosy: +cameron

___
Python tracker 

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



[issue39452] Improve the __main__ module documentation

2021-06-20 Thread Cameron Simpson


Change by Cameron Simpson :


--
nosy: +cameron

___
Python tracker 

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



[issue44468] Shouldn't `typing.get_type_hints()` default `globalns` to `{}` instead of skipping base classes?

2021-06-20 Thread Will Chen

New submission from Will Chen :

An issue was recently closed that caused synthetic classes and base classes 
with invalid `__module__` attributes to raise `KeyError()` in 
`typing.get_type_hints()`:

https://bugs.python.org/issue41515

However, the implemented solution appears to be to skip those classes 
completely with a `continue` statement, instead of getting the annotations that 
may still be present by using an empty globals dictonary:

https://github.com/python/cpython/pull/25352/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887

In order to work around this issue in my local install of Blender, I had to 
change `.get_type_hints()` to use an empty dictionary for `globalns` when 
encountering invalid modules, rather than skipping them:

https://developer.blender.org/T88986#1179812

>From reading the commit where the broken behaviour was first introduced— Which 
>was described/designed as "backwards compatible"— It looks like the original 
>behaviour was also to use an empty dictionary, and never skip:

https://github.com/python/cpython/commit/f350a268a7071ce7d7a5bb86a9b1229782d4963b#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887R1501

Using an empty dictionary also seemed to be mentioned in the bug report linked 
above.

IMO using an empty dictionary and still returning annotations from classes with 
invalid modules seems like it'd be more sensible, predictable, and 
backwards-compatible, while skipping base classes is likely to just replace the 
obvious `KeyError()` with less reproducible and nastier errors caused by 
returning incomplete type hints.

--
messages: 396205
nosy: willchencontact
priority: normal
severity: normal
status: open
title: Shouldn't `typing.get_type_hints()` default `globalns` to `{}` instead 
of skipping base classes?
type: behavior
versions: Python 3.10, Python 3.11

___
Python tracker 

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



[issue43476] Enabling access to showsyntaxerror for IDLE's shell

2021-06-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

What I am proposing that pseudofile  have one line representing a 
tuple with all the exception information, *including the filename* for the code 
with the error.  In Shell, the filename will usually be another pseudofile 
name, . 

The latter are set with
def stuffsource(self, source):
"Stuff source in the filename cache"
filename = "" % self.gid
self.gid = self.gid + 1
lines = source.split("\n")
linecache.cache[filename] = len(source)+1, 0, lines, filename
return filename

I think the +1 is for a '\n' that will be appended.  The linecache line is 
otherwise our model.

The following is how I created a line  while testing.

try: compile('a b', '', 'single')
except SyntaxError as e:
 err = str((type(e).__name__, e.args[0], *e.args[1]))+'\n'

err will be the single line for the file:
"('SyntaxError', 'invalid syntax. Perhaps you forgot a comma?', '', 
1, 1, 'a b', 1, 4)"

For the patch, err would can be calculated a little differently further down in 
showsyntaxerror (which needs updating).

Then set the cache with 
  linecache.cache[""] = (len(err), 0, [err], "")
---

In friendly, retrieve the lines and unpack the evaluated tuple (\n at the end 
is ok).

exception, message, filename, line, col, text, line_end, col_end = 
eval(lines[0])

Use filename to retrieve the error code lines as you wish.

--

___
Python tracker 

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



[issue44455] compileall should exit nonzero for nonexistent directories

2021-06-20 Thread Jacob Walls


Change by Jacob Walls :


--
components: +Library (Lib)
type:  -> behavior

___
Python tracker 

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



Re: Anaconda navigator not working

2021-06-20 Thread Rob Cliffe via Python-list
I'm afraid I can't help at all, but I have many times (well, it feels 
like many) encountered the

    "%1 is not a valid Win32 application"
error message.  It looks like a format string that has not been given an 
argument to format.

I would guess it's a bug either in Windows or somewhere in Python.
Can anybody shed light on this?
Best wishes
Rob Cliffe
PS I have a very vague idea it's to do with mixing 32-bit and 64-bit 
software.


On 20/06/2021 05:21, Liya Ann Sunny wrote:

After installing Anaconda, I tried to open the anaconda navigator but it did 
not work.
When i check in anaconda prompt by running code

anaconda

it got error like this
(base) C:\Users\Acer>anaconda
Traceback (most recent call last):
   File "C:\Users\Acer\anaconda3\Scripts\anaconda-script.py", line 6, in 

 from binstar_client.scripts.cli import main
   File "C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\__init__.py", line 
17, in 
 from .utils import compute_hash, jencode, pv
   File "C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\__init__.py", 
line 17, in 
 from .config import (get_server_api, dirs, load_token, store_token,
   File "C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\config.py", 
line 54, in 
 USER_LOGDIR = dirs.user_log_dir
   File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 257, in user_log_dir
 return user_log_dir(self.appname, self.appauthor,
   File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 205, in user_log_dir
 path = user_data_dir(appname, appauthor, version); version = False
   File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 67, in user_data_dir
 path = os.path.join(_get_win_folder(const), appauthor, appname)
   File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 284, in _get_win_folder_with_pywin32
 from win32com.shell import shellcon, shell
ImportError: DLL load failed while importing shell: %1 is not a valid Win32 
application.

what is its solution?


--
https://mail.python.org/mailman/listinfo/python-list


[issue44466] faulthandler should indicate if the fault happened in garbage collection

2021-06-20 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +vstinner

___
Python tracker 

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



[issue3276] httplib.HTTPConnection._send_request should not blindly assume dicts for headers

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

Indeed, as Terry wrote the assumption is that header is a mapping (not 
necessarily a dict). It is not hard to implement a Multimap that has this API:

import collections.abc

class Multimap(collections.abc.Mapping):
def __init__(self):
self.data = collections.defaultdict(list)

def __getitem__(self, key):
return self.data[key]

def __setitem__(self, key, value):
self.data[key].append(value)

def __iter__(self):
yield from self.data

def items(self):
for k in list(self.data.keys()):
for v in list(self.data[k]):
yield (k,v)

def __len__(self):
return sum([len(v) for v in self.data.values()])

mm = Multimap()
mm['1'] = 'a'
mm['1'] = 'aa'
mm['1'] = 'aaa'
mm['2'] = 'b'
mm['3'] = 'c'
mm['3'] = 'cc'
print(f'len = {len(mm)}')
print(f'mm.items() = {list(mm.items())}')

Output:
len = 6
mm.items() = [('1', 'a'), ('1', 'aa'), ('1', 'aaa'), ('2', 'b'), ('3', 'c'), 
('3', 'cc')]

--
nosy: +iritkatriel
resolution: out of date -> 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



[issue44466] faulthandler should indicate if the fault happened in garbage collection

2021-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

faulthandler has no access to the C-stack so it cannot see the 
gc_collect_main() as gdb does.

--
nosy: +pablogsal

___
Python tracker 

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



[issue44467] profiling-compatible functools.wraps

2021-06-20 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +rhettinger

___
Python tracker 

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



[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


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



[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset ccc95c7b4799570c2d7e4de3d579860ad833e1f8 by Erlend Egeberg 
Aasland in branch '3.10':
 [3.10] bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567) 
(GH-26816)
https://github.com/python/cpython/commit/ccc95c7b4799570c2d7e4de3d579860ad833e1f8


--

___
Python tracker 

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



[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-06-20 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

FYI, bpo-44087 added the Py_TPFLAGS_DISALLOW_INSTANTIATION flag to 
sqlite3.Statement.


(Side note: I find the issue title a little bit confusing.)

--

___
Python tracker 

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



Anaconda navigator not working

2021-06-20 Thread Liya Ann Sunny
After installing Anaconda, I tried to open the anaconda navigator but it did 
not work.
When i check in anaconda prompt by running code
>>>anaconda
it got error like this
(base) C:\Users\Acer>anaconda
Traceback (most recent call last):
  File "C:\Users\Acer\anaconda3\Scripts\anaconda-script.py", line 6, in 
from binstar_client.scripts.cli import main
  File "C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\__init__.py", 
line 17, in 
from .utils import compute_hash, jencode, pv
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\__init__.py", 
line 17, in 
from .config import (get_server_api, dirs, load_token, store_token,
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\config.py", 
line 54, in 
USER_LOGDIR = dirs.user_log_dir
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 257, in user_log_dir
return user_log_dir(self.appname, self.appauthor,
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 205, in user_log_dir
path = user_data_dir(appname, appauthor, version); version = False
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 67, in user_data_dir
path = os.path.join(_get_win_folder(const), appauthor, appname)
  File 
"C:\Users\Acer\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py", 
line 284, in _get_win_folder_with_pywin32
from win32com.shell import shellcon, shell
ImportError: DLL load failed while importing shell: %1 is not a valid Win32 
application.

what is its solution?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Tkinter problem

2021-06-20 Thread Christian Gollwitzer

Am 19.06.21 um 08:48 schrieb Jach Feng:

Christian Gollwitzer 在 2021年6月19日 星期六下午1:54:46 [UTC+8] 的信中寫道:

I guess you wanted to post another question? Then please open a new
thread. In addition, the question is unclear, you just posted a
transcript of three lines of Python.



I posted to point out there is an error in Liya's script. It's not related to 
Colab, but it may relate to his problem.



Ah! Now I get it, sorry, missed that earlier.

Christian
--
https://mail.python.org/mailman/listinfo/python-list


[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +25397
pull_request: https://github.com/python/cpython/pull/26816

___
Python tracker 

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



[issue44467] profiling-compatible functools.wraps

2021-06-20 Thread Anthony Sottile


New submission from Anthony Sottile :

this is a small proposal to add a new function to the functools module which 
provides better profiling-compatible `@functools.wraps(...)`

the rationale comes from https://github.com/Yelp/named_decorator (which is dead 
/ abandoned)

the tl;dr from there is any time a decorator is involved in a profile it 
becomes very difficult to trace because everything becomes tangled around 
common decorators (because function names are used from the code object)

here is the proposal and an initial implementation:


def wraps_with_name(func, decorator, **kwargs):
def wraps_with_name_decorator(wrapped):
new_name = f'{func.__name__}@{decorator.__name__}'
new_code = wrapped.__code__.replace(co_name=new_name)
# would be nice if `types.FunctionType` had a `.replace(...)` too!
new_wrapped = types.FunctionType(
new_code,
wrapped.__globals__,
new_name,
wrapped.__defaults__,
wrapped.__closure__,
)
return functools.wraps(func, **kwargs)(new_wrapped)
return better_wraps_decorator

the usage would be similar to `functools.wraps`, here is an example:

```python
def my_decorator(func):
@functools.wraps_with_name(func, my_decorator)
def my_decorator_inner(*args, **kwargs):
return func(*args, **kwargs)
return my_decorator
```

--
components: Library (Lib)
messages: 396199
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: profiling-compatible functools.wraps
type: enhancement
versions: Python 3.11

___
Python tracker 

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



[issue44077] IP_RECVTOS option is missing from socket module

2021-06-20 Thread miss-islington


miss-islington  added the comment:


New changeset 28fe0159f59a761bf52c1999c8f7cb12d0d12562 by Miss Islington (bot) 
in branch '3.10':
bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)
https://github.com/python/cpython/commit/28fe0159f59a761bf52c1999c8f7cb12d0d12562


--

___
Python tracker 

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



[issue40956] Use Argument Clinic in sqlite3

2021-06-20 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

> Erlend, is anything left in this issue?

Nothing left; thank you for your guidance and reviews, Dong-hee, Berker, 
Serhiy, and Pablo.

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



[issue44466] faulthandler should indicate if the fault happened in garbage collection

2021-06-20 Thread Maxwell Ballenger


New submission from Maxwell Ballenger :

I have been working on debugging a segfault. When faulthandler catches the 
fault, it makes a printout like this:

Current thread 0x7f4fa62b2700 (most recent call first):
  File "/usr/lib/python3.6/site-packages/tornado/ioloop.py", line 919, in 
call_at
  File "/usr/lib/python3.6/site-packages/tornado/ioloop.py", line 502, in 
add_timeout
  ...

However, when I run the same app with gdb, catch the segfault with gdb and and 
run py-bt, it makes a printout like this

(gdb) py-bt
Traceback (most recent call first):
  Garbage-collecting
  File "/usr/lib/python3.6/site-packages/tornado/ioloop.py", line 919, in 
call_at
functools.partial(stack_context.wrap(callback), *args, **kwargs),
  File "/usr/lib/python3.6/site-packages/tornado/ioloop.py", line 502, in 
add_timeout
return self.call_at(deadline, callback, *args, **kwargs)
  ...

The important distinction here for me is the "Garbage-collecting" line. When 
debugging this issue with faulthandler, I thought that the segfault was 
happening somewhere in the execution stack of this ioloop.py function. It 
wasn't until I ran under gdb that I realized it was actually happening in 
garbage collection and more or less has nothing to do with ioloop.py. It seems 
like faulthandler should be able to tell that the segfault was actually 
generated in garbage collection and this would make faulthandler much more 
helpful for cases like this.

Thank you for reading!

--
components: Library (Lib)
messages: 396196
nosy: maxballenger
priority: normal
severity: normal
status: open
title: faulthandler should indicate if the fault happened in garbage collection
type: enhancement
versions: Python 3.6

___
Python tracker 

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



[issue43298] Windows build cannot detect missing Windows SDK

2021-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 5fbccb763ce540c0d07be86660e0357bffc69d76 by Miss Islington (bot) 
in branch '3.10':
bpo-43298: Improved error message when building without the Windows SDK 
installed (GH-26800) (GH-26802)
https://github.com/python/cpython/commit/5fbccb763ce540c0d07be86660e0357bffc69d76


--
nosy: +pablogsal

___
Python tracker 

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



[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset f87d2038fadd9c067d50fb2f1d7c2f37b9f3893a by Miss Islington (bot) 
in branch '3.10':
bpo-43667: Add news fragment for Solaris changes (GH-26405) (GH-26498)
https://github.com/python/cpython/commit/f87d2038fadd9c067d50fb2f1d7c2f37b9f3893a


--
nosy: +pablogsal

___
Python tracker 

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



[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2021-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 8673b77e251e42874501a47b1df86c6bde4fe1d2 by Miss Islington (bot) 
in branch '3.10':
bpo-41299: Reduce lag in Windows threading timeouts by using a higher precision 
time source (GH-26568) (GH-26580)
https://github.com/python/cpython/commit/8673b77e251e42874501a47b1df86c6bde4fe1d2


--
nosy: +pablogsal

___
Python tracker 

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



[issue44077] IP_RECVTOS option is missing from socket module

2021-06-20 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44077] IP_RECVTOS option is missing from socket module

2021-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset a317778fd58b1c6b250feffbdb4ecf15e293ef48 by Georg Sauthoff in 
branch 'main':
bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)
https://github.com/python/cpython/commit/a317778fd58b1c6b250feffbdb4ecf15e293ef48


--
nosy: +pablogsal

___
Python tracker 

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



ANN: SciPy 1.7.0

2021-06-20 Thread Tyler Reddy
Hi all,

On behalf of the SciPy development team I'm pleased to announce
the release of SciPy 1.7.0.

Sources and binary wheels can be found at:
https://pypi.org/project/scipy/
and at:
https://github.com/scipy/scipy/releases/tag/v1.7.0

One of a few ways to install this release with pip:

pip install scipy==1.7.0

=
SciPy 1.7.0 Release Notes
=

SciPy 1.7.0 is the culmination of 6 months of hard work. It contains
many new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with ``python -Wd`` and check for ``DeprecationWarning`` s).
Our development attention will now shift to bug-fix releases on the
1.7.x branch, and on adding new features on the master branch.

This release requires Python 3.7+ and NumPy 1.16.5 or greater.

For running on PyPy, PyPy3 6.0+ is required.



Highlights of this release


-  A new submodule for quasi-Monte Carlo, `scipy.stats.qmc`, was added
-  The documentation design was updated to use the same PyData-Sphinx theme
as
  NumPy and other ecosystem libraries.
-  We now vendor and leverage the Boost C++ library to enable numerous
  improvements for long-standing weaknesses in `scipy.stats`
-  `scipy.stats` has six new distributions, eight new (or overhauled)
  hypothesis tests, a new function for bootstrapping, a class that enables
  fast random variate sampling and percentile point function evaluation,
  and many other enhancements.
-  ``cdist`` and ``pdist`` distance calculations are faster for several
metrics,
  especially weighted cases, thanks to a rewrite to a new C++ backend
framework
-  A new class for radial basis function interpolation, `RBFInterpolator`,
was
  added to address issues with the `Rbf` class.

We gratefully acknowledge the Chan-Zuckerberg Initiative Essential Open
Source
Software for Science program for supporting many of the improvements to
`scipy.stats`.

***
New features
***

`scipy.cluster` improvements
==

An optional argument, ``seed``, has been added to ``kmeans`` and
``kmeans2`` to
set the random generator and random state.

`scipy.interpolate` improvements
=

Improved input validation and error messages for ``fitpack.bispev`` and
``fitpack.parder`` for scenarios that previously caused substantial
confusion
for users.

The class `RBFInterpolator` was added to supersede the `Rbf` class. The new
class has usage that more closely follows other interpolator classes,
corrects
sign errors that caused unexpected smoothing behavior, includes polynomial
terms in the interpolant (which are necessary for some RBF choices), and
supports interpolation using only the k-nearest neighbors for memory
efficiency.

`scipy.linalg` improvements
=

An LAPACK wrapper was added for access to the ``tgexc`` subroutine.

`scipy.ndimage` improvements
===

`scipy.ndimage.affine_transform` is now able to infer the ``output_shape``
from
the ``out`` array.

`scipy.optimize` improvements
===

The optional parameter ``bounds`` was added to
``_minimize_neldermead`` to support bounds constraints
for the Nelder-Mead solver.

``trustregion`` methods ``trust-krylov``, ``dogleg`` and ``trust-ncg`` can
now
estimate ``hess`` by finite difference using one of
``["2-point", "3-point", "cs"]``.

``halton`` was added as a ``sampling_method`` in `scipy.optimize.shgo`.
``sobol`` was fixed and is now using `scipy.stats.qmc.Sobol`.

``halton`` and ``sobol`` were added as ``init`` methods in
`scipy.optimize.differential_evolution.`

``differential_evolution`` now accepts an ``x0`` parameter to provide an
initial guess for the minimization.

``least_squares`` has a modest performance improvement when SciPy is built
with Pythran transpiler enabled.

When ``linprog`` is used with ``method`` ``'highs'``, ``'highs-ipm'``, or
``'highs-ds'``, the result object now reports the marginals (AKA shadow
prices, dual values) and residuals associated with each constraint.

`scipy.signal` improvements
=

``get_window`` supports ``general_cosine`` and ``general_hamming`` window
functions.

`scipy.signal.medfilt2d` now releases the GIL where appropriate to enable
performance gains via multithreaded calculations.

`scipy.sparse` improvements
==

Addition of ``dia_matrix`` sparse matrices is now faster.


`scipy.spatial` improvements
==

``distance.cdist`` and ``distance.pdist`` performance has greatly improved
for
certain weighted metrics. Namely: ``minkowski``, 

[issue40956] Use Argument Clinic in sqlite3

2021-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Erlend, is anything left in this issue?

--

___
Python tracker 

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



[issue44430] [sqlite3] refactor threading tests

2021-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 5f0fc30de46d41dccf04096df12664fc0a684ca2 by Erlend Egeberg 
Aasland in branch 'main':
bpo-44430: Refactor `sqlite3` threading tests (GH-26748)
https://github.com/python/cpython/commit/5f0fc30de46d41dccf04096df12664fc0a684ca2


--

___
Python tracker 

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



[issue44430] [sqlite3] refactor threading tests

2021-06-20 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +25395
pull_request: https://github.com/python/cpython/pull/26813

___
Python tracker 

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



[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 7d0a47e1affd0a2f56600f3e9473f55f931595bd by Erlend Egeberg 
Aasland in branch 'main':
bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567)
https://github.com/python/cpython/commit/7d0a47e1affd0a2f56600f3e9473f55f931595bd


--
nosy: +pablogsal

___
Python tracker 

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



[issue40956] Use Argument Clinic in sqlite3

2021-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 185ecdc1463c527743eeb16a5deef75c1985de79 by Erlend Egeberg 
Aasland in branch 'main':
bpo-40956: Convert sqlite3.connect and sqlite3.Connection.__init__ to AC 
(GH-24421)
https://github.com/python/cpython/commit/185ecdc1463c527743eeb16a5deef75c1985de79


--
nosy: +pablogsal

___
Python tracker 

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



[issue43066] Zipfile with leading slashes

2021-06-20 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I propose fixing this in documentation.

Raising an error is probably not warranted because zip files are often created 
on one system and used on another, so you can't raise an error based on current 
OS, and having a leading slash in the name is both useful and does work in 
MacOS and Unix. It probably works in some unzip programs on Windows as well (if 
anyone can test that would be great).

Therefore I propose adding the following notes to ZipInfo, ZipFile.write() and 
ZipFile.writestr():

Note: a leading slash in the archive / filename may lead to the archive being 
un-openable in some zip programs on Windows systems.

If that sounds good I can make a PR.

--
nosy: +andrei.avk

___
Python tracker 

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



[issue44404] tkinter's after() AttributeError with functools.partial (no attribute __name__)

2021-06-20 Thread E. Paine


Change by E. Paine :


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

___
Python tracker 

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



[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

PR13580 was not declined, the reviewer requested unit tests. If you want to 
advance this, perhaps you can help fill that in.

The other PR looks like a duplicate that should be closed.

--

___
Python tracker 

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



[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2021-06-20 Thread Noam


Noam  added the comment:

Hi Irit, 

Sorry, I'm still not following, 

The other issue you stated, states that PR is ready(06-2019), and this was in 
2019, is this going to be fixed? or declined (and both should be closed)?

What is the current updated status?

--

___
Python tracker 

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



[issue16328] win_add2path.py sets wrong user path

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

I've refreshed the version as neither the patch was applied nor was the bug 
mentioned in msg239074 fixed so far.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-06-20 Thread Ken Jin


Change by Ken Jin :


--
pull_requests: +25393
pull_request: https://github.com/python/cpython/pull/26811

___
Python tracker 

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



[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-06-20 Thread Ken Jin


Ken Jin  added the comment:

Hello Sebastian, the tests are failing on the Azure pipelines buildbot running 
appx tests:

https://dev.azure.com/Python/cpython/_build/results?buildId=82827=logs=0fcf9c9b-89fc-526f-8708-363e467e119e=fa5ef4ee-3911-591e--19482ab189b7

I suspect it's the same problem as this issue:
https://bugs.python.org/issue44451

Sending a PR shortly to test if that fixes it.

--
nosy: +kj

___
Python tracker 

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



[issue16328] win_add2path.py sets wrong user path

2021-06-20 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.11 -Python 2.7

___
Python tracker 

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



[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

This looks like a 2.7-only issue.

--
nosy: +iritkatriel
resolution:  -> out of date
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



[issue29479] httplib: could not skip "ACCEPT-ENCODING" header

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

As Martin has stated, this can be achieved with putrequest as explained in the 
doc:

https://docs.python.org/3.10/library/http.client.html#http.client.HTTPConnection.putrequest

--
nosy: +iritkatriel
resolution:  -> not a bug
stage: test needed -> 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



[issue24907] Module location load order is not respected if pkg_resources is imported and a namespace is declared

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

2.7 is past EOL and I could not reproduce this on a current python version. 
Please create a new issue if you are still having a problem with this on 3.9+.

PS C:\Users\User\src\cpython-dev> .\python.bat
Running Release|x64 interpreter...
Python 3.11.0a0 (heads/main-dirty:09eb817115, Jun 20 2021, 16:50:29) [MSC 
v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> with open('json/__init__.py', 'w') as f:
...f.write("__import__('pkg_resources').declare_namespace(__name__); 
print('test')")
...
70
>>> quit()
PS C:\Users\User\src\cpython-dev> python -c 'import json; print( json.__file__)'
Running Release|x64 interpreter...
test
C:\Users\User\src\cpython-dev\json\__init__.py

--
nosy: +iritkatriel
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue5840] "Thread State and the Global Interpreter Lock" section of the docs doesn't cover TLS APIs

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

Indeed, this API was deprecated in 3.7:

https://docs.python.org/3/c-api/init.html#thread-local-storage-tls-api

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



[issue44310] Document that lru_cache uses hard references

2021-06-20 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Adding a weak referencing recipe here just so I can find it in the future.

--

import functools
import weakref

def weak_lru(maxsize=128, typed=False):
"""LRU Cache decorator that keeps a weak reference to "self".

Only provides benefit if the instances are so large that
it is impractical to wait for them to age out of the cache.

When the instance is freed, the cache entry still remains
but will be unreachable.

If new instances will be created that are equal to the ones
retired by the weak reference, we lose all the benefits of
having cached the previous call.  

If the class defines __slots__, be sure to add '__weakref__'
to make the instances weak referenceable.

"""

def decorator(func):

ref = weakref.ref

@functools.lru_cache(maxsize, typed)
def _func(_self, /, *args, **kwargs):
return func(_self(), *args, **kwargs)

@functools.wraps(func)
def wrapper(self, /, *args, **kwargs):
return _func(ref(self), *args, **kwargs)

return wrapper

return decorator

--

___
Python tracker 

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



[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

seel also issue37260

--
nosy: +iritkatriel

___
Python tracker 

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



[issue37260] shutil.rmtree() FileNotFoundError race condition

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

see also issue29699

--
nosy: +iritkatriel

___
Python tracker 

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



[issue33213] crypt function not hashing properly on Mac (uses a specific salt)

2021-06-20 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Actually it should be:

  if method is not None and method not in methods:
...

--

___
Python tracker 

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



[issue33213] crypt function not hashing properly on Mac (uses a specific salt)

2021-06-20 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

How about adding a check to `crypt.mksalt()`:

if method and method not in methods:
raise ValueError(f'method {method} is not supported')

If a method is supplied to `crypt.crypt()`, mksalt() is called with it as an 
arg, so adding this check will take care of both paths:
crypt(val, method)
crypt(val, mksalt(method))

the only remaining issue is if an (improperly generated) salt is loaded
from somewhere and used to call `crypt()`, but the check above fixes most of 
the issue.

I can put up a PR if this sounds good.

--
nosy: +andrei.avk

___
Python tracker 

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



[issue31314] email throws exception with oversized header input

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

This is working now:

>>> import sys, email
>>> mail = email.message_from_string(
... """From: 
... To: 
... Subject: demo
... 
X-Overlong-Header-Name-causes-python-mail-to-crash-in-re-serialization-example:
...
... Hello
... """)
>>>
>>> mail

>>> message = mail.as_string()
>>> sys.stdout.write(message)
From: 
To: 
Subject: demo
X-Overlong-Header-Name-causes-python-mail-to-crash-in-re-serialization-example:

Hello
158
>>>

--
nosy: +iritkatriel
resolution:  -> fixed
status: open -> pending

___
Python tracker 

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



[issue30238] 2to3 doesn't detect or fix Exception indexing

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

There is no way to know through static analysis that the subscript is on an 
object of type exception. I think this should be closed as won't fix.

--
nosy: +iritkatriel
resolution:  -> wont fix
status: open -> pending

___
Python tracker 

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



[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2021-06-20 Thread Carl Schaefer


Change by Carl Schaefer :


--
nosy: +carlschaefer

___
Python tracker 

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



[issue21482] get_versions() in cygwinccomiler.py cannot return correct gcc version

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

Closing as this is part of distutils which is deprecated now.

--
nosy: +iritkatriel
resolution:  -> out of date
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



[issue24501] configure does not find (n)curses in /usr/local/libs

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

Closing as this was reported for 2.7 and there has been no followup since. If 
you are still seeing this problem with a current version (>= 3.9), please 
create a new issue.

--
nosy: +iritkatriel
resolution:  -> out of date
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



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

2021-06-20 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.11 -Python 3.10

___
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

2021-06-20 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +patch
nosy: +iritkatriel
nosy_count: 9.0 -> 10.0
pull_requests: +25392
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26810

___
Python tracker 

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



[issue1207466] installer ignores changed installation directory

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

Ah I see 3.2 is still there, so it's wasn't just a python 2 issue.

--

___
Python tracker 

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



[issue1207466] installer ignores changed installation directory

2021-06-20 Thread Irit Katriel


Irit Katriel  added the comment:

Did Terry remove 3.1 because this is only relevant to python 2?  Is this 
resolved/obsolete by now?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2021-06-20 Thread Noam


Noam  added the comment:

Is this still alive? If decided to decline PR why is this still open?

--
nosy: +noamda

___
Python tracker 

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



[issue43476] Enabling access to showsyntaxerror for IDLE's shell

2021-06-20 Thread Andre Roberge


Andre Roberge  added the comment:

I just thought of making a copy of the file content under a known name as the 
least disruptive approach for IDLE's code - even less so than the recent 
addition required to support user-defined exception hooks.

For SyntaxErrors and subclasses [1], Friendly needs the source code as well as 
the error message, offset, lineno (end_offset and end_lineno if they are 
present) in order to perform its analysis. In all cases (i.e not only with IDLE 
but with other environments like Jupyter notebooks), it retrieves this source 
code from the given filename using the linecache module.  

If it were possible to get those exception arguments using RPC, this would be 
much better than what I suggested. This might also be much more useful that 
what I suggest for any third-party code wanting access to the traceback 
information for SyntaxErrors. However, I could not find a simple way of doing 
this.

[1] The required information for run-time errors, such as NameError, etc., is 
already available with sys.excepthook.

--

___
Python tracker 

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



[issue12022] AttributeError should report the same details when raised by lookup_special() as when raised in the REPL

2021-06-20 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

PR 26809 makes "with" and "async with" raising TypeError instead of 
AttributeError for wrong types.

--

___
Python tracker 

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



[issue12022] AttributeError should report the same details when raised by lookup_special() as when raised in the REPL

2021-06-20 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +gvanrossum

___
Python tracker 

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



[issue12022] AttributeError should report the same details when raised by lookup_special() as when raised in the REPL

2021-06-20 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue44458] Duplicate symbol _BUFFER_BLOCK_SIZE when statically linking multiple modules

2021-06-20 Thread Russell Keith-Magee


Change by Russell Keith-Magee :


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

___
Python tracker 

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



[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-20 Thread Mark Dickinson


Mark Dickinson  added the comment:

I think this should be good now.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> pending

___
Python tracker 

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



Re: Unable to remove setup of 3.9.5 from Windows 10

2021-06-20 Thread Peter J. Holzer
On 2021-06-20 15:24:29 +0900, tommy yama wrote:
> Unrelated topic, but i thought Windows 10 will be retired anytime soon.

October 2025, according to current plans. So you still have more than 4
years to upgrade to Windows 11 (or better yet, Linux ;-)).

hp

-- 
   _  | Peter J. Holzer| Story must make more sense than reality.
|_|_) ||
| |   | h...@hjp.at |-- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |   challenge!"


signature.asc
Description: PGP signature
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue36621] shutil.rmtree follows junctions on windows

2021-06-20 Thread Eryk Sun


Eryk Sun  added the comment:

Yes, this issue is out of date. shutil._rmtree_isdir() and 
shutil._rmtree_islink() were added to handle mount points (i.e. junctions) as 
if they're symlinks. 

More generally, junctions and symlinks are what the platform refers to as 
name-surrogate reparse points. This category isn't handled generically by 
rmtree(). It wouldn't be hard to generalize the implementation, but that's 
something for a new issue.

--
nosy: +eryksun
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



Re: Unable to remove setup of 3.9.5 from Windows 10

2021-06-20 Thread tommy yama
Unrelated topic, but i thought Windows 10 will be retired anytime soon.

On Sun, Jun 20, 2021 at 5:58 AM Mats Wichmann  wrote:

> On 6/19/21 10:14 AM, Manish Jain wrote:
> > Hello Team,
> >
> > I have installed the Python 3.9.5 and trying to remove from the PC
> through
> > the Uninstall Program (All Possible ways - Through Control Panel or
> > Uninstall Python executable)
> >
> > It just outputs saying Uninstall Successfully but nothing happening
> (Still
> > listed in Programs List) and even not allowing me to install again.
> >
> > Please let me know if there is any alternate resolution
> >
> > Thanks,
> > Manish
> >
>
> You could try this:
>
>
> https://support.microsoft.com/en-us/topic/fix-problems-that-block-programs-from-being-installed-or-removed-cca7d1b6-65a9-3d98-426b-e9f927e1eb4d
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list