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

2022-01-24 Thread Miro Hrončok

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 that breaks some other packages with GCC 12.


The GCC maintainers told us it is a reserved symbol,
see https://bugzilla.redhat.com/2043555 for details.

It seems that using AC_C_CHAR_UNSIGNED is not recommended and also not 
required, but I must confess that I am pretty much horrified by autotools and I 
don't really know if we can get rid of AC_C_CHAR_UNSIGNED or not. I can test 
this in Fedora and I am quite sure it'll work, but I don't know the impact on 
all the other environments where CPython can be compiled.


Is there anybody on this list who knows a reason we need to keep 
AC_C_CHAR_UNSIGNED around in 2022? Or is it safe to get rid of it?


Thanks,
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok

___
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/archives/list/python-dev@python.org/message/MPHZ3TGSHMSF7C4P7JEP2ZCYLRA3ERC5/
Code of Conduct: http://python.org/psf/codeofconduct/


[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 that breaks some other packages with GCC 12.


The GCC maintainers told us it is a reserved symbol,
see https://bugzilla.redhat.com/2043555 for details.

It seems that using AC_C_CHAR_UNSIGNED is not recommended and also not 
required, but I must confess that I am pretty much horrified by 
autotools and I don't really know if we can get rid of 
AC_C_CHAR_UNSIGNED or not. I can test this in Fedora and I am quite sure 
it'll work, but I don't know the impact on all the other environments 
where CPython can be compiled.


Is there anybody on this list who knows a reason we need to keep 
AC_C_CHAR_UNSIGNED around in 2022? Or is it safe to get rid of it?


Let's find out!

I have created draft PR https://github.com/python/cpython/pull/30851 and 
scheduled the PR on our buildbot fleet.

___
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/archives/list/python-dev@python.org/message/VJMJBKCOQ5AX5I4C7M4MQECRSE5HIXMJ/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Expectations of typing (was: The current state of typing PEPs)

2022-01-24 Thread Steven Troxler
> It would be nice if someone did some work and collected a list of tutorials 
> about type annotations that exist (especially the ones that are  discoverable 
> with a simple Bing query) and ranked them by quality.

I went with Google rather than Bing but here's what I found:
https://gist.github.com/stroxler/ade7977ed07e27448222a468796bc467

I did check a few Bing queries, the results are mostly a bit less helpful, I 
get more discussions of the `type` function and fewer about type annotations. 
But the Real Python tutorial still shows up on the first page most of the time.
___
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/archives/list/python-dev@python.org/message/AHJCF57LISD7G7DHLSQLKDKGN6FFHT3M/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] SC Acceptance: PEP 673 -- Self Type

2022-01-24 Thread Petr Viktorin

Hello Pradeep, James and Jelle,

The Steering Council discussed PEP 673 -- Self Type, and unanimously 
decided to accept it. Congratulations!


Please change the PEP status to Accepted, and merge the change to Python 
3.11, at your convenience.


Happy typing!
- Petr (on behalf of the Python Steering Council)
___
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/archives/list/python-dev@python.org/message/J7BWL5KWOPQQK5KFWKENVLXW6UGSPTGI/
Code of Conduct: http://python.org/psf/codeofconduct/