From: "Ethan (Ethan -) via ruby-core" <ruby-core@ml.ruby-lang.org>
To: ruby-core@ml.ruby-lang.org
Cc: "Ethan (Ethan -)" <noreply@ruby-lang.org>
Subject: [ruby-core:122307] [Ruby Bug#21377] core Set#inspect does not use inherited class name
Date: Tue, 27 May 2025 06:51:26 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-113449.20250527065126.1123@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-21377.20250527064909.1123@ruby-lang.org>
Issue #21377 has been updated by Ethan (Ethan -).
`#pretty_print` also now just uses Set instead of self.class.name.
----------------------------------------
Bug #21377: core Set#inspect does not use inherited class name
https://bugs.ruby-lang.org/issues/21377#change-113449
* Author: Ethan (Ethan -)
* Status: Open
* ruby -v: ruby 3.5.0dev (2025-05-26T17:42:35Z master 909a0daab6) +PRISM [x86_64-darwin22]
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
Following #21216, Set#inspect stopped using self.class.name and just uses 'Set' now.
```ruby
class MySet < Set; end
MySet.new.inspect
# before: #<MySet: {}>
# now: #<Set: {}>
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
next prev parent reply other threads:[~2025-05-27 6:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-27 6:49 [ruby-core:122306] " Ethan (Ethan -) via ruby-core
2025-05-27 6:51 ` Ethan (Ethan -) via ruby-core [this message]
2025-05-27 12:41 ` [ruby-core:122309] " zzak (zzak _) via ruby-core
2025-05-27 15:42 ` [ruby-core:122313] " jeremyevans0 (Jeremy Evans) via ruby-core
2025-05-28 3:49 ` [ruby-core:122317] " Ethan (Ethan -) via ruby-core
2025-05-28 7:38 ` [ruby-core:122325] " Eregon (Benoit Daloze) via ruby-core
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-113449.20250527065126.1123@ruby-lang.org \
--to=ruby-core@ml.ruby-lang.org \
--cc=noreply@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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 NNTP newsgroup(s).