[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Łukasz Langa

Change by Łukasz Langa :


--
resolution:  -> wont fix
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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread STINNER Victor


STINNER Victor  added the comment:

- _PyUnicode_DecodeUnicodeEscape@Base

Removed by:

commit 7c722e32bf582108680f49983cf01eaed710ddb9
Author: Serhiy Storchaka 
Date:   Thu Oct 14 20:03:29 2021 +0300

[3.9] bpo-45461: Fix IncrementalDecoder and StreamReader in the 
"unicode-escape" codec (GH-28939) (GH-28945)

They support now splitting escape sequences between input chunks.

Add the third parameter "final" in codecs.unicode_escape_decode().
It is True by default to match the former behavior.
(cherry picked from commit c96d1546b11b4c282a7e21737cb1f5d16349656d)

Co-authored-by: Serhiy Storchaka 

--

___
Python tracker 

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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread STINNER Victor


STINNER Victor  added the comment:

I suggest to close this issue. We are free to remove private functions in minor 
releases (3.9.x) without any warning. Private functions are excluded from the 
backward compatibility warranty.

For example: "Names prefixed by an underscore, such as _Py_InternalState, are 
private API that can change without notice even in patch releases."
https://docs.python.org/dev/c-api/stable.html#stable

In C, it's easy to call the decode() method of a string object and pass the 
expected encoding and error handler.

--
nosy: +vstinner

___
Python tracker 

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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Miro Hrončok

Change by Miro Hrončok :


--
versions: +Python 3.10

___
Python tracker 

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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Miro Hrončok

Change by Miro Hrončok :


--
nosy: +hroncok

___
Python tracker 

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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Matthias Klose


Matthias Klose  added the comment:

the two users of typed-ast (at least in Debian) are black and mypy.  Apparently 
black stopped using typed-ast recently.

--

___
Python tracker 

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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Christian Heimes


Christian Heimes  added the comment:

Matthias mentions the upstream tickets

  https://github.com/python/typed_ast/issues/169
  https://github.com/python/typed_ast/issues/170

on the BDO. The issue affects typed-ast and indirectly older versions of black. 
Upstream is considering to EOL typed-ast package.

--

___
Python tracker 

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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Yeah, the ABI guarantees are for the public C-API (both the restricted/limited 
and the general one) but not for private symbols.

--

___
Python tracker 

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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Christian Heimes


Christian Heimes  added the comment:

Yes, they are private symbols. 3rd parties should not use them.

The symbol _PyUnicode_DecodeUnicodeEscape was replace in GH-28953: "bpo-45467: 
Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec".

--
nosy: +christian.heimes

___
Python tracker 

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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Aren't these private symbols?

--
nosy: +pablogsal

___
Python tracker 

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



[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Matthias Klose


New submission from Matthias Klose :

[reported in Debian as https://bugs.debian.org/998854]

3.9.8, compared to 3.9.7 introduces a regression, making at least one third 
party extension fail at runtime. The symbol changes in 3.9.8 are:

- _PyUnicode_DecodeUnicodeEscape@Base
+ _PyUnicode_DecodeRawUnicodeEscapeStateful@Base
+ _PyUnicode_DecodeUnicodeEscapeInternal@Base
+ _PyUnicode_DecodeUnicodeEscapeStateful@Base

Affected at least is the typed-ast extension.  Yes, you can rebuild the 
extension with 3.9.8, but then it doesn't work with earlier 3.9 versions.  Just 
dropping the symbol on a stable branch is suboptimal.

--
components: Interpreter Core
keywords: 3.9regression
messages: 406085
nosy: doko, lukasz.langa
priority: release blocker
severity: normal
status: open
title: libpython.so 3.9.8 drops symbol used by third party extension module(s)
type: crash
versions: Python 3.9

___
Python tracker 

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