[issue43221] German Text Conversion Using Upper() and Lower()

2021-02-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: >>> '\N{LATIN SMALL LETTER SHARP S}' 'ß' >>> '\N{LATIN CAPITAL LETTER SHARP S}' 'ẞ' The history of ß is complicated and differs in the Germany speaking countries of Austria, Switzerland and Germany, but the short version is that the uppercase version only be

[issue43221] German Text Conversion Using Upper() and Lower()

2021-02-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess this was discussed a few times in different issues. See also https://bugs.python.org/issue34928 -- nosy: +xtreak ___ Python tracker __

[issue43221] German Text Conversion Using Upper() and Lower()

2021-02-13 Thread Eryk Sun
Eryk Sun added the comment: Python uses standard Unicode character properties, as defined by the Unicode Consortium. This issue is discussed in their FAQ [1]: Q: Why does ß (U+00DF LATIN SMALL LETTER SHARP S) not uppercase to U+1E9E LATIN CAPITAL LETTER SHARP S by default? A:

[issue43221] German Text Conversion Using Upper() and Lower()

2021-02-13 Thread Max Parry
New submission from Max Parry : The German alphabet has four extra characters (ä, ö, ü and ß) when compared to the UK/USA alphabet. Until 2017 the character ß was normally only lower case. Upper case ß was represented by SS. In 2017 upper case ß was introduced, although SS is still often/us

[issue43152] warning: unused variable 'code'

2021-02-13 Thread Dong-hee Na
Dong-hee Na added the comment: Now this issue is solved Thank you Victor as the reviewer ;) -- nosy: +vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43152] warning: unused variable 'code'

2021-02-13 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 3cf0833f42ebde24f6435b838785ca4f946b988f by Dong-hee Na in branch 'master': bpo-43152: Update assert statement to remove unused warning (GH-24473) https://github.com/python/cpython/commit/3cf0833f42ebde24f6435b838785ca4f946b988f -- _

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-02-13 Thread Eryk Sun
Eryk Sun added the comment: > IsADirectoryError: [Errno 21] Is a directory: 'not_a_dir/' The trailing slash forces the OS to handle "not_a_dir" as a directory [1]. A pathname that contains at least one non- character and that ends with one or more trailing characters shall not be

[issue43220] Explicit default required arguments with add_mutually_exclusive_group are rejected

2021-02-13 Thread Keith Smiley
Change by Keith Smiley : -- keywords: +patch pull_requests: +23311 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24526 ___ Python tracker ___ ___

[issue43220] Explicit default required arguments with add_mutually_exclusive_group are rejected

2021-02-13 Thread Keith Smiley
New submission from Keith Smiley : With this code: ``` import argparse parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group(required=True) group.add_argument("--foo", default="1") group.add_argument("--bar") args = parser.parse_args() print(args) ``` When you explici

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-02-13 Thread Jeremy Pinto
Jeremy Pinto added the comment: In fact, the issue seems to be coming from open() itself when opening a non-existent directory in write mode: [nav] In [1]: import os ...: nonexixstent_dir = 'not_a_dir/' ...: assert not os.path.exists(nonexixstent_dir) ...: with open

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-02-13 Thread Jeremy Pinto
New submission from Jeremy Pinto : Issue: If you try to copy a file to a directory that doesn't exist using shutil.copy, a IsADirectory error is raised saying the directory exists. This issue is actually caused when `open(not_a_dir, 'wb') is called on a non-existing dir. Expected behaviour:

[issue43218] after venv activation "which python3" and sys.path both give base installation instead of venv

2021-02-13 Thread Neel Gore
New submission from Neel Gore : Fresh python 3.9.1 installation on macOS, shell is zsh activated a venv with "python3 -m venv .venv" activated with "source .venv/bin./activate" "which python3" and "which pip3" both show my base installation -- components: macOS files: Screen Shot 2021

[issue43217] tkinter style map return value in alt theme

