[Python-Dev] Re: Some pattern annoyance

2023-08-03 Thread Christian Tismer-Sperling
ieve it's accidental that match-case sequence patterns won't match str, bytes or bytearrray objects - regexen are the tool already optimised for that purpose, so it's quite impressive that you are managing to approach the same level of performance! Kind regards, Steve On Wed,

[Python-Dev] Re: Some pattern annoyance

2023-08-02 Thread Christian Tismer-Sperling
;s sad (I am, after all, a GNU Mailman developer), but it's reality. Personally, I'm sad because some people whose contributions I enjoy (you being one of them :-)) didn't move to Discourse. But like you say, it's how things are. Christian - you can make named consta

[Python-Dev] Re: Some pattern annoyance

2023-08-02 Thread Christian Tismer-Sperling
On 02.08.23 13:23, Barry wrote: On 2 Aug 2023, at 12:03, Christian Tismer-Sperling wrote: Hi folks, I just used Structural Pattern Matching quite intensively and I'm pretty amazed of the new possibilities. But see this code, trying to implement Mark Pilgrim's regex algorithm

[Python-Dev] Some pattern annoyance

2023-08-02 Thread Christian Tismer-Sperling
return 4 * 1000, r So what is missing seems to be a notion of const-ness, which could be dynamically deduced. Am I missing something? -- Christian Tismer-Sperling:^) tis...@stackless.com Software Consulting : http://www.stackless.com/ Strandstraße 37

[Python-Dev] Re: How To Get Started

2022-07-28 Thread Christian Heimes
rts of the dev guide confuses you and which section you had a hard time to understand. This would help us greatly to identify problems with the dev guide and help other people that want to contribute. Regards, Christian ___ Python-Dev mailing list --

[Python-Dev] Re: [Python-Help] Unable to bootstrap Python 3 install

2022-06-16 Thread Christian Heimes
es? How do I have to set up my build environment? Which commands do I have to execute? Is there a container image available that comes with everything pre-installed? You mentioned well-documented process by the Android team. Could you please provide links to the rele

[Python-Dev] Re: Migration plan for the distutils removal in Python 3.12

2022-05-10 Thread Christian Heimes
On 10/05/2022 13.18, Victor Stinner wrote: On Tue, May 10, 2022 at 11:28 AM Christian Heimes wrote: Right now, Python still uses distutils internally for multiple use cases. I propose to start with renaming the distutils package to _distutils in the stdlib: * https://github.com/python/cpython

[Python-Dev] Re: Migration plan for the distutils removal in Python 3.12

2022-05-10 Thread Christian Heimes
tup.stdlib. The remaining modules should be done in a couple of weeks. I recommend that we do not rename distutils and instead remove it entirely. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-

[Python-Dev] Re: Migration plan for the distutils removal in Python 3.12

2022-05-10 Thread Christian Heimes
tup.stdlib. The remaining modules should be done in a couple of weeks. I recommend that we do not rename distutils and instead remove it entirely. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-

[Python-Dev] Re: Supported make implementations

2022-03-12 Thread Christian Heimes
s GNU make features that are not supported by BSD make. Could you please open a bug at https://github.com/sphinx-doc/sphinx ? Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org

[Python-Dev] Re: Defining tiered platform support

2022-03-07 Thread Christian Heimes
nd of info. But a Python enhancement proposal is even weirder. +1 for our main docs (cpython/Doc/) Platform support is Python versions specific. Python 3.10 may support different version than 3.11 or 3.12. It makes sense to keep the support information with the code. Chri

[Python-Dev] Re: Defining tiered platform support

2022-03-07 Thread Christian Heimes
. I wouldn't list compiler versions, though. Compiler features like C99 support should be sufficient. Then what more would you want than what's listed in PEP 7 already? Nothing in particular other than a link to the PEP, so people can discover the requirement more easily.

[Python-Dev] Re: Defining tiered platform support

2022-03-04 Thread Christian Heimes
orm? CentOS 7 comes with an old GCC, but has newer GCC versions in SCL (Developer Toolset 8). I'm asking because CentOS 7's default gcc does not support stdatomic.h. The official manylinux2014 OSCI container image ships GCC from devtoolset-8. Christian _

[Python-Dev] Re: It's now time to deprecate the stdlib urllib module

