]> git.ipfire.org Git - thirdparty/gcc.git/commit
Adjust index number of tuple pretty printer
authorUlrich Drepper <drepper@gmail.com>
Thu, 4 Aug 2022 11:18:05 +0000 (13:18 +0200)
committerUlrich Drepper <drepper@gmail.com>
Thu, 4 Aug 2022 11:18:05 +0000 (13:18 +0200)
commit075683767abe15b936ad41792da6ee71e9eda449
tree97cd157a931acc3dbe9e06707fcccb2df17d8a94
parent2f17f489de47d46626ed85804c3b810547ef550e
Adjust index number of tuple pretty printer

The tuple pretty printer uses 1-based indeces which is quite confusing
considering the access to the same values with the std::get functions
uses 0-based indeces.  This patch changes the pretty printer since
this is not a guaranteed API.

libstdc++-v3/ChangeLog:

* python/libstdcxx/v6/printers.py (class StdTuplePrinter): Use
zero-based indeces just like std:get takes.
libstdc++-v3/python/libstdcxx/v6/printers.py