From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 07765457FF; Tue, 20 Aug 2024 11:56:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB66840A81; Tue, 20 Aug 2024 11:56:57 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by mails.dpdk.org (Postfix) with ESMTP id 01D61400D6 for ; Tue, 20 Aug 2024 11:56:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724147818; x=1755683818; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=iYKMlVsM2U+AsgdPBcFOy9x3JoTpsVyJEizIHaw8N2A=; b=LdXUjhCDmUTI3wzUd/7cqaXGXnuIpUpkhs7mzEeK2WYUQVRj2GeBOeRW cuxZAUHKgvYRIyT/ZROAnpSSnY6gzffJpIWRsf4W3yQhbSowl0mSN+kb2 0ehjJfwZ/hw4WUzUVu7jr+54B4CbFwaVVw9I1gDatAuBPvfZPqB4544e0 xmvonWiYzRHJ0i+psBtieTMZbXPoU3/yizakip8vs3dXQ6xcKxaAXaXN0 7X6/CrpBT7Sx2hH5tF6sZEltUgjkxYZJOdcRyS9EnLhL9RdfuxNLqVSyd sQMd+HwkVtrqNn4SA+Uf4b2ic8Uqfq+z1aD84zkqZg2aGvHbxqmNGIcH0 Q==; X-CSE-ConnectionGUID: UXJfiaZYReWbs54Ux+dcjw== X-CSE-MsgGUID: 0LFBviUCQ2Gq3CE4iZ5mdg== X-IronPort-AV: E=McAfee;i="6700,10204,11169"; a="26233742" X-IronPort-AV: E=Sophos;i="6.10,161,1719903600"; d="scan'208";a="26233742" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2024 02:56:57 -0700 X-CSE-ConnectionGUID: mRP7HYyKTY2ArRUlhmVWpw== X-CSE-MsgGUID: mWnFg5iHSwa3bIeiXEJ2ww== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,161,1719903600"; d="scan'208";a="64858920" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 20 Aug 2024 02:56:56 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 20 Aug 2024 02:56:55 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 20 Aug 2024 02:56:54 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Tue, 20 Aug 2024 02:56:54 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.170) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 20 Aug 2024 02:56:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=o8otyM2fkat2dQ4BEx0fDCut5ljYt5JO/uiHoF7LJwVC7PEg7pB83j8TpxKXG85OnpbcNABWWzLmar3oXrF7imoh1NAMWe9yoi1wJj+0o3Ecr5hN2PFoXHp5SSrfDGB6+D2VDRGmvezYyiJyFhl3RBbKNu5YhtiTp/yWzv5KgWYKc7W+vfnu5HjBnGN6e+BwsfgtAbMGFgyKxwRkrvXTiSU1d+paD+oy480joCOsFoyFH8Fydmk9yc5sedwDlKlwKbflcjembvTYU91P5MF6+LepCBs9TizQdwT/koAbKDWpZwlCsU/bUP8Kptw3HIoHDQRM2CMnj6bQlatPrEa3jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=feCrd7vlniqf656su1ikJYLx/OgEmYGVxVbZ6G0PY28=; b=mnzy1YlpRJKPb3i9xQF8Rn8ITqCDu7trhDDNH39XRtLBwrqgilbDQcLXeT+XgwZNs8tfhjgPxi9yPHWOCM0CMA5zJNhOgQVp9ceHgCzyWx468UdiXWJpUhf7RA5vKjL3Vwfws1PJYuGVRn8we9wslTgHFQaMw8R1qzG95rbTaRb7xQ/QUx+2dv6+Q+VdcKwzTVFYQSK/ueuoXgHd+8Xg1Yha1bFqqXXy2DRUQOOhf1/gFC/DM1wrsVlSbNb1TUmncr1v5jm9Ilmmvvx4mr9IIIsc9OGDYWJ7rK8F6+GAAXs5qxh3mZTgFakdg9GDnAhOX65Su+gHGWCemmFsBAINPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) by PH8PR11MB6778.namprd11.prod.outlook.com (2603:10b6:510:1c9::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.19; Tue, 20 Aug 2024 09:56:52 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a%7]) with mapi id 15.20.7897.014; Tue, 20 Aug 2024 09:56:52 +0000 Message-ID: <911fea4b-9c6e-415b-9d47-5bddaf563915@intel.com> Date: Tue, 20 Aug 2024 11:56:46 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/4] usertools/cpu_layout: update coding style To: Robin Jarry , CC: References: <4844fc3a4604ffef789702752ff04699ab5118db.1723810613.git.anatoly.burakov@intel.com> <770a909a-025e-49e5-909f-455e47953d0f@intel.com> Content-Language: en-US From: "Burakov, Anatoly" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DBBPR09CA0031.eurprd09.prod.outlook.com (2603:10a6:10:d4::19) To PH7PR11MB6498.namprd11.prod.outlook.com (2603:10b6:510:1f1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|PH8PR11MB6778:EE_ X-MS-Office365-Filtering-Correlation-Id: f2a4f078-3109-40d9-9ad8-08dcc0fe6a46 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?NVh3TUkzY1lVL09xNnB4aTR1T2JrRmdsUUhsajJpdDNZZWlUSzE5MGU4VnJq?= =?utf-8?B?VG50SEsxdzRtMDl5Um0wWENlSG1kWDE0bW1WUlhPMnRDeFNsODMxYWdBZCtX?= =?utf-8?B?RWVhRWlqbm1pWWladnpqOXlXZURNMm1FaENVQm9HRTYwSUJLN0VBQzZzQjFP?= =?utf-8?B?RDRYdUFtN3owWXd6Ql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yd1lBakRJa0dHaUhxLzZQVzdyNnI4MVM4c0JDNXhqYkVlUVhEamV5?= =?utf-8?B?ZzdXSzJtWXBidyt5MjB2TFpmZ0dtMDhGSTVuV0R4dlhNcnorZk5GVnUwMjMz?= =?utf-8?B?WWkrcGxiVjRvdzVTWXRHUXhLdXpETUppaGNXR0FHbGVyamJVbHcxalF2UUNH?= =?utf-8?B?ZnlMOEJDWFRaT1cxenRLMFRYS3ljYTJQK2o0RklxT0JTS21hM1VvdEM0b3A2?= =?utf-8?B?MlBrUnVGeUF1Um9YdVZMS052ZTNaSHo1Lzd3bzd3SkFSemMzcG5hL1V3YzNX?= =?utf-8?B?ZjZ5WkRVQlVJTEQ5WTRPNGhoNXZkRFc3Q1FVLzdxSTdGOVQxT2FjS0IxRllM?= =?utf-8?B?c3VUMUZBbXM5YWpUeWdTQVAzVU9EdVp4aEVEbkVUUVFxZFBnRlRxR0l5VzdU?= =?utf-8?B?TDNPcU1qeTg2bTYrOTRHckFQTXY1am9qN0hqa2dYbzByZ2k4V0FRb2dmc0VV?= =?utf-8?B?MUV1WWlleFFETGNzQ2U5YklhK0hrZ2EraVZ5akVVckUxRDJNVXVyUVZCakxa?= =?utf-8?B?SHVuVDN1VzhpS0JpdG8rMHhic3dEaW1BOVJJSGtTVjdHMEJMZ1hJQTFwTEJ6?= =?utf-8?B?UERPR0xrMTR2eldzRUVsZ1MyS1dWOUwrRElBcDNERDZJM2Y5Z0JDMlZLUkd6?= =?utf-8?B?YmJJUjU0VnNzQkM1MmNGc2dmL2dNK2o3dUpVZjVueGtyVXJ3VUY4YWtjdGJG?= =?utf-8?B?L0pXTktqdEpMUzVGMU1oQT09?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB6502.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-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ovRlVMdzV1UWV3MlJ1S1VVRGU5SWQ1YnJhRzdXLzI4cWZwNkZ3MXpm?= =?utf-8?B?OWRXWE1YaHI0Sm5VY2x6U0ZJb1hHRXJzS2F4UzVnR0VleE9MdFdhbWx3VVlF?= =?utf-8?B?Vk9QMVBHUVJMdGtJak45cU56aGc2TnE4SERLZDJrYXVBYXA2c1VzcXdJMWVo?= =?utf-8?B?dVVQc05lcWhXbmkyWk11SDlnN3BPdHo5TVJGTUdMaGdJTm96ZGxzY2p4a3FX?= =?utf-8?B?TUU2MU50bjh3N2tENFRDckdIa2d0VVNiRzN0TytHU0JSWVEwaGhyN3FHZ1Fw?= =?utf-8?B?WlJXb0xCWGxVOEVkOVJXcDJaUUxmeXFOYlpBMndmZ1VlMVRZSVNXbmpwaW5k?= =?utf-8?B?NmtSK1N3MVVkWjZLdTRDOWdWcERNV0VxTHpUZTFmZkdMaFk3SDFWSmdhSkdK?= =?utf-8?B?MHc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: f2a4f078-3109-40d9-9ad8-08dcc0fe6a46 X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB6498.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 09:56:52.1848 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Vxk9VC8P62/nsTf2POu7a9gHrJtAe7NNkVXtQ20PP1hFI/MnsO67BiY9ulDDNpP2J6nrRrt4IaE1Sgu9DZyvSf7nuflBHbARCt+5tMmvHFg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB6778 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 8/20/2024 11:45 AM, Robin Jarry wrote: > Burakov, Anatoly, Aug 20, 2024 at 11:31: >> > I checked and unless I missed something, dpdk-pmdinfo.py uses the > >> symbols from the typing module for annotations. Not builtin container >> > types. >> >> It does both. Check e.g. line 147: >> >> def scrub_pci_ids(info: dict): > > Ah, that does not require python 3.9. The dict type is not subscripted > with key and value types. This syntax works since python 3.5. > > What would not work is something as follows: > > def scrub_pci_ids(info: dict[str, list[int]]): > I stand corrected then! -- Thanks, Anatoly