[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It is a duplicate of issue41373 (and the problem is not only with empty files).

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> IDLE: edit/save files created by Windows Explorer

___
Python tracker 

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



[issue41377] memoryview of str (unicode)

2020-07-23 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I concur with Raymond.

Also, it could not help to caught bugs when you get a string instead expected 
bytes object. It may "work" in tests while string is ASCII, but fail miserably 
on real-world non-ASCII data.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

This may have been caused by 
https://github.com/python/cpython/commit/c3fa7534c7173d338880a1727f17795670518610
 for https://bugs.python.org/issue41378

--

___
Python tracker 

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



[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

Hello everybody!

When a new file is loaded, the current loadfile read for the newline to set
the eol_convention. As does not exist for a empty file a None is saved and
for that reason the exception is raised

If you consider that this patch is correct I cant submit a PR

Cheers

--
keywords: +patch
nosy: +eamanu
Added file: 
https://bugs.python.org/file49334/0001-Fix-eol_convention-when-file-does-not-exist.patch

___
Python tracker 

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



[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Raymond Hettinger


New submission from Raymond Hettinger :

I think this is a new bug, present in Python 3.8.5 but not present in 3.8.3.

Steps to reproduce:

* $ touch xyzpdq.py # Creates new file, zero bytes in length
* $ python3.8 -m idlelib.idle xyzdpq.py
* Enter text:   print('hello world')
* Attempt to save the file with Cmd-S
* This seems to be unrecoverable and results
  in losing all the code that was entered.

 example session ---
~ $ cd tmp
~/tmp $ touch qwerty.py
~/tmp $ python3.8 -m idlelib.idle qwerty.py
Exception in Tkinter callback
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py",
 line 1883, in __call__
return self.func(*args)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/multicall.py",
 line 176, in handler
r = l[i](event)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/iomenu.py",
 line 200, in save
if self.writefile(self.filename):
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/iomenu.py",
 line 232, in writefile
text = self.fixnewlines()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/iomenu.py",
 line 252, in fixnewlines
text = text.replace("\n", self.eol_convention)
TypeError: replace() argument 2 must be str, not None

--
assignee: terry.reedy
components: IDLE
keywords: 3.8regression, 3.9regression
messages: 374155
nosy: rhettinger, terry.reedy
priority: high
severity: normal
status: open
title: IDLE EOL convention not set on a empty file
type: crash
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



[issue41377] memoryview of str (unicode)

2020-07-23 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I think we can close this.  AFAICT, if we exposed the raw internal object with 
a memory view, there would be no practical way to use the data without a user 
having to substantially recreate the logic already present in encode() and the 
other string methods.

--
nosy: +rhettinger

___
Python tracker 

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



[issue41377] memoryview of str (unicode)

2020-07-23 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +skrah

___
Python tracker 

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



[issue41182] DefaultSelector fails to detect selector on VMware ESXi

2020-07-23 Thread Guido van Rossum

Guido van Rossum  added the comment:

Łukasz, what do you think of backporting this to 3.9?

--
nosy: +gvanrossum, lukasz.langa

___
Python tracker 

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



[issue41377] memoryview of str (unicode)

2020-07-23 Thread Eric V. Smith


Eric V. Smith  added the comment:

I don't think there's a python-level api to find out the "kind", but I can't 
say I've looked closely. And there are no doubt problems with doing so and 
alternate implementations other than CPython. I'm not sure we want to expose 
this implementation detail, but maybe it's the case that all implementations 
could expose this. For example, JPython could always just say "I'm UCS-2", or 
something.

--

___
Python tracker 

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



[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2020-07-23 Thread Jeffrey Kintscher


Jeffrey Kintscher  added the comment:

It looks like a copy of the zip_file object is getting created, probably by the 
Path constructor:

zip_path = Path(zip_file, "file-a")

When return is invoked, the copy still has a reference to the now closed 
bytes_io object which causes the ValueError exception when ZipFile.__del__() 
calls ZipFile.close().  This is definitely a bug.  I'll take a crack at fixing 
it.

--

___
Python tracker 

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



[issue40841] Provide mimetypes.sniff API as stdlib

2020-07-23 Thread Guido van Rossum


Guido van Rossum  added the comment:

This looks like a useful addition. I hope someone will take up the review!

--
nosy: +gvanrossum

___
Python tracker 

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



[issue41377] memoryview of str (unicode)

2020-07-23 Thread jakirkham


jakirkham  added the comment:

Thanks for the clarification, Eric! :)

Is this the sort of thing that we could capture in the `format`[1] field (like 
with `"B"`, `"H"`, and `"I"`[2]) or are there potential issues there?

[1]: https://docs.python.org/3/c-api/buffer.html#c.Py_buffer.format
[2]: https://docs.python.org/3/library/struct.html#format-characters

--

___
Python tracker 

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



[issue41377] memoryview of str (unicode)

2020-07-23 Thread Eric V. Smith


Eric V. Smith  added the comment:

> AIUI (though I could be misunderstanding things) `str` objects do use some 
> kind of typed array of unicode characters (either 16-bit narrow or 32-bit 
> wide). 

It's somewhat more complicated. The string data is stored differently depending 
on the maximum code point in the string. See PEP 393.

The "kind" field describes this as:
1 byte (Latin-1)
2 byte (UCS-2)
4 byte (UCS-4)

--
nosy: +eric.smith

___
Python tracker 

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



[issue41377] memoryview of str (unicode)

2020-07-23 Thread jakirkham

New submission from jakirkham :

When working with lower level C/C++ code, the Python Buffer Protocol[1] has 
been immensely useful as it allows common Python `bytes`-like objects to expose 
the underlying memory buffer in a pointer that C/C++ code can easily work with 
zero-copy. In fact `memoryview` objects can be quite handy when facilitating 
coercion of Python objects supporting the Python Buffer Protocol to something 
that Python and/or C/C++ code can use easily. This works with several Python 
objects, many Python APIs, and in is relied on heavily by many performance 
conscious 3rd party libraries.

However one object that gets a lot of use in Python that doesn't support this 
API is the Python `str` (previously `unicode`) object (see code below).

```python
In [1]: s = "Hello World!"  

In [2]: mv = memoryview(s)  
---
TypeError Traceback (most recent call last)
 in 
> 1 mv = memoryview(s)

TypeError: memoryview: a bytes-like object is required, not 'str'
```

The canonical answer today is [to encode to `bytes` first]( 
https://stackoverflow.com/a/54449407 ) and decode to `str` later. While this is 
ok for a smallish piece of text, it can start to slowdown considerably for 
larger pieces of text. So being able to skip this encode/decode step can be 
quite impactful.

```python
In [1]: s = "Hello World!"  

In [2]: %timeit s.encode(); 
54.9 ns ± 0.0788 ns per loop (mean ± std. dev. of 7 runs, 1000 loops each)

In [3]: s = 100_000_000 * "Hello World!"

In [4]: %timeit s.encode(); 
729 ms ± 1.23 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
```

AIUI (though I could be misunderstanding things) `str` objects do use some kind 
of typed array of unicode characters (either 16-bit narrow or 32-bit wide). So 
it seems like it *should* be possible to expose this as a 1-D contiguous array 
that C/C++ code could use. Though I may be misunderstanding how `str`s actually 
work under-the-hood (if so apologies).

It would be quite helpful to bypass this encoding/decoding step and instead 
work directly with the underlying buffer in these situations where C/C++ is 
involved to help performance critical code.

[1]: https://docs.python.org/3/c-api/buffer.html

--
components: Library (Lib)
messages: 374147
nosy: jakirkham
priority: normal
severity: normal
status: open
title: memoryview of str (unicode)
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

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



[issue41317] sock_accept() does not remove server socket reader on cancellation

2020-07-23 Thread miss-islington


miss-islington  added the comment:


New changeset 4ff8e5ba4fef7f7d0fc1b1872ccb91bc3fd1294d by Miss Islington (bot) 
in branch '3.9':
bpo-41317: Remove reader on cancellation in asyncio.loop.sock_accept() 
(GH-21595)
https://github.com/python/cpython/commit/4ff8e5ba4fef7f7d0fc1b1872ccb91bc3fd1294d


--

___
Python tracker 

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



[issue41317] sock_accept() does not remove server socket reader on cancellation

2020-07-23 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 0dd98c2d00a75efbec19c2ed942923981bc06683 by Alex Grönholm in 
branch 'master':
bpo-41317: Remove reader on cancellation in asyncio.loop.sock_accept() (#21595)
https://github.com/python/cpython/commit/0dd98c2d00a75efbec19c2ed942923981bc06683


--

___
Python tracker 

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



[issue41317] sock_accept() does not remove server socket reader on cancellation

2020-07-23 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue41374] socket.TCP_* no longer available with cygwin 3.1.6+

2020-07-23 Thread Christoph Reiter


Change by Christoph Reiter :


--
nosy: +erik.bray

___
Python tracker 

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



[issue41375] `mode` security concern

2020-07-23 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> not a bug

___
Python tracker 

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



[issue41375] `mode` security concern

2020-07-23 Thread YoSTEALTH


YoSTEALTH  added the comment:

I am closing this as its not a issue anymore... I was trying to solve a problem 
that has become a core feature!

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



[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2020-07-23 Thread Ned Deily


Ned Deily  added the comment:

Ramon, I am not sure why you closed this issue. Perhaps it may no longer be a 
problem for you, but it has not yet been resolved for users of the python.org 
macOS installers.

--
stage: resolved -> 
status: closed -> open

___
Python tracker 

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



[issue41375] `mode` security concern

2020-07-23 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It is expected behavior on Posix system. See 
https://pubs.opengroup.org/onlinepubs/9699919799/functions/umask.html

What is the problem?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2020-07-23 Thread Ramon


Change by Ramon :


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



[issue41358] Unable to uninstall Python launcher using command line

2020-07-23 Thread William Pickard


William Pickard  added the comment:

I think on Windows, the Python Launcher is a separate install entity.

You can verify this under Control Panel -> Uninstall Program and Features.

--
nosy: +WildCard65

___
Python tracker 

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



[issue41376] site.getusersitepackages() incorrectly claims that PYTHONNOUSERSITE is respected

2020-07-23 Thread Phil Elson


Change by Phil Elson :


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

___
Python tracker 

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



[issue41376] site.getusersitepackages() incorrectly claims that PYTHONNOUSERSITE is respected

2020-07-23 Thread Phil Elson


New submission from Phil Elson :

The documentation for site.getusersitepackages() states at 
https://docs.python.org/3.10/library/site.html#site.getusersitepackages:

Return the path of the user-specific site-packages directory, USER_SITE. If it 
is not initialized yet, this function will also set it, respecting 
PYTHONNOUSERSITE and USER_BASE.


Yet the implementation does not agree:


```
$ python  -c "import site; print(site.getusersitepackages())"
/home/user/.local/lib/python3.7/site-packages

$ PYTHONNOUSERSITE=1 python -c "import site; print(site.getusersitepackages())"
/home/user/.local/lib/python3.7/site-packages
```

(same result for -s and -I flags)

--
assignee: docs@python
components: Documentation
messages: 374139
nosy: docs@python, pelson
priority: normal
severity: normal
status: open
title: site.getusersitepackages() incorrectly claims that PYTHONNOUSERSITE is 
respected
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, 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



[issue41375] `mode` security concern

2020-07-23 Thread YoSTEALTH


New submission from YoSTEALTH :

import os
import stat
import os.path


def problem(tmp_path):
# result:
# ---
# check: False
# mode: 416

# create temp file
fd = os.open(tmp_path, os.O_CREAT, 0o660)
os.close(fd)

# Directory is effected as well
# os.mkdir(tmp_path, 0o660)


def solution(tmp_path):
# result:
# ---
# check: True
# mode: 432

old_umask = os.umask(0)

# create temp file
fd = os.open(tmp_path, os.O_CREAT, 0o660)
os.close(fd)

# create temp dir
# os.mkdir(tmp_path, 0o660)

os.umask(old_umask)


def main():
tmp_path = '_testing-chmod'

problem(tmp_path)
# solution(tmp_path)

try:
s = os.stat(tmp_path)
mode = stat.S_IMODE(s.st_mode)
print('check:', mode == 0o660)
print('mode:', mode)  # this should be: 432
finally:
# delete temp file
try:
os.unlink(tmp_path)
except IsADirectoryError:
os.rmdir(tmp_path)


if __name__ == '__main__':
main()


This result is not same for all os and distro, on multiple linux system for 
example the results will be different. I think Python should account for such 
behavior by default as it can lead to file/dir creation with security issues.

--
components: IO
messages: 374138
nosy: YoSTEALTH
priority: normal
severity: normal
status: open
title: `mode` security concern

___
Python tracker 

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



[issue41335] free(): invalid pointer in list_ass_item() in Python 3.7.3

2020-07-23 Thread Christian Heimes


Christian Heimes  added the comment:

Correction, _int_free() is an internal function of malloc().

small_ints.lto_priv+72 looks like deallocation of an integer object at location 
+72. This is either int 4 (on 64bit platforms) or int 13 (on 32bit platforms):

>>> NSMALLNEGINTS = 5
>>> (4 + NSMALLNEGINTS) * 8
72
>>> (13 + NSMALLNEGINTS) * 4
72

Could you please report the issue with RPi package owner? This looks like a bug 
in a 3rd party module.

--

___
Python tracker 

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



[issue41335] free(): invalid pointer in list_ass_item() in Python 3.7.3

2020-07-23 Thread Christian Heimes


Christian Heimes  added the comment:

int_free() and small_ints in the traceback likely point to a reference counting 
issue for small integers in range of -5 to +256. These integers are cached and 
should never get freed in the middle of a process.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue41365] Python Launcher is sorry to say... No pyvenv.cfg file

2020-07-23 Thread Eryk Sun


Eryk Sun  added the comment:

> The default association should go to pyw.exe, which is likely in 
> your C:\Windows directory.

However, don't browse for pyw.exe. That will create a new progid that doesn't 
support command-line arguments or a shell drop handler. You should select the 
Python app from the list that shows a rocket/shuttle being launched on its 
icon. If it isn't shown or doesn't work properly, try repairing your 
installation of Python.

--

___
Python tracker 

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



[issue41367] Popen Timeout raised on 3.6 but not on 3.8

2020-07-23 Thread Steve Stagg


Steve Stagg  added the comment:

Joan, is that your *actual* password in the example code?  If so, I'd recommend 
changing it wherever you've used it.

--
nosy: +stestagg

___
Python tracker 

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



[issue41335] free(): invalid pointer in list_ass_item() in Python 3.7.3

2020-07-23 Thread Steve Stagg


Steve Stagg  added the comment:

It's possible that RPi.GPIO (or another C extension) is mis-managing reference 
counts, resulting in it freeing or trying to free an object at the wrong time.  

If that object is a common value, or the branch that causes the refcount issue 
is uncommon, it may take many millions of cycles for the problem to occur.

--
nosy: +stestagg

___
Python tracker 

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



[issue41366] sign-conversion warning in 3.9 beta

2020-07-23 Thread Inada Naoki


Inada Naoki  added the comment:

Thank you.

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



[issue41366] sign-conversion warning in 3.9 beta

2020-07-23 Thread miss-islington


miss-islington  added the comment:


New changeset e8dda907fbeb957436d2662714d993b073be55bb by Miss Islington (bot) 
in branch '3.9':
bpo-41366: Fix clang warning for sign conversion (GH-21592)
https://github.com/python/cpython/commit/e8dda907fbeb957436d2662714d993b073be55bb


--

___
Python tracker 

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



[issue41366] sign-conversion warning in 3.9 beta

2020-07-23 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 680254a8dc64e3ada00f88a7c42d41eb02108353 by Henry Schreiner in 
branch 'master':
bpo-41366: Fix clang warning for sign conversion (GH-21592)
https://github.com/python/cpython/commit/680254a8dc64e3ada00f88a7c42d41eb02108353


--
nosy: +inada.naoki

___
Python tracker 

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



[issue41366] sign-conversion warning in 3.9 beta

2020-07-23 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue41365] Python Launcher is sorry to say... No pyvenv.cfg file

2020-07-23 Thread Steve Dower


Steve Dower  added the comment:

> it fails with this error means you're running a virtual-environment launcher 
> instead of a base Python executable.

Exactly. It sounds like you probably searched for pythonw.exe and found the one 
in Lib/venv/scripts/nt instead of the actual one.

The default association should go to pyw.exe, which is likely in your 
C:\Windows directory.

--

___
Python tracker 

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



[issue4630] IDLE: add cursor noblink option

2020-07-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue4630] IDLE: add cursor noblink option

2020-07-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 29df301a9236cbae06762d9569e56197d3f5e6ee by Terry Jan Reedy in 
branch '3.8':
 [3.8] bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)
https://github.com/python/cpython/commit/29df301a9236cbae06762d9569e56197d3f5e6ee


--

___
Python tracker 

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



[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

So loading an externally created blank file (on any system) results in None.  
File=>New must set eol_convention, I presume to the same default.  Before I got 
the traceback, I though it might be an issue with the Windows utf-8 BOM being 
added.

3.9.0rc1 is due August 10.  It should have fix and new tests.

--
stage: patch review -> test needed

___
Python tracker 

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



[issue41374] socket.TCP_* no longer available with cygwin 3.1.6+

2020-07-23 Thread Christoph Reiter


New submission from Christoph Reiter :

The TCP macros are provided by netinet/tcp.h, which for some reason is skipped 
here: 
https://github.com/python/cpython/blob/592527f3ee59616eca2bd1da771f7c14cee808d5/Modules/socketmodule.h#L11

Until cygwin 3.1.6 these macros were also provided by sys/socket.h, but this 
got removed in 
https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=e037192b505b4f233fca9a6deafc9797210f6693

This leads to socket.TCP_NODELAY for example not being available anymore.

git blame leads me to 
https://github.com/python/cpython/commit/b5daaed30d7c54ba1f516289f3a7a30a864133af
 introducing this special case, which isn't very helpful. I'd suggest to just 
remove the cygwin check and always include it (which works fine on my machine)

Downstream bug report for extra context: 
https://github.com/msys2/MSYS2-packages/issues/2050

--
components: Build
messages: 374126
nosy: lazka
priority: normal
severity: normal
status: open
title: socket.TCP_* no longer available with cygwin 3.1.6+
type: compile error
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



[issue4630] IDLE: add cursor noblink option

2020-07-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +20738
pull_request: https://github.com/python/cpython/pull/21599

___
Python tracker 

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



[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2020-07-23 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue4630] IDLE: add cursor noblink option

2020-07-23 Thread miss-islington


miss-islington  added the comment:


New changeset 4cf7afcefcd1eb1ab233ed4523eb2b3bbf599c81 by Miss Islington (bot) 
in branch '3.9':
bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)
https://github.com/python/cpython/commit/4cf7afcefcd1eb1ab233ed4523eb2b3bbf599c81


--

___
Python tracker 

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



[issue37095] [Feature Request]: Add zstd support in tarfile

2020-07-23 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue41368] Allow compiling Python with llvm-clang on Windows.

