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 0AF3545822; Tue, 20 Aug 2024 11:20:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A16D4026C; Tue, 20 Aug 2024 11:20:12 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id B008D400D6 for ; Tue, 20 Aug 2024 11:20:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724145611; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tkH8h/CCvMcss0xlvthoG8RFAkN+3W/YpT8hdNctQvU=; b=JvC5ob3Bg7CuIMntsbQ1D3pZtA/ynIJqxi7jF/0zbzirBjEzzqctKX1xUDPYaxapsvA2G7 2Uq3KpKDrNTXNh5eINXUcAooFxgsNj1U6n63z+j3DPhZ3z4IxfAru3yxqJNPVQNKPwBUeu I/YLnEr6iU/D8w0NO90RjNts6U0hpII= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-335-TxqErO3TN2iDtk7ZsXZo2w-1; Tue, 20 Aug 2024 05:20:09 -0400 X-MC-Unique: TxqErO3TN2iDtk7ZsXZo2w-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-3718eb22836so2885419f8f.3 for ; Tue, 20 Aug 2024 02:20:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724145608; x=1724750408; h=in-reply-to:references:user-agent:to:from:cc:subject:message-id :date:content-transfer-encoding:mime-version:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=tkH8h/CCvMcss0xlvthoG8RFAkN+3W/YpT8hdNctQvU=; b=xIxd+NICYcAINOD+xF5yvshEJ7vv4pYcDlj9QUi542eixGcMTpXdQXjqvIe8XbZCsn xK27jg968Ru8lNaFR0/LqyhlgD/93bNRUsDV/7ePUemQHg3qrhqI9n3G1blH3FJPmnWl SzqubdXE8BFa5JbivjbO2yHRn2bZzJ2FZ4HwNhPbsygv8xs6JMleBJwGoowLZ4TcqHZM GwMCqJGu7EM+/w8ySms5vHcuQugTsn1iy2SEW5iAYBUiDECxXEQfCHz5E1VNTKwufvCZ 63jNZ4B3L5Et+eotouuYJxB4TjyNLMDyGXMbNYhkK3ZY5LDLyrB316DMrnvwSjLHIGt5 6qKw== X-Forwarded-Encrypted: i=1; AJvYcCV+LHlkb2O6bTyPoseduzeRdYvI0R2KvWzNR3jILF6zT5lVjaZV35nEcdOXohmgausC3gwELdM9PR5aUhE= X-Gm-Message-State: AOJu0Yx1Qvb5dkybg+3IvXYkz2hWgBiFg6B2QOKpWabxN0KzxwHMpG60 fvd41+Qik8naEsYscVqs5xt0f082WzBsdrKYSxMBIbJkCgCOne8fVwu7w4XiQ1hdbcSfhost0a/ vhWNkPbJDub4Q4O706eqj39Jukyqb4fMZ6B9aeyQj X-Received: by 2002:a05:6000:12c7:b0:371:9149:dc54 with SMTP id ffacd0b85a97d-371943151cemr6981321f8f.3.1724145608046; Tue, 20 Aug 2024 02:20:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGYgz3H469Z1el9jqxUmXtjQFaEOKinenEAKZmKxj8bbbRKOp1/C3kfcj44AhO0tardgfMP8A== X-Received: by 2002:a05:6000:12c7:b0:371:9149:dc54 with SMTP id ffacd0b85a97d-371943151cemr6981305f8f.3.1724145607521; Tue, 20 Aug 2024 02:20:07 -0700 (PDT) Received: from localhost (2a01cb00025433006239e1f47a0b2371.ipv6.abo.wanadoo.fr. [2a01:cb00:254:3300:6239:e1f4:7a0b:2371]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-371898bb83bsm12683870f8f.117.2024.08.20.02.20.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Aug 2024 02:20:07 -0700 (PDT) Mime-Version: 1.0 Date: Tue, 20 Aug 2024 11:20:06 +0200 Message-Id: Subject: Re: [PATCH v2 1/4] usertools/cpu_layout: update coding style Cc: From: "Robin Jarry" To: "Burakov, Anatoly" , User-Agent: aerc/0.18.2-29-g7dd0fdeda6c9 References: <4844fc3a4604ffef789702752ff04699ab5118db.1723810613.git.anatoly.burakov@intel.com> In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed 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 Burakov, Anatoly, Aug 20, 2024 at 11:12: > > FYI: if we change the minimum supported python version to 3.9, we could= =20 > > even get rid of this import completely as builtin types `set`, `list`,= =20 > > `tuple` and `dict` have become subscriptable. > >=20 > > =C2=A0=C2=A0 https://peps.python.org/pep-0585/ > >=20 > > You can use them directly instead of the symbols defined in the typing= =20 > > module. E.g. the following becomes valid syntax: > >=20 > > =C2=A0=C2=A0 def foo(a: list[set[int]]) -> dict[str, tuple[str]]: > >=20 > > Instead of the more verbose: > >=20 > > =C2=A0=C2=A0 def foo(a: T.List[T.Set[int]]) -> T.Dict[str, T.Tuple[str= ]]: > >=20 > > But we can keep that for another day. > >=20 > > Incidentally, `dpdk-pmdinfo.py` script does use this syntax already. So= =20 > either our minimum Python requirement is already met for this, or=20 > pmdinfo needs to be fixed to avoid it. I checked and unless I missed something, dpdk-pmdinfo.py uses the=20 symbols from the typing module for annotations. Not builtin container=20 types. But I think that we should bump the minimum python version to 3.9. 3.6=20 is really old...