2022-02-06 Thread Christian Heimes
e set of urllib to core HTTP (no ftp, proxy, HTTP auth) and a partial rewrite with stricter, more standard conform parsers for urls, query strings, and RFC 2822 instead of RFC 822 for headers. Christian ___ Python-Dev mailing list -- python-dev@python

[Python-Dev] Re: PyPy on PySide6 is there: PyPy with a Gui

2022-02-04 Thread Christian Tismer-Sperling
PyPy might create much interest for both projects. Cheers - Chris -- Christian Tismer-Sperling:^) tis...@stackless.com Software Consulting : http://www.stackless.com/ Strandstraße 37 : https://github.com/PySide 24217 Schönberg : GPG key -> 0xF

[Python-Dev] PyPy on PySide6 is there: PyPy with a Gui

2022-02-03 Thread Christian Tismer-Sperling
think to send an official announce when this is available on pip. This effort marks the completion of my PyPy support, which began in 2003 and ended involuntarily in 2006 due to a stroke. All the best -- Chris -- Christian Tismer-Sperling:^) tis...@stackless.com Software Consulting

[Python-Dev] Re: Please update Cython *before* introcuding C API incompatible changes in Python

2022-02-02 Thread Christian Heimes
2) look for each symbol in Cython sources Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://m

[Python-Dev] Re: Please update Cython *before* introcuding C API incompatible changes in Python

2022-02-01 Thread Christian Heimes
I would prefer if we can get Cython and all the other code generator and bindings library off the unstable C-API. They should use the limited API instead. If they require any C-APIs outside the limited API, then we should investigate and figure something out.

[Python-Dev] Re: Dropping AC_C_CHAR_UNSIGNED from configure.ac?

2022-01-24 Thread Christian Heimes
On 24/01/2022 14.34, Miro Hrončok wrote: Hello Pythonistas. In (development branch of) Fedora, we have juts upgraded to GCC 12. It seems that the presence of AC_C_CHAR_UNSIGNED in Python's autotools files (configure.ac?) is causing the __CHAR_UNSIGNED__ symbol to be defined in pyconfig.h and

[Python-Dev] Re: [PSA] OpenSSL 3.0 support is preliminary and experimental

2022-01-12 Thread Christian Heimes
On 10/01/2022 17.01, Miro Hrončok wrote: On 09. 01. 22 19:39, Christian Heimes wrote: Hi, I would like to remind everybody that Python's support for OpenSSL 3.0 is preliminary [1]. Python compiles with OpenSSL 3.0.0 and simple code kinda works. However there are known performance regres

[Python-Dev] Re: [PSA] OpenSSL 3.0 support is preliminary and experimental

2022-01-11 Thread Christian Heimes
On 11/01/2022 12.02, Antoine Pitrou wrote: Hi Christian, On Sun, 9 Jan 2022 19:39:06 +0100 Christian Heimes wrote: Hi, I would like to remind everybody that Python's support for OpenSSL 3.0 is preliminary [1]. Python compiles with OpenSSL 3.0.0 and simple code kinda works. However ther

[Python-Dev] [PSA] OpenSSL 3.0 support is preliminary and experimental

2022-01-09 Thread Christian Heimes
me is currently limited, too. Christian [1] https://docs.python.org/3/whatsnew/3.10.html#ssl ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/p

[Python-Dev] Re: "immortal" objects and how they would help per-interpreter GIL

2021-12-15 Thread Christian Heimes
+= !(ob_refcnt >> 63) instead of ob_refcnt++ The code performs "ob_refcnt += 1" when the highest bit is not set and "ob_refcnt += 1" when the bit is set. I have neither tested if the approach actually works nor it's performance. Christian ___

[Python-Dev] Re: Python release announcement format

2021-12-14 Thread Christian Heimes
g file (sha256sum --tag) and sign it with OpenGPG. The signature of a sha256 checksum file is as good as signing the files directly. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python

[Python-Dev] Re: Explicit markers for special C-API situations

2021-12-10 Thread Christian Heimes
On 10/12/2021 03.08, Jim J. Jewett wrote: Christian Heimes wrote: On 09/12/2021 19.26, Petr Viktorin wrote: If the code is the authoritative source of truth, we need a proper parser to extract the information. ... unfortunately I don't trust it enough to let it define the API. Bugs i

[Python-Dev] Re: Explicit markers for special C-API situations (re: Clarification regarding Stable ABI and _Py_*)

