Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #196291
| 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 | 2024-06-18 23:26 +0200 |
| 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> |
[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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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