From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from [192.168.1.2] (unknown [101.128.125.123]) by gnuweeb.org (Postfix) with ESMTPSA id 78107804D1; Fri, 21 Oct 2022 15:10:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666365050; bh=dbgANV7L89KnP0VffH1NnvBYMcnufmfSDndg202sxiM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=n43DMFAGh0GkBBe+384j63B3rwI1z4BDPZDzHoUmT+cZxeKC/UlXApKnmWjCEo9t6 LzsuYqp4QOojZsdB/ZC2TGozSJdzePlfs91kz1ykXbSzqwdyL0FwVfOv84fdyqaLUP yGHhTRkcLvSyKmNWThQ2qBJKLa34wj8v0qoGIYlPo7BLtgW/GhrwziHOJwEE7epNEa YOnDPybP1XJIPCj8M2PLYQ/7+ocIDOwVGPEr0Bc/fpwxIquU98UoXW0wMPvK+5H49V Aml5OIZb8zxVTWsxKjZRfJAb8Z9AeS+Qpq/pIJ9XnlmHaff5GvLl2JVAQlYEqqPjTS zRnL/Vx7aUU4g== Message-ID: <5659924c-28ee-3ee7-e0a9-69e32683a556@gnuweeb.org> Date: Fri, 21 Oct 2022 22:10:45 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v3 8/9] enum: Add Platform enumeration Content-Language: en-US To: Ammar Faizi Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List References: <20221021134520.701-1-kiizuha@gnuweeb.org> <20221021134520.701-9-kiizuha@gnuweeb.org> <6fb1d238-de6a-325c-8d17-6801ae24c717@gnuweeb.org> <982b723b-5c22-cfe2-6fcf-d0584b8c142d@gnuweeb.org> <90fb2819-443d-2665-e42b-b069e7dbbaff@gnuweeb.org> <64f50068-72bc-6f53-17f5-54826bd7947f@gnuweeb.org> <77f5a9df-0268-0e54-262c-ab53cc9bb43d@gnuweeb.org> From: Muhammad Rizki In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 21/10/2022 22.07, Ammar Faizi wrote: > On 10/21/22 9:54 PM, Muhammad Rizki wrote: >> If use it like that it will return `> 0x7fc59766c8d0>` and if use like `DISCORD.value` it will return `> object at 0x7fc5c8dc5d30>` > > Maybe it's a language feature, but I'm not a Python guy, I really > don't know. How does DISCORD.value save the string information about > "discord"? > > Where did you put that information? > > Does Python reflects a variable name to something? > It's from the enum library itself. You can see at https://docs.python.org/3/library/enum.html#using-a-descriptive-string