2021-12-09 Thread Christian Heimes
PyObject *) PyLong_FromLong(long); and dumps the declaration as: extern struct PyObject * PyLong_FromLong (long int); "abi_func" Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-

[Python-Dev] Re: Clarification regarding Stable ABI and _Py_*

2021-12-07 Thread Christian Heimes
common on LTS/Enterprise Linux distros. If the current stable ABI makes performance improvements too complex then we should consider to define a new stable ABI with less symbols. Christian [1] https://pypi.org/project/cryptography/#files ___ Python-Dev

[Python-Dev] Re: compiled python3.10 is unable to find _ssl

2021-10-20 Thread Christian Heimes
On 20/10/2021 09.43, Robin Becker wrote: On 19/10/2021 16:45, Christian Heimes wrote: We use the standard AX_CHECK_OPENSSL() m4 macro from autoconf-archive to detect OpenSSL. The macro uses pkg-config to detect OpenSSL. It doesn't check for specific version, though. We don't want

[Python-Dev] Re: compiled python3.10 is unable to find _ssl

2021-10-19 Thread Christian Heimes
On 19/10/2021 17.26, Robin Becker wrote: On 19/10/2021 11:21, Christian Heimes wrote: On 19/10/2021 11.57, Robin Becker wrote: .. For PEP 644 I added new instructions how to build Python 3.10 with custom OpenSSL builds. The instructions should work on all major Linux distributions

[Python-Dev] Re: compiled python3.10 is unable to find _ssl

2021-10-19 Thread Christian Heimes
On 19/10/2021 11.57, Robin Becker wrote: On 18/10/2021 18:50, Senthil Kumaran wrote: Your configure script did pick up openssl as the support version was not found. What is your operating system? Make sure you have supported version of ssl. Python requires openssl 1.1.1 or higher. ... I t

[Python-Dev] Re: python3.10 compilation on OpenBSD: running into ssl issues

2021-10-06 Thread Christian Heimes
out the right environment variables to add correct rpath yourself. I'm sorry for the inconvenience. We don't have any CI for OpenBSD. Apparently this feature was never tested on OpenBSD during the release candidate phase either. Christian ___ Pyth

[Python-Dev] Re: python3.10 compilation on OpenBSD: running into ssl issues

2021-10-05 Thread Christian Heimes
atest OpenSSL 1.1.1 version. Regards, Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at

[Python-Dev] Re: Worried about Python release schedule and lack of stable C-API

2021-09-29 Thread Christian Heimes
On 27/09/2021 16.32, Ronald Oussoren via Python-Dev wrote: On 26 Sep 2021, at 19:03, Christian Heimes <mailto:christ...@python.org>> wrote: On 26/09/2021 13.07, jack.jan...@cwi.nl <mailto:jack.jan...@cwi.nl> wrote: The problem with the stable ABI is that very few developers ar

[Python-Dev] Re: Worried about Python release schedule and lack of stable C-API

2021-09-26 Thread Christian Heimes
ython. Stable releases of Cython do not support stable ABI yet. It's an experimental feature in Cython 3.0.0 alpha. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python

[Python-Dev] Re: Deprecate Py_TRASHCAN_SAFE_BEGIN/END in 3.10?

2021-08-19 Thread Christian Tismer-Sperling
), can't we think of replacing it somehow by functions in the case of the Limited API? The API is so often used that it would make sense to _always_ don't crash deeply nested structures. Or do you think it makes no sense at all? Then let's turn it into a no-op. But the current mixed

[Python-Dev] Re: Why list.sort() uses mergesort and not timsort?

2021-06-06 Thread Christian Heimes
or Python about twenty years ago. Tim a first generation Python core dev. Other languages like Java adopted timsort from Python later. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.

[Python-Dev] Re: [python-committers] IMPORTANT: Python 3.10b2 release blockers

2021-05-25 Thread Christian Heimes
f Bus Error in hashlib test: test_gil The problem is already fixed. I forgot to close the release blocker bug after Greg and I took care of https://bugs.python.org/issue36515. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe sen

[Python-Dev] Re: March Steering Council update.

2021-05-18 Thread Christian Heimes
ed users of Python. I have contacted the SC in the beginning of this year and asked them to work with Debian maintainers. Some issues have been addressed and will be available in future releases. Matthias' talk at the language summit is related to the effort of improving Debian packa