2021-02-13 Thread misianne
New submission from misianne : The return value for ttk.style().map('Treeview') is wrong for the 'background' value in the 'alt' theme: tuple are missing. Tcl alt Treeview map: -foreground {disabled #a3a3a3 {!disabled !selected} black selected #ff} -background {disabled #d9d9d9 {!disable

[issue42819] readline 8.1 bracketed paste

2021-02-13 Thread Miro Hrončok
Miro Hrončok added the comment: This also affects Fedora 34+ -- nosy: +hroncok, petr.viktorin, vstinner ___ Python tracker ___ ___ P

[issue43146] 3.10a5 regression: AttributeError: 'NoneType' object has no attribute '__suppress_context__' in traceback.py

2021-02-13 Thread Irit Katriel
Irit Katriel added the comment: > I wonder what the rationale was. It isn't because these functions never > raise. I think it's because sys.exc_info() can return None, None, None when there is no exceptions. -- ___ Python tracker

[issue43216] Removal of @asyncio.coroutine in Python 3.10

2021-02-13 Thread Illia Volochii
New submission from Illia Volochii : It looks like @asyncio.coroutine was scheduled to be removed in Python 3.10. Is it still relevant? https://bugs.python.org/issue36921 https://docs.python.org/3.10/library/asyncio-task.html#asyncio.coroutine -- components: asyncio messages: 386927 n

[issue43215] Document Happy Eyeballs arguments of asyncio.open_connection

2021-02-13 Thread Illia Volochii
Change by Illia Volochii : -- keywords: +patch pull_requests: +23310 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24525 ___ Python tracker ___ _

[issue43215] Document Happy Eyeballs arguments of asyncio.open_connection

2021-02-13 Thread Illia Volochii
New submission from Illia Volochii : The problem is similar to https://bugs.python.org/issue39128. It is not documented that asyncio.open_connection accepts happy_eyeballs_delay and interleave that are passed to loop.create_connection. https://docs.python.org/3/library/asyncio-stream.html#asy

[issue43205] Python Turtle Colour

2021-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If issue24990 is closed, this issue should be closed as well, as it is just a particular case of issue24990. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Foreign language support in

[issue43213] Shortcut for checking if PurePath object contains str

2021-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I guess that you need to use the parts attribute. Note that `'share' in str(path)` and `'share' in path.parts` are two very different things, even if they can give the same result in some cases. When reply be email, please remove the quoted text. It makes

[issue42580] ctypes.util.find_library("libc") fails

2021-02-13 Thread Alex Shpilkin
Change by Alex Shpilkin : -- nosy: +Alex Shpilkin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-13 Thread Barry Alan Scott
Barry Alan Scott added the comment: Thanks Petr, I'll watch for the PEP. FYI: I work on the assumption that if I use Py_LIMITED_API and the header files provide an API guarded by an #if then its "offical". -- ___ Python tracker

[issue43213] Shortcut for checking if PurePath object contains str

2021-02-13 Thread Tomas Gustavsson
Tomas Gustavsson added the comment: Sorry Serhiy, missed your answer there. I understand your point. I guess I'll have to look for other things to help with :) Thank you for the answer. Guess this can be closed then. Best regards Tomas On Sat, 13 Feb 2021, 12:57 Serhiy Storchaka wrote: >

[issue43213] Shortcut for checking if PurePath object contains str

2021-02-13 Thread Tomas Gustavsson
Tomas Gustavsson added the comment: Okay, maybe a bad example. But let's say I want to find all folders and files but filter out those which contains .git,.svn in the paths. Anyhow, I believe this minor feature would make such use cases (and other) more clean and intuitive. I am lazy and I like

[issue43213] Shortcut for checking if PurePath object contains str

2021-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Path is not string, and it was made not string-like intentionally. Otherwise it would be made a subclass of str. If you want to check whether a string is a substring of the string representation of the path, just do it explicitly: 'share' in str(path). But

[issue43213] Shortcut for checking if PurePath object contains str

2021-02-13 Thread Vedran Čačić
Vedran Čačić added the comment: While it might be useful, I don't think it is what you want. For example, you wouldn't say it contains 'r/sh', right? I think it should only refer to full names of path parts. -- nosy: +veky ___ Python tracker

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

2021-02-13 Thread Christoph Reiter
Christoph Reiter added the comment: ping. The PR looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue43146] 3.10a5 regression: AttributeError: 'NoneType' object has no attribute '__suppress_context__' in traceback.py

2021-02-13 Thread Miro Hrončok
Miro Hrončok added the comment: JFYI, there are 2 affected Fedora packages (that we know of): visidata fails to build with Python 3.10: AttributeError: 'NoneType' object has no attribute '__suppress_context__' https://bugzilla.redhat.com/show_bug.cgi?id=1928145 python-utils fails to build wit

[issue43214] site: Potential UnicodeDecodeError when handling pth file

2021-02-13 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue43214] site: Potential UnicodeDecodeError when handling pth file

2021-02-13 Thread Inada Naoki
New submission from Inada Naoki : https://github.com/python/cpython/blob/4230bd52e3f9f289f02e41ab17a95f50ed4db5a6/Lib/site.py#L160 ``` f = io.TextIOWrapper(io.open_code(fullname)) ``` When default text encoding is not UTF-8 and pth file contains non-ASCII character, it will raise Unic