From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id AC0B71F4CC for ; Wed, 18 Dec 2024 13:52:59 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=T1i0K9g+; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=ttSBosyO; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1734529946; bh=wihD56EgCptogvQGkNnCt+sXgxRyaq8pgOTbDvsV+Oc=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=T1i0K9g+N0iU88LnRQCuyPTm2ZJalwYtnuTMmMKYmamWjKHuyaASHzDdFxLEoWZ3i hBAVkj5hIU0rooUjc4U2XfFS+0+S/AKFfOWC41a40FAoD5QhZhP8gs6p6nsl7NgeuT Y/+fFAc4sGJ3asrXek5n/0plE8DugSO+wKPkqHe4= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id EE95145FA4 for ; Wed, 18 Dec 2024 13:52:26 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=ttSBosyO; dkim-atps=neutral Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 34C2D45F50 for ; Wed, 18 Dec 2024 13:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=UQEJ3M86kqckFivflfa6de7MEOVLgZbMu9/xvdITf+0=; b=ttSBosyO6Z2yaInpKQx2VKYkYcEbE5bpHvGWBHUCEii8aZO9cz3MPeLzAQo/LDVo+6av CxodCvWFPMvBxAc5QC9CFsmwxt5if4sYNqtQfkUclbe5ynpeWmyZpfPyqITspNFKSuukFj RvdwI2RvIzUy5wKkThTL5ABoqWSAfTwbdIwJ2lG4Mv3ffaiklhku/aGLE8mi3qf3EtCvbX XSyXLbIgyHm2D8sikRqyaKNXUDAmIoX3kbyzjJL7JFb3gMA5eB4Cs1ahWZwrKLzneOW3uL +s0w8Azw8s67f/SmtxO24sshaI6nhYaTe4L2e03PAapngSHB7PFRXuIveYLwYGvg== Received: by recvd-69cbc48b94-q9zxj with SMTP id recvd-69cbc48b94-q9zxj-1-6762D395-5 2024-12-18 13:52:21.280841991 +0000 UTC m=+2910585.490072782 Received: from herokuapp.com (unknown) by geopod-ismtpd-35 (SG) with ESMTP id KxAW0yDhTA21FfItQ_-7Tw for ; Wed, 18 Dec 2024 13:52:21.239 +0000 (UTC) Date: Wed, 18 Dec 2024 13:52:21 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20962 X-Redmine-Issue-Author: aharan X-Redmine-Issue-Priority: Normal X-Redmine-Sender: tompng X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 96975 X-SG-EID: =?us-ascii?Q?u001=2E6lsr3vWETlnb7CBjJOIVTeDyJi+6PdirmC=2FsKYr6MUleSZrjBxRsGPCJC?= =?us-ascii?Q?i9WOL5Su0kL3wxEGMWtXRNWLbnUY3F6jcf9Xi5o?= =?us-ascii?Q?rvioAGXtTojKYKRFBpNdLOikVQ2lYDFHm6mYo0n?= =?us-ascii?Q?jBkXwbTzqtDyYCJv9AZY12QW5Q8=2FeawK52oo3G7?= =?us-ascii?Q?dm7IdMvTyJ6ANqqXq+FDQol=2FMKsfcSRmFZruAY1?= =?us-ascii?Q?Volcss6T12O9jGjVrFkwawtc2tGjlEkAvGVigRu?= =?us-ascii?Q?imoucwmlMFxij6m7gG4VsZGNLA=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: 2PAHHH4XGYC53VV7EYQ6GS4AEAB6FW74 X-Message-ID-Hash: 2PAHHH4XGYC53VV7EYQ6GS4AEAB6FW74 X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:120298] [Ruby master Bug#20962] Change in behaviour in 3.4.0rc1 of `Hash#inspect` List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "tompng (tomoya ishida) via ruby-core" Cc: "tompng (tomoya ishida)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20962 has been updated by tompng (tomoya ishida). pull request https://github.com/ruby/ruby/pull/12384 ---------------------------------------- Bug #20962: Change in behaviour in 3.4.0rc1 of `Hash#inspect` https://bugs.ruby-lang.org/issues/20962#change-111064 * Author: aharan (Aidan Haran) * Status: Open * ruby -v: ruby 3.4.0rc1 (2024-12-12 master 29caae9991) +PRISM [aarch64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- The output from `Hash#inspect` in v3.4.0rc1 does not match the documentation and is different from v3.3.6.
# ruby -v
ruby 3.4.0rc1 (2024-12-12 master 29caae9991) +PRISM [aarch64-linux]
# irb
irb(main):001> h = {foo: 0, bar: 1, baz: 2}
=> {foo: 0, bar: 1, baz: 2}
irb(main):002> h.inspect
=> "{foo: 0, bar: 1, baz: 2}"
irb(main):003>
The documentation says that the output should be @"{:foo=>0, :bar=>1, :baz=>2}"@ https://github.com/ruby/ruby/blob/707c6420b1ea599c223a17781185c0b6fb0f3518/hash.c#L3492 In Ruby v3.3.6 the output is:
# ruby -v
ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [aarch64-linux]
# irb
irb(main):001> h = {foo: 0, bar: 1, baz: 2}
=> {:foo=>0, :bar=>1, :baz=>2}
irb(main):002> h.inspect
=> "{:foo=>0, :bar=>1, :baz=>2}"
-- 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/