[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

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

[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

[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

[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

Re: Sketch

2021-02-13 Thread Igor Korot
Hi, On Sat, Feb 13, 2021, 9:12 PM Mr Flibble wrote: > On 14/02/2021 05:04, Mark Lawrence wrote: > > On Sunday, February 14, 2021 at 5:01:46 AM UTC, Mr Flibble wrote: > >> CPython *is* the dead parrot. > >> > >> It's time for Python to evolve out of the primordial soup. > >> > >> /Flibble >

[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

Re: Sketch

2021-02-13 Thread Mr Flibble
On 14/02/2021 05:04, Mark Lawrence wrote: On Sunday, February 14, 2021 at 5:01:46 AM UTC, Mr Flibble wrote: CPython *is* the dead parrot. It's time for Python to evolve out of the primordial soup. /Flibble --  Says the bloke(?) who doesn't use mailing lists but does get here

Sketch

2021-02-13 Thread Mr Flibble
CPython *is* the dead parrot. It's time for Python to evolve out of the primordial soup. /Flibble --  -- https://mail.python.org/mailman/listinfo/python-list

Re: New Python implementation

2021-02-13 Thread Mr Flibble
On 14/02/2021 03:26, Grant Edwards wrote: On 2021-02-14, Ned Batchelder wrote: On Saturday, February 13, 2021 at 7:19:58 PM UTC-5, Chris Angelico wrote: At the absolute least, show that you have something that can run Python code. The OP has been making these claims on IRC for a (at least

Re: New Python implementation

2021-02-13 Thread Mr Flibble
On 14/02/2021 00:52, Alan Gauld wrote: On 14/02/2021 00:07, Mr Flibble wrote: On 13/02/2021 18:11, Alan Gauld wrote: You are going to create a Python compiler that will take existing Python code and output a byte code file. No neos is not a Python compiler: it is a *universal* compiler

[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

Re: New Python implementation

2021-02-13 Thread Alan Gauld via Python-list
On 14/02/2021 00:07, Mr Flibble wrote: > On 13/02/2021 18:11, Alan Gauld wrote: >> You are going to create a Python compiler that will take existing >> Python code and output a byte code file. > > No neos is not a Python compiler: it is a *universal* compiler that > can compile any programming

Re: New Python implementation

2021-02-13 Thread Grant Edwards
On 2021-02-14, Ned Batchelder wrote: > On Saturday, February 13, 2021 at 7:19:58 PM UTC-5, Chris Angelico wrote: > >> At the absolute least, show that you have something that can run Python >> code. > > The OP has been making these claims on IRC for a (at least two > years). He has never cared

Re: New Python implementation

2021-02-13 Thread Mr Flibble
On 14/02/2021 02:54, Mark Lawrence wrote: On Sunday, February 14, 2021 at 2:18:03 AM UTC, Mr Flibble wrote: On 14/02/2021 00:51, Ned Batchelder wrote: The OP has been making these claims on IRC for a while (at least two years). He has never cared to substantiate them, or even participate

Re: New Python implementation

2021-02-13 Thread Mr Flibble
On 14/02/2021 03:35, Paul Rubin wrote: Mr Flibble writes: I am creating neos as I need a performant scripting engine for my other major project "neoGFX" and I want to be able to support multiple popular scripting languages including Python. Is something wrong with Guile for that purpose? If

Re: New Python implementation

2021-02-13 Thread Mr Flibble
On 14/02/2021 00:51, Ned Batchelder wrote: On Saturday, February 13, 2021 at 7:19:58 PM UTC-5, Chris Angelico wrote: On Sun, Feb 14, 2021 at 11:14 AM Mr Flibble wrote: On 13/02/2021 23:30, Igor Korot wrote: Hi, But most importantly - what is the reason for this ? I mean - what problems the

Re: New Python implementation

2021-02-13 Thread Mr Flibble
On 14/02/2021 00:19, Chris Angelico wrote: On Sun, Feb 14, 2021 at 11:14 AM Mr Flibble wrote: On 13/02/2021 23:30, Igor Korot wrote: Hi, But most importantly - what is the reason for this ? I mean - what problems the actual python compiler produce? Thank you. I am creating neos as I need

Re: PSYCOPG2

2021-02-13 Thread Mladen Gogala via Python-list
I don't have PSYCOPG2 on my system, but try doing the following from python: [mgogala@umajor ~]$ python3 Python 3.9.1 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import cx_Oracle >>>

Re: New Python implementation

2021-02-13 Thread Ned Batchelder
On Saturday, February 13, 2021 at 7:19:58 PM UTC-5, Chris Angelico wrote: > On Sun, Feb 14, 2021 at 11:14 AM Mr Flibble > wrote: > > > > On 13/02/2021 23:30, Igor Korot wrote: > > > Hi, > > > But most importantly - what is the reason for this ? > > > I mean - what problems the actual python

RE: New Python implementation

2021-02-13 Thread Avi Gross via Python-list
It is likely that people would understand better if spoken to properly so I have been listening and hopefully gaining a picture that I can share, and be corrected helpfully when wrong. My personal guess is that the project at hand is to do something very vaguely like what was done to the

[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

Re: New Python implementation

2021-02-13 Thread Chris Angelico
On Sun, Feb 14, 2021 at 11:14 AM Mr Flibble wrote: > > On 13/02/2021 23:30, Igor Korot wrote: > > Hi, > > But most importantly - what is the reason for this ? > > I mean - what problems the actual python compiler produce? > > > > Thank you. > > I am creating neos as I need a performant scripting

Re: New Python implementation

2021-02-13 Thread Mr Flibble
On 13/02/2021 23:30, Igor Korot wrote: Hi, But most importantly - what is the reason for this ? I mean - what problems the actual python compiler produce? Thank you. I am creating neos as I need a performant scripting engine for my other major project "neoGFX" and I want to be able to

Re: New Python implementation

2021-02-13 Thread Mr Flibble
On 13/02/2021 18:11, Alan Gauld wrote: On 13/02/2021 16:09, Mr Flibble wrote: On 13/02/2021 00:01, Alan Gauld wrote: I'm assuming it's a new executable interpreter that can run any valid python code. Is that correct? It is a universal *compiler* so it compiles the python code to byte code

Re: New Python implementation

2021-02-13 Thread Igor Korot
Hi, But most importantly - what is the reason for this ? I mean - what problems the actual python compiler produce? Thank you. On Sat, Feb 13, 2021, 3:26 PM Alan Gauld via Python-list < python-list@python.org> wrote: > On 13/02/2021 16:09, Mr Flibble wrote: > > On 13/02/2021 00:01, Alan Gauld

Re: New Python implementation

2021-02-13 Thread Alan Gauld via Python-list
On 13/02/2021 16:09, Mr Flibble wrote: > On 13/02/2021 00:01, Alan Gauld wrote: >> I'm assuming it's a new executable interpreter that can run any >> valid python code. Is that correct? > > It is a universal *compiler* so it compiles the python code to byte code > and then optionally to machine

PyCA cryptography 3.4.5 released

2021-02-13 Thread Paul Kehrer
PyCA cryptography 3.4.5 has been released to PyPI. cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, asymmetric algorithms, message digests, X509, key derivation functions, and much more. We support Python 3.6+, and

RE: PSYCOPG2

2021-02-13 Thread Tony Ogilvie
Thank you I have tried Sublime 3 and the same thing happens. I do not think I have another version of Python on my PC. I am trying to look through my files to find out. Regards Tony -Original Message- From: Mladen Gogala Sent: 13 February 2021 05:35 To: python-list@python.org

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

Re: PSYCOPG2

2021-02-13 Thread dn via Python-list
On 13/02/2021 18.34, Mladen Gogala via Python-list wrote: > On Fri, 12 Feb 2021 18:29:48 +, Tony Ogilvie wrote: > >> I am trying to write a program to open a PostgesSQL 13 database using >> psycopg2. All seems to work if I write direct to Python but if I write >> the script into IDLE it does

[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

RE: mutating a deque whilst iterating over it

2021-02-13 Thread Avi Gross via Python-list
I agree both with the idea that it is not good to mutate things during iteration and that some things we want to do may seemingly require effectively something like a mutation. I want to consider what data structure might capture a normal activity like having a to-do-list for TODAY and another

Re: mutating a deque whilst iterating over it

2021-02-13 Thread Dan Stromberg
On Sat, Feb 13, 2021 at 10:25 AM duncan smith wrote: > On 12/02/2021 03:04, Terry Reedy wrote: > > On 2/11/2021 3:22 PM, duncan smith wrote: > > > >>It seems that I can mutate a deque while iterating over it if I > >> assign to an index, but not if I append to it. Is this the intended >

Re: PSYCOPG2

2021-02-13 Thread Sibylle Koczian
Am 13.02.2021 um 06:34 schrieb Mladen Gogala via Python-list: On Fri, 12 Feb 2021 18:29:48 +, Tony Ogilvie wrote: I am trying to write a program to open a PostgesSQL 13 database using psycopg2. All seems to work if I write direct to Python but if I write the script into IDLE it does not

Re: mutating a deque whilst iterating over it

2021-02-13 Thread duncan smith
On 12/02/2021 03:04, Terry Reedy wrote: > On 2/11/2021 3:22 PM, duncan smith wrote: > >>    It seems that I can mutate a deque while iterating over it if I >> assign to an index, but not if I append to it. Is this the intended >> behaviour? > > Does the deque doc say anything about mutation

Nikola v8.1.3 is out!

2021-02-13 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.1.3. This release has some minor fixes, and a minor dependency change. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2

Re: New Python implementation

2021-02-13 Thread Terry Reedy
On 2/12/2021 4:42 PM, Mr Flibble wrote: On 12/02/2021 02:45, Terry Reedy wrote: On 2/11/2021 5:33 PM, Mr Flibble wrote: On 11/02/2021 22:25, Dan Stromberg wrote: On Thu, Feb 11, 2021 at 2:00 PM Mr Flibble wrote: On 11/02/2021 21:13, Dan Stromberg wrote: Does your project have a name yet? 

[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

Re: New Python implementation

2021-02-13 Thread Mr Flibble
On 13/02/2021 00:01, Alan Gauld wrote: On 12/02/2021 21:46, Mr Flibble wrote: The neos Python implementation will consist of a schema file which describes the language plus any Python-specific semantic concepts So the schema file is some kind of formal grammar definition of the language?

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

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

[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

[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).

[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

[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

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

[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