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 6870F1F4CC for ; Wed, 25 Dec 2024 15:18:01 +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=2mucjCno; 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=QFnS1bFc; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1735139848; bh=z/cZZfD68jqMQbjLfUrt01fxy0FBRc179MeDqlQjdQI=; 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=2mucjCnoaWn9T9Lk54wO0tQW9Xj7nG8eoU44ztm4rDn7jaJCWZbQvRB/z7vsbPwP2 4sH6syeYL7DlfdeXW75MbmTEgODcl1yHaktsAertlrB8eiwodxjD3sdZrwrsv9AEBM xf4L6ODHMOYrwGYXUU5MKpogakEjEfDSd8uoUBRs= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 8805645F64 for ; Wed, 25 Dec 2024 15:17:28 +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=QFnS1bFc; dkim-atps=neutral Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id A79D145F5F for ; Wed, 25 Dec 2024 15:17:25 +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=530j7garL695KSNP2Lzq8L/8C8MRxGayigKAQnPz7fw=; b=QFnS1bFcFDsi9KEKDSP9tJz6GxYI7q0GcSaH9bc4NpfSxJF9TVLWdbbNSH5DBixBgmlS tpD4DvdMhbGl0sM41woBH0rGlbZ4Sg08Rg0L7NWpT01VDVqjOIEbiwMroX5O0jbGeF5m8z 7T6Y9SvI0nUpeIQMouWdoMwFb+CmNKp3nG1Pt97kFh8OtyvTSk5tYngfis/RbgTiTNrnCO FdutgdFiyNiqkvytZDUGRcMK0rPOkBbeksKjnMYxIQBnUF5XcUMC97zGgud2s/dbv65GUG 9EnYMXxo5YpYkhxWA6VcieFeILicRUWDDI0kGWk0in+4KORYjcNduBJsHKyNXdxw== Received: by recvd-84b546689d-7lhwp with SMTP id recvd-84b546689d-7lhwp-1-676C2202-16 2024-12-25 15:17:22.970255807 +0000 UTC m=+3520475.377240223 Received: from herokuapp.com (unknown) by geopod-ismtpd-32 (SG) with ESMTP id p6Gq3B9PTvyabCHOiB_L_Q for ; Wed, 25 Dec 2024 15:17:22.915 +0000 (UTC) Date: Wed, 25 Dec 2024 15:17:24 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 20982 X-Redmine-Issue-Author: herwin X-Redmine-Issue-Priority: Normal X-Redmine-Sender: herwin 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: 97085 X-SG-EID: =?us-ascii?Q?u001=2EVfgKfKBE7DfCpORH5x4jjyomn9TjoLiMTgS+xkApujS6RjwIvq=2FurYEFd?= =?us-ascii?Q?hwE5pO7GsqgtYq=2FOGdT7K3Hjy11=2FI2aWuP+IRvt?= =?us-ascii?Q?VvpVlz66Wbu4n73YbyU9HNKIJJk=2F5qpdUwjM63g?= =?us-ascii?Q?UKqj3EEcBA6GE5e9bzgsOPEkRPnufMGscLCL6QB?= =?us-ascii?Q?h63ZDeo=2FcmSRM=2FcWd4lbwo7pZJYx3CJ0RMhMY1I?= =?us-ascii?Q?7DWNL7LxK4EUNtilH636zO4ZECHSyEZer25w9dG?= =?us-ascii?Q?xkxa?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: WE6JPD62MYRPA67CGIRGXG6O2ILKEXST X-Message-ID-Hash: WE6JPD62MYRPA67CGIRGXG6O2ILKEXST 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:120409] [Ruby master Feature#20982] Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4 List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "herwin (Herwin W) via ruby-core" Cc: "herwin (Herwin W)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20982 has been reported by herwin (Herwin W). ---------------------------------------- Feature #20982: Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4 https://bugs.ruby-lang.org/issues/20982 * Author: herwin (Herwin W) * Status: Open ---------------------------------------- Ruby 3.4 changed the stringified output of Hash to add whitespace to the hashrockets ``` ruby -e 'p({"a"=>"b"})' {"a" => "b"} ``` The output of `ENV.inspect` is very similar to `Hash#inspect`, but does not include the whitespace ``` ruby -e 'p ENV' {"SHELL"=>"/bin/bash", [...] } ``` Adding the extra whitespace around the hashrockets would improve the readability, and make things more consistent. -- 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/