Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #196291

Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 )

Path csiph.com!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> (permalink)
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>
Xref csiph.com comp.lang.python:196291

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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
> 
> 
> 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

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) HenHanna <HenHanna@devnull.tb> - 2024-06-09 16:42 -0700
  Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) Paul Rubin <no.email@nospam.invalid> - 2024-06-09 21:18 -0700
    Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) Phil Carmody <pc+usenet@asdf.org> - 2024-06-13 15:01 +0300
      Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-06-14 06:10 +0000
        Re: in Python: (101 102 103 201 ...) (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-06-14 07:18 +0000
        Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) "Peter J. Holzer" <hjp-python@hjp.at> - 2024-06-18 23:26 +0200
        Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) Phil Carmody <pc+usenet@asdf.org> - 2024-06-20 17:20 +0300
          Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-06-21 06:10 +0000

csiph-web