Deutsch English Français Italiano |
<mailman.155.1718748012.2909.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: "Peter J. Holzer" <hjp-python@hjp.at> Newsgroups: comp.lang.python Subject: Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) Date: Tue, 18 Jun 2024 23:26:50 +0200 Lines: 51 Message-ID: <mailman.155.1718748012.2909.python-list@python.org> References: <v45eka$3s5s4$2@dont-email.me> <87v82hph0u.fsf@nightsong.com> <87bk45aw6b.fsf@fatphil.org> <slrnv6nnel.30ai.candycanearter07@candydeb.host.invalid> <20240618212650.ijp5cv3hyl3iplsf@hjp.at> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="y56pak5wi7g3egds" X-Trace: news.uni-berlin.de GWLH0heFIY148BqEzuaSJgVRvtOIzjsUng+THWuOYvGQ== Cancel-Lock: sha1:qlzADnU7lmleqjQ+lA8kMpX6qkQ= sha256:LirLvdY9vA+7jU5cZuB3BXNIGrpSF9Ge+XdEwUqnxUQ= Return-Path: <hjp-python@hjp.at> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'content- type:multipart/signed': 0.05; 'content-type:application/pgp- signature': 0.09; 'filename:fname piece:asc': 0.09; 'filename:fname piece:signature': 0.09; 'filename:fname:signature.asc': 0.09; 'subject:Python': 0.12; 'syntax': 0.15; '"creative': 0.16; '__/': 0.16; 'challenge!"': 0.16; 'dots,': 0.16; 'from:addr:hjp-python': 0.16; 'from:addr:hjp.at': 0.16; 'from:name:peter j. holzer': 0.16; 'hjp@hjp.at': 0.16; 'holzer': 0.16; 'reality.': 0.16; 'stross,': 0.16; 'subject:401': 0.16; 'thursday': 0.16; 'url- ip:212.17.106/24': 0.16; 'url-ip:212.17/16': 0.16; 'url:hjp': 0.16; '|_|_)': 0.16; 'wrote:': 0.16; "can't": 0.17; 'to:addr :python-list': 0.20; "i'd": 0.24; '101': 0.26; 'sense': 0.28; 'python-list': 0.32; 'but': 0.32; 'there': 0.33; 'header:In-Reply- To:1': 0.34; 'two': 0.39; 'wrote': 0.39; '203': 0.40; 'lack': 0.60; 'remember': 0.61; 'received:212': 0.62; '202': 0.64; 'received:userid': 0.66; '303': 0.69; 'url-ip:212/8': 0.69; '402': 0.84; 'beat': 0.84; 'exactly.': 0.84; 'received:at': 0.84; 'subject: )': 0.84; 'subject:: (': 0.84; '403': 0.91 Mail-Followup-To: python-list@python.org Content-Disposition: inline In-Reply-To: <slrnv6nnel.30ai.candycanearter07@candydeb.host.invalid> X-Mailman-Approved-At: Tue, 18 Jun 2024 18:00:10 -0400 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <20240618212650.ijp5cv3hyl3iplsf@hjp.at> X-Mailman-Original-References: <v45eka$3s5s4$2@dont-email.me> <87v82hph0u.fsf@nightsong.com> <87bk45aw6b.fsf@fatphil.org> <slrnv6nnel.30ai.candycanearter07@candydeb.host.invalid> Bytes: 5305 --y56pak5wi7g3egds Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2024-06-14 06:10:06 -0000, candycanearter07 via Python-list wrote: > Phil Carmody <pc+usenet@asdf.org> wrote at 12:01 this Thursday (GMT): > > I'd say you can't beat the verbosity, or lack thereof of just plain zsh= /bash: > > $ echo {1,2,3,4}0{1,2,3} > > 101 102 103 201 202 203 301 302 303 401 402 403 >=20 >=20 > I /think/ you can replace it with {1...4} and {1...3}? I know there is > some syntax for "range of numbers" but I can't remember it exactly. Only two dots, not three: % echo {1..4}0{1..3} 101 102 103 201 202 203 301 302 303 401 402 403 hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --y56pak5wi7g3egds Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmZx+5UACgkQ8g5IURL+ KF3ALA//TaPUPtJkRj1DGsC2rUhFWy1s9qdhaQH3V56eS/3TzL93+1uMurBHVgsC XSJQym3sNTwMkqGn6moF0CpQ1009liFLuqx6m1gvGzSbXuICDFdi+6ROYfpkI9q8 esrs64xDP4gxma8xVNKCPMQpj779YMmot0nbs2PtodwqNulBY79DGOBwKB/ZjBbA Mp0qGiSRB/D7xgLHkH/DJEivvlLBvjGW73tfs74PkYIdWTt70wpYAv6ePHpvsz3n qCCmAvHCh3u1VaMrLyv5AI2S1/QT2uJ+JVE11QqdFRmg0DR3a0pddCPre3FjtEad fn5brQm+3MvycAXi0t5CY5kM89YtRv1ufcnYkx95XMMTQesB27H9Tw/F43UNCLUE 0bAlVsJTWcabzp2FjieraTldqJjc7qOgkFGI6M5gM9idZGC4MGXz8GeB6Ktr0yBh uk4CipjccBwsDSm3FJOAHpQ3cs4/X7W94wBzxrcll+6j56m+H8XRCbU7ZSu0VZC7 n0tDdrhbF9e7GLQAf+NpUI2GdILFFOTeCklhd4xhzqbXwIuxiRXo/k0J8fMBZqYQ TYYk/zJdlJFuDv1RDBnbYqHto+FhyX6AHyuZDb1fhpZ6rRDSWL43CVMFi7WEo+nc UAE8OzuB0zSlbKju9LS9OCw1YCem8HT317XYRiKWkkh+lwwbJRw= =a0KA -----END PGP SIGNATURE----- --y56pak5wi7g3egds--