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)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 4AB551F4CC for ; Wed, 18 Dec 2024 10:15:55 +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=evC09BfX; 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=NORk5ZOf; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1734516922; bh=YLdN+EyI1CLgLjx49Hin58l0nmqaHP0qy1Cdb7c33Ug=; 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=evC09BfXWEaE/yGFdrK3t1V6WQhBCWSj5f1AXq6wRPy3+Gu5dJBqF/zz3hVcS8rLm iTcCnBMl0CbvQScpuuwCNROWIEWaMutfzo1/hYKN1UIfvnob84XLolCQUo7endtruM 6XYNru1gsSGUe/+XgjJqlRzLQfpOx52uUogERXOo= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 1C22945F96 for ; Wed, 18 Dec 2024 10:15:22 +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=NORk5ZOf; dkim-atps=neutral Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) by nue.mailmanlists.eu (Postfix) with ESMTPS id E909A44C4D for ; Wed, 18 Dec 2024 10:15:17 +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=r5Lv20Brayy188fOgOSHUAvp/2XlrGRV2KyINNYsFDI=; b=NORk5ZOfwiVv+Zm/bITXzymc2rZltJQ3ogaS7bM/WcUnQBUVZBC82Pp2oJs3Hr2AGQRn //YYbbun1SCFoJ0jA5orZvftsnY5lReofsZhxG4lhHu4kTygSmHhJTajlH4yr0IIVg1zRG oGc/rFndlqwuz/153pNwg5V5AYJBgr/hKywy40G7/RPLYK+veJWVHvWR+VRujjf8ztpvwe IF20mmP4zGjl5gO/Ls73ykM6MWJtu4AGDdGXzHaoZ65nBiSl5bJ9wpN7DCkNc8GT+UgaNJ GfgPCZmYrUWvclRY2GBI32bVZTAkSvPhq/N2dFsYmpu+MJM1lzJJmCyXWS7nSo1g== Received: by recvd-84b546689d-ls6gx with SMTP id recvd-84b546689d-ls6gx-1-6762A0B4-23 2024-12-18 10:15:16.413325173 +0000 UTC m=+2897442.620622503 Received: from herokuapp.com (unknown) by geopod-ismtpd-15 (SG) with ESMTP id CEhUcJDjTVWDjA5MF8ofkQ for ; Wed, 18 Dec 2024 10:15:16.333 +0000 (UTC) Date: Wed, 18 Dec 2024 10:15:16 +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: aharan 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: 96974 X-SG-EID: =?us-ascii?Q?u001=2EtvMUzjb8nzge=2Fc7t0BwGa8lCGwtpZgh4AMIMrs1k5KMhymHY2w4ZJPr7V?= =?us-ascii?Q?jXD0LtJhUU2U+c0djFpFjvW4SrkccNyia9mrHiM?= =?us-ascii?Q?pzDkV5t4I7itnNc8ongH9nxra8I8n+EI4LMn3QJ?= =?us-ascii?Q?IgjhnjSaNcwaVLUX4UANFkjHhIISKH05hs3aDpZ?= =?us-ascii?Q?eXmF5BkjzoDFEJO1qUNahLob=2Fh26DAGLTct9fHy?= =?us-ascii?Q?S2W7U+TPwtbkZ446ukbPy4CJwxQCGREQ5G=2F4T=2FC?= =?us-ascii?Q?JieJ8LhPninBISu412safpXrDA=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: EKV6YMC5UBB4UIKYXKBHZGXK3LF7I5PL X-Message-ID-Hash: EKV6YMC5UBB4UIKYXKBHZGXK3LF7I5PL 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:120297] [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: "aharan (Aidan Haran) via ruby-core" Cc: "aharan (Aidan Haran)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20962 has been reported by aharan (Aidan Haran). ---------------------------------------- Bug #20962: Change in behaviour in 3.4.0rc1 of `Hash#inspect` https://bugs.ruby-lang.org/issues/20962 * 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/