2020-07-23 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue41300] IDLE: add missing import io in iomenu.py

2020-07-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

#41373 is about another issue with the new iomenu code.  I will close this and 
add tests there.

--
resolution:  -> fixed
stage: test needed -> resolved
status: open -> closed
versions: +Python 3.5 -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



[issue37095] [Feature Request]: Add zstd support in tarfile

2020-07-23 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

The tarfile module supports arbitrary compressions by using the stream mode. 
You only need to use a third-party library which provides zstd support.

Recent versions of the tar utility has options to explicit support of new 
compressions: --lzip, --lzma, --lzop, --zstd, so corresponding modes can be 
added to the tarfile module. But it needs to include the support of these 
compressions in the stdlib. It should be discussed on the Python-ideas mailing 
list.

https://mail.python.org/mailman3/lists/python-ideas.python.org/

--

___
Python tracker 

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



[issue4630] IDLE: add cursor noblink option

2020-07-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 592527f3ee59616eca2bd1da771f7c14cee808d5 by Zackery Spytz in 
branch 'master':
bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)
https://github.com/python/cpython/commit/592527f3ee59616eca2bd1da771f7c14cee808d5


--

___
Python tracker 

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



[issue4630] IDLE: add cursor noblink option

2020-07-23 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20737
pull_request: https://github.com/python/cpython/pull/21598

___
Python tracker 

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



[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-23 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +20736
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/21597

___
Python tracker 

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



[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-23 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I missed that the file's attribute newlines can be None if no line separators 
were read. It can also be a tuple if mixed newlines are used. I think that 
eol_convention should be set to the default value os.linesep in these cases.

I am currently not able to test this since IDLE does not work on my computer 
after upgrading to Ubuntu 20.04.

--
nosy: +serhiy.storchaka

___
Python tracker 

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