public inbox for
 help / color / mirror / Atom feed
From: Tom Tromey <>
Cc:, Tom Tromey <>
Subject: [PATCH 1/2] libstdc++: Define _versioned_namespace in
Date: Tue,  3 Oct 2023 11:18:50 -0600	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

flake8 pointed out that is_specialization_of in looks at a
global that wasn't added to the file.  This patch correct the


	* python/libstdcxx/v6/ (_versioned_namespace):
 libstdc++-v3/python/libstdcxx/v6/ | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libstdc++-v3/python/libstdcxx/v6/ b/libstdc++-v3/python/libstdcxx/v6/
index 844c8a2105a..8ccf57c4d6b 100644
--- a/libstdc++-v3/python/libstdcxx/v6/
+++ b/libstdc++-v3/python/libstdcxx/v6/
@@ -28,6 +28,8 @@ def get_bool_type():
 def get_std_size_type():
     return gdb.lookup_type('std::size_t')
+_versioned_namespace = '__8::'
 def is_specialization_of(x, template_name):
     Test whether a type is a specialization of the named class template.

  reply	other threads:[~2023-10-03 17:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-03 17:18 [PATCH 0/2] A couple minor _versioned_namespace patches Tom Tromey
2023-10-03 17:18 ` Tom Tromey [this message]
2023-10-03 22:57   ` [PATCH 1/2] libstdc++: Define _versioned_namespace in Jonathan Wakely
2023-10-03 17:18 ` [PATCH 2/2] libstdc++: _versioned_namespace is always non-None Tom Tromey
2023-10-03 22:55   ` Jonathan Wakely
2023-10-03 22:57     ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).