Re: [committed] libstdc++: Fix Python deprecation warning in printers.py

2024-10-16 Thread Tom Tromey
> "Jonathan" == Jonathan Wakely writes: Jonathan> also unable to build GDB with Python 3? ... maybe unlikely) but nobody Jonathan> should be stuck on 3.0 and unable to replace that with 3.12 or so. gdb has one user (maybe more, but I doubt it) on Windows XP where the latest available version

Re: [committed] libstdc++: Fix Python deprecation warning in printers.py

2024-10-16 Thread Jonathan Wakely
On Wed, 16 Oct 2024 at 16:58, Tom Tromey wrote: > > > "Jonathan" == Jonathan Wakely writes: > > Jonathan> Using a keyword argument for count only became possible with Python > 3.1 > Jonathan> so introduce a new function to do the substitution. > > gdb docs are inconsistent on this, but at le

Re: [committed] libstdc++: Fix Python deprecation warning in printers.py

2024-10-16 Thread Tom Tromey
> "Jonathan" == Jonathan Wakely writes: Jonathan> Using a keyword argument for count only became possible with Python 3.1 Jonathan> so introduce a new function to do the substitution. gdb docs are inconsistent on this, but at least one spot says that the minimum supported Python version is

[committed] libstdc++: Fix Python deprecation warning in printers.py

2024-10-16 Thread Jonathan Wakely
Tested x86_64-linux with gdb-15.1 and Python 3.12. Pushed to trunk, backports to follow. -- >8 -- python/libstdcxx/v6/printers.py:1355: DeprecationWarning: 'count' is passed as positional argument The Python docs say: Deprecated since version 3.13: Passing count and flags as positional ar