[Python-Dev] Re: PEP 644 Accepted -- Require OpenSSL 1.1.1 or newer

2021-04-17 Thread Christian Heimes
On 30/03/2021 13.46, Pablo Galindo Salgado wrote: > Hi Christian, > > Thank you for submitting PEP 644 (Require OpenSSL 1.1.1). After evaluating > the situation and discussing the PEP, the Steering Council is happy with > the PEP, > and hereby accepts it. The SC is of the opinio

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2021-04-16 Thread Christian Heimes
tdlib than C, too. In my personal opinion C++ won't give us any net benefits. I'd much rather go for Rust than C++ to gain memory safety. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2021-04-16 Thread Christian Heimes
$ time make -j10 ... real0m2,072s user0m4,715s sys 0m2,333s ./configure -C and ccache are fantastic. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mai

[Python-Dev] Re: SC feedback: PEP 648 -- Extensible customizations of the interpreter at startup

2021-03-30 Thread Christian Heimes
hon. In particular I don't think that -S (no site module) is the right way to disable __sitecustomize__. It disables too much useful features. It might be a good idea to disable __sitecustomize__ with -I (isolated mode). There should be a new au

[Python-Dev] OpenSSL 1.1.1k CVE fixes

2021-03-25 Thread Christian Heimes
lder clients and servers. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2021-03-25 Thread Christian Heimes
e this: void Py_auto_decref(PyObject **o) { if (!o || !*o) return; Py_DECREF(*o); *o = NULL; } PyObject * func(PyObject self) { PyObject *spam __attribute__((cleanup(Py_auto_decref))); ... Py_RETURN_NONE; // spam gets automatically decrefed } It's too bad that the featu

[Python-Dev] Re: Steering Council update for February

2021-03-10 Thread Christian Heimes
On 11/03/2021 00.38, Mike Miller wrote: > > On 2021-03-10 13:45, David Mertz wrote: >> In contrast, the "master" used in version control directly borrows >> from so-called "master/slave network architecture." > > > It was shown upthread that this isn't the case.  Do you have more > accurate docu

[Python-Dev] Re: Steering Council update for February

2021-03-10 Thread Christian Heimes
On 10/03/2021 10.30, Antoine Pitrou wrote: > On Wed, 10 Mar 2021 10:30:43 +0900 > Inada Naoki wrote: >> On Wed, Mar 10, 2021 at 10:10 AM Ivan Pozdeev via Python-Dev >> wrote: >>> >>> On 10.03.2021 3:53, Chris Angelico wrote: On Wed, Mar 10, 2021 at 11:47 AM Damian Shaw wrote: >

[Python-Dev] Re: Steering Council update for February

2021-03-09 Thread Christian Heimes
inology, https://github.com/bitkeeper-scm/bitkeeper/blob/master/doc/HOWTO.ask#L232 > We are then going to modify the file on both > the master and slave repository and then merge the work. For the sake > of simplicity, we are doing work in the master repository. Christian

[Python-Dev] Re: Need help to fix known Python security vulnerabilities

2021-03-09 Thread Christian Heimes
on the matter. My days of XML processing are long gone. Fixing it for "fame and glory" doesn't motivate me either. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@py

[Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Christian Heimes
On 24/02/2021 20.03, Christian Heimes wrote: > On 24/02/2021 19.17, Steve Dower wrote: >> On 2/24/2021 4:26 PM, Christian Heimes wrote: >>> On 24/02/2021 15.16, Random832 wrote: >>>> On Wed, Feb 24, 2021, at 06:27, Christian Heimes wrote: >>>>> Separate

[Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Christian Heimes
On 24/02/2021 19.17, Steve Dower wrote: > On 2/24/2021 4:26 PM, Christian Heimes wrote: >> On 24/02/2021 15.16, Random832 wrote: >>> On Wed, Feb 24, 2021, at 06:27, Christian Heimes wrote: >>>> Separate directories don't prevent clashes and system breakage. But

[Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Christian Heimes
On 24/02/2021 15.16, Random832 wrote: > On Wed, Feb 24, 2021, at 06:27, Christian Heimes wrote: >> Separate directories don't prevent clashes and system breakage. But they >> provide an easy way to *recover* from a broken system. > > I think it could be turned into

[Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Christian Heimes
of these installations.  There are tools like https://rdfind.pauldreik.se/rdfind.1.html that create hard links to deduplicate files. Some files systems have deduplicated baked in, too. Christian ___ Python-Dev mailing list -- python-dev@python.org To

[Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Christian Heimes
f Python, and the following >> statement stood out for me as shocking: >> >> Christian Heimes wrote: >>> Core dev and PyPA has spent a lot of effort in promoting venv because we >>> don't want users to break their operating system with sudo pip install. >>

[Python-Dev] Re: Move support of legacy platforms/architectures outside Python

2021-02-21 Thread Christian Heimes
On 21/02/2021 13.47, glaub...@debian.org wrote: > Rust doesn't keep any user from building Rust for Tier 2 or Tier 3 platforms. > There is no separate configure guard. All platforms that Rust can build for, > are always enabled by default. No one in Rust keeps anyone from > cross-compiling code

[Python-Dev] Re: Move support of legacy platforms/architectures outside Python

2021-02-21 Thread Christian Heimes
fails unless users explicitly opt-in. The checker serves two purposes: 1) It gives users an opportunity to provide full PEP 11 support (buildbot, engineering time) for a platform. 2) It gives us the leverage to remove a flagged platform in the future or refuse support on BPO. Christian _

[Python-Dev] Re: Security releases of CPython

2021-02-19 Thread Christian Heimes
On 19/02/2021 23.22, Stestagg wrote: > The thing that stood out from this conversation, for me, is: Releases > are too hard, and there’s a risk of not having enough volunteers as a > result. > > How hard is it to fix that?  Actually it's easy to fix! The PSF needs needs sufficient money to hire

[Python-Dev] Re: PEP 624: Remove Py_UNICODE encoder APIs

2021-02-01 Thread Christian Heimes
thon | wc -l 4264 $ grep -R wcslen /usr/bin/ /usr/sbin/ | grep -v python | wc -l 92 $ find /usr/lib64/ -name '*.so' -not -name '*python*' | wc -l 5478 $ find /usr/lib64/ -name '*.so' -not -name '*python*' | xargs grep wcslen | wc -l 34 Christian __

[Python-Dev] Re: Upcoming 3.7.10 and 3.6.13 Security Releases

2021-01-20 Thread Christian Heimes
he issue. Benjamin's fix has landed two days ago. The fixes will be included in 3.7.10 and 3.6.13. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman

[Python-Dev] Re: Where is the SQLite module maintainer

2020-12-27 Thread Christian Heimes
n many years. I haven't seen him in quite some time, too. How about you put your name in the expert index instead of him? :) Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org h

[Python-Dev] Re: Distro packagers: PEP 615 and the tzdata dependency

2020-11-16 Thread Christian Heimes
9 release, Fedora has plans to fix this > <https://src.fedoraproject.org/rpms/python3.10/pull-request/13>, and > Christian Heimes has opened a bug on the Ubuntu launchpad > <https://bugs.launchpad.net/ubuntu/+source/python3.9/+bug/1904271> for > this. I will figure o

[Python-Dev] Re: Words rather than sigils in Structural Pattern Matching

2020-11-14 Thread Christian Nielsen
I very much second this opinion /Christian On Sat, 14 Nov 2020, 15.16 Joao S. O. Bueno, wrote: > > > On Sat, 14 Nov 2020 at 10:16, Nick Coghlan wrote: > >> On Fri, 13 Nov 2020 at 09:39, David Mertz wrote: >> > >> > I have read a great deal of discuss

[Python-Dev] Re: Drop Solaris, OpenSolaris, Illumos and OpenIndiana support in Python

2020-10-30 Thread Christian Heimes
or Solaris support and stable build bots, I'm all in favor to remove the platforms. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman

[Python-Dev] Re: When to remove BytesWarning?

2020-10-24 Thread Christian Heimes
;> b = b'bytes' >>> f"{b}" Traceback (most recent call last): File "", line 1, in BytesWarning: str() on a bytes instance >>> str(b) Traceback (most recent call last): File "", line 1, in BytesWarning: str() on a bytes instance Christian

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Christian Heimes
and extensions, so clang should be doable with manageable amount of effort, too. After X86_64 I'd consider AArch64 (ARM64) and MSVC next. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to pyt

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Christian Heimes
On 21/10/2020 11.37, Steven D'Aprano wrote: > On Wed, Oct 21, 2020 at 09:06:58AM +0200, Christian Heimes wrote: >> On 21/10/2020 00.14, Steven D'Aprano wrote: >>> On Tue, Oct 20, 2020 at 06:04:37PM +0100, Paul Moore wrote: >>> >>>> What I don

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Christian Heimes
On 21/10/2020 09.35, Paul Moore wrote: > On Wed, 21 Oct 2020 at 08:14, Christian Heimes wrote: >> >> On 21/10/2020 00.14, Steven D'Aprano wrote: >>> On Tue, Oct 20, 2020 at 06:04:37PM +0100, Paul Moore wrote: >>> >>>> What I don't see is wh

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Christian Heimes
7;t think Mark is asking for you or I to fund the exercise. He's > asking for the PSF to fund it. No, he is not. Mark is asking the PSF to organize a fund raiser and keep half the money. Christian ___ Python-Dev mailing list -- python-dev

[Python-Dev] Re: [python-committers] Resignation from Stefan Krah

2020-10-09 Thread Christian Heimes
On 09/10/2020 15.48, Antoine Pitrou wrote: > On Fri, 9 Oct 2020 05:04:55 +0300 > Ivan Pozdeev via Python-Dev wrote: >> I don't see the point of requiring to "write an apology", especially *before >> a 12-month ban*. If they understand that their behavior is >> wrong, there's no need for a ban, a

[Python-Dev] Re: [python-committers] Resignation from Stefan Krah

2020-10-09 Thread Christian Heimes
n's behavior I feel that an apology is the first step to reconcile and rebuild trust. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/pyt

[Python-Dev] [OT] I'm unsubscribing from this tire fire (formerly known as python-dev)

2020-07-05 Thread Christian Heimes
er has abandoned python-dev last week. Others have stopped participating and posting on python-dev years ago. I will follow their example now. Goodbye Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...

[Python-Dev] Re: test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-17 Thread Christian Heimes
ion in _ssl.c and test_ssl.y that SSL 1.1 will > be threaded > but this may not be true (as in my case). Python requires a thread-safe OpenSSL build. I have pushed PR https://github.com/python/cpython/pull/19953 to 3.7, 3.8, and master. The hashlib and ssl module will now fail when OpenSSL is not

[Python-Dev] Re-requesting review of bpo-36226

2020-02-04 Thread Christian Schmidbauer
Hi, we had issued a PR for bpo-36226 almost a year ago, but the PR [1] review has been stalling for 4+ months. Would it be possible to get a new review on this PR? Thanks! [1] https://github.com/python/cpython/pull/12214 -- This email and any attachments are intended for the sole use of the n

[Python-Dev] Re: sqlite3 module and thread-safe SQLite library

2019-12-18 Thread Christian Heimes
qlite3 has two APIs to query thread safety and three different settings for threading: sqlite3_threadsafe() sqlite3_config() SQLITE_CONFIG_SINGLETHREAD SQLITE_CONFIG_MULTITHREAD SQLITE_CONFIG_SERIALIZED Only serialized is fully thread safe. I would

[Python-Dev] Re: Documenting sorted/min/max prerequisites

2019-12-14 Thread Christian Heimes
t; True > > The `<` operator try to use `__lt__`, but if it is not defined falls > back to `__gt__`. The operation "a < b" also fallback back to B.__gt__, when A.__lt__ returns NotImplemented for instances of B. Christian ___

[Python-Dev] Re: Python 3.8 error?

2019-12-12 Thread Christian Tismer
Pardon, I meant "there is no Python 3.8 version, yet". And this is wrong, the MacOS pip install shows PyQt5-5.13.2-5.13.2-cp35.cp36.cp37.cp38-abi3-macosx_10_6_intel.whl So probably we have some bad oversight, somewhere. Cheers -- Chris On 12.12.19 13:48, Christian Tismer w

[Python-Dev] Re: Python 3.8 error?

2019-12-12 Thread Christian Tismer
ited API a bit, because we have to dynamically figure that out in order to be version-independent. I am not so sure if that whole change was worth to break it? Cheers -- Chris -- Christian Tismer-Sperling:^) tis...@stackless.com Software Consulting : http://www.stackless.com/ S

[Python-Dev] Re: Python 3.8 error?

2019-12-12 Thread Christian Tismer
e same problem, since there is no 5.14 version yet ;-) > On 2019-12-11 23:48, Christian Tismer wrote: >> Hi all, >> >> Sorry for the noise, I was wrong, and I retract. >> I was somehow mislead and hunted a phantom. > > Does that mean that there was never a problem? &

[Python-Dev] Re: Python 3.8 error?

2019-12-11 Thread Christian Tismer
Hi all, Sorry for the noise, I was wrong, and I retract. I was somehow mislead and hunted a phantom. Best - Chris On 10.12.19 00:29, Christian Tismer wrote: > On 09.12.19 23:26, Nick Coghlan wrote: >> >> >> On Tue., 10 Dec. 2019, 5:17 am MRAB, > <mailto:pyt...@

[Python-Dev] Re: [python-committers] Re: [RELEASE] Python 3.8.1rc1 is now available for testing

2019-12-10 Thread Christian Tismer
Thanks in advance, > Victor > > Le mar. 10 déc. 2019 à 14:18, Christian Tismer a écrit > : >> >> Hi Łukasz, >> >> tonite I found a critical bug that affects all heaptype extension >> classes with a custom (not PyType_Type) type. >> >> the b

[Python-Dev] Re: [RELEASE] Python 3.8.1rc1 is now available for testing

2019-12-10 Thread Christian Tismer
On 10.12.19 14:28, Łukasz Langa wrote: > >> On 10 Dec 2019, at 14:16, Christian Tismer > <mailto:tis...@stackless.com>> wrote: >> >> Please let me know how you want to proceed. >> This is a critical error, producing negative refcounts. > > Is there

[Python-Dev] Re: [RELEASE] Python 3.8.1rc1 is now available for testing

2019-12-10 Thread Christian Tismer
Sorry, I sent the fixed version. These two incref's are missing! On 10.12.19 14:16, Christian Tismer wrote: > Hi Łukasz, > > tonite I found a critical bug that affects all heaptype extension > classes with a custom (not PyType_Type) type. > > the bug is i

[Python-Dev] Re: [RELEASE] Python 3.8.1rc1 is now available for testing

2019-12-10 Thread Christian Tismer
t; To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/IGJ6ZOAOT2WFY5ZIPRQNTHOSUMPUAO2H/ > Code of Conduct: http://

[Python-Dev] Re: Python 3.8 error?

2019-12-09 Thread Christian Tismer
On 09.12.19 23:26, Nick Coghlan wrote: > > > On Tue., 10 Dec. 2019, 5:17 am MRAB, <mailto:pyt...@mrabarnett.plus.com>> wrote: > > On 2019-12-09 18:22, Christian Tismer wrote: > > > > > > Hi Nick, > > > > afte

[Python-Dev] Python 3.8 error? (was: Python 3.8 problem with PySide)

2019-12-09 Thread Christian Tismer
On 08.12.19 09:49, Nick Coghlan wrote: > On Fri., 6 Dec. 2019, 3:31 am Christian Tismer, <mailto:tis...@stackless.com>> wrote: > > Hi guys, > > during the last few weeks I have been struggling quite much > in order to make PySide run with Python 3.8 at

[Python-Dev] Re: Python 3.8 problem with PySide

2019-12-08 Thread Christian Tismer
On 08.12.19 09:49, Nick Coghlan wrote: > On Fri., 6 Dec. 2019, 3:31 am Christian Tismer, <mailto:tis...@stackless.com>> wrote: > > Hi guys, > > during the last few weeks I have been struggling quite much > in order to make PySide run with Python 3.8 at

[Python-Dev] Python 3.8 problem with PySide

2019-12-05 Thread Christian Tismer
I would really like to understand the reason for this unexpected effect. Does this ring a bell? I have no clue what is wrong with PySide, if it is wrong at all. Thanks -- Chris -- Christian Tismer :^) tis...@stackless.com Software Consulting : http://www.stackless.com/ Ka

[Python-Dev] Re: Deprecating the "u" string literal prefix

2019-12-03 Thread Christian Heimes
or Ubuntu 18.04 LTS, 2024 for RHEL 8.0, and 2028 for SUSE SLES 15. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.

[Python-Dev] Re: Deprecating the "u" string literal prefix

2019-12-03 Thread Christian Heimes
little value. Let’s just > call it a wart until Python 4000. I'm 100% with Barry. We can certainly document the "u" string prefix as deprecated. I'm strongly against removing it from Python 3 or even raising a deprecation warning. L

[Python-Dev] Re: Restricted Entry Point from PEP-551/578

2019-11-21 Thread Christian Heimes
ay. It was my intent to provide an explanation why there is not much adoption of the new hooks yet. Please go ahead, put the paddle to the metal and play around with the new features! For example you could look into the new config system and figure out what is missing to build an spython interpreter

[Python-Dev] Re: Restricted Entry Point from PEP-551/578

2019-11-21 Thread Christian Heimes
target in the same security context except for debugging. If an attacker is able to compromise the interpreter, then the attacker most likely gains enough privileges to wipe the file. That's why Steve uses the Windows event log in his examples and I'm going for syslog and journald. The

[Python-Dev] Re: urllib request HTTPS memory leak?

2019-09-16 Thread Christian Heimes
://bugs.python.org/issue37702 and https://bugs.python.org/issue35941 for more details. As a workaround I suggest that you create a single SSLContext with ssl.create_default_context() and reuse the context in all HTTP queries. You can share the context across threads w/o locking

[Python-Dev] Re: typing: how to use names in result-tuples?

2019-08-12 Thread Christian Tismer
On 12.08.19 10:52, Ivan Levkivskyi wrote: > On Thu, 8 Aug 2019 at 17:17, Christian Tismer <mailto:tis...@stackless.com>> wrote: > > Yes, that's what I mean. > Probably retval or whatever people prefer would be adequate, > with a special rule if that na

[Python-Dev] Re: What is a public API?

2019-08-09 Thread Christian Tismer
ot! Especially the builtins idea is really great :-P Cheers - Chris p.s.: How about adding @private as well? There are cases where I would like to do the opposite: __all__ = dir() @private _some_private_func_1(...): ... ... @private _some_private_func_n(...): ... not-too-serio

[Python-Dev] Re: PEP 572 TargetScopeError

2019-08-09 Thread Christian Tismer
approach is to go with the > generic SyntaxError as Barry suggests. I'll update my PRs accordingly. Totally agree. It is fine to have SyntaxError now and go for one or more new subclasses for a whole bunch of errors at a later time, fixing more things in a more consistent way

[Python-Dev] Re: PEP 572 TargetScopeError

2019-08-09 Thread Christian Tismer
xError after the parser is finished, in a > subsequent pass. Is it really a syntax error if pgen doesn't object to > it? In current CPython, the answer is yes. ... OT: Thanks for the interesting read! I am excited which way it will continue. -- Christian Tismer :^)

[Python-Dev] Re: typing: how to use names in result-tuples?

2019-08-08 Thread Christian Tismer
hy not name it 'return_value' or 'result' or > 'retval' or something like that? > > On Thu, Aug 8, 2019 at 1:43 AM Christian Tismer <mailto:tis...@stackless.com>> wrote: > > Hi Guido, > > If a C++ function already has a return value,

[Python-Dev] Re: typing: how to use names in result-tuples?

2019-08-08 Thread Christian Tismer
On 08.08.19 17:20, Ronald Oussoren via Python-Dev wrote: > > >> On 8 Aug 2019, at 17:12, Christian Tismer > <mailto:tis...@stackless.com>> wrote: >> >> Hi Ronald, >> >> sure, the tuple is usually not very interesting; people look it up >>

[Python-Dev] Re: typing: how to use names in result-tuples?

2019-08-08 Thread Christian Tismer
t; someclass) -> (bool, int) > > I rarely, if ever, see code that actually stores the return tuple as-is. > The return tuple is just deconstructed immediately, like “x, y = > getpoint(mypoint)”.  > > Ronald > — > > Twitter: @ronaldoussoren > Blog: https://blog.ronaldou

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-08 Thread Christian Tismer
gt; https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/V2EDFDJGXRIDMKJU3FKIWC2NDLMUZA2Y/ > -- Christian Tismer :^) tis...@stackless.com Software Consulting :

[Python-Dev] Re: typing: how to use names in result-tuples?

2019-08-08 Thread Christian Tismer
e > checker about the number of anonymous fields. > > --Guido > > On Wed, Aug 7, 2019 at 1:51 AM Christian Tismer <mailto:tis...@stackless.com>> wrote: > > Hi all, > > Ok, I am about to implement generation of such structures > automatically usi

  1   2   3   4   5   6   7   8   9   10   >