[issue40720] accessing mmap of file that is overwritten causes bus error

2021-03-09 Thread Thomas Grainger


Thomas Grainger  added the comment:

I can confirm this happens on py3.5-3.10

```
import mmap
import pathlib
import tempfile


def main():
with tempfile.TemporaryDirectory() as tmp:
tmp_path = pathlib.Path(tmp)
path = tmp_path / "eg"

path.write_bytes(b"Hello, World!")

with path.open("rb") as rf:
mm = mmap.mmap(rf.fileno(), 0, mmap.MAP_SHARED, mmap.PROT_READ)
path.write_bytes(b"")
bytes(mm)

if __name__ == "__main__":
main()
```

--
nosy: +graingert
versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.9

___
Python tracker 

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



[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-09 Thread Senthil Kumaran


Senthil Kumaran  added the comment:

Hello Pandu,

Thank you for this patch and the explanation. Does client blocking on repeated 
challenge from the server (using of while loop) look okay here? 
The conversation here indicates to me that it is fine. Is there any 
recommendation or implementation strategies to break the loop (on a malformed 
server)?

Thanks,
Senthil

--
assignee:  -> orsenthil
nosy: +orsenthil
versions: +Python 3.10, Python 3.9 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue43443] Should shelve support dict union?

2021-03-09 Thread Dominik Vilsmeier


New submission from Dominik Vilsmeier :

The docs of shelve mention that

> Shelf objects support all methods supported by dictionaries. This eases the 
> transition from dictionary based scripts to those requiring persistent 
> storage.

However the `|=` operator is not implemented, preventing a seamless transition 
from `dict` to `shelve`. So should this be implemented for `Shelf` as well? `|` 
on the other hand doesn't make much sense.

Otherwise the docs could be updated.

--
components: Library (Lib)
messages: 388335
nosy: Dominik V.
priority: normal
severity: normal
status: open
title: Should shelve support dict union?
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



[issue33125] Windows 10 ARM64 platform support

2021-03-09 Thread Rubin Simons


Rubin Simons  added the comment:

Requesting that this issue be re-opened or re-evaluated; it would be pretty 
great if Python could provide Windows on ARM binaries for download. There's 
been a lot of traction on ARM in general and having Windows on ARM downloads 
available by default will also give the Python package ecosystem a better 
opportunity to get ready (although it's already impressively far ahead, take a 
look at https://cloudbase.it/python-on-windows-arm64/, 23 of 25 of the most 
popular packages already build out-of-the-box, and the remaining two, numpy and 
cffi have patches available).

--
nosy: +rubin

___
Python tracker 

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



<    1   2