This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients Je GeVa, serhiy.storchaka, xtreak
Date 2020-03-05.03:58:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583380725.56.0.158676351374.issue39856@roundup.psfhosted.org>
In-reply-to
Content
This seems to be similar to issue9584. Below are the results in my zsh and bash in Mac.

bash

bash-3.2$ cd /tmp/
bash-3.2$ ls *py
hello_1.py	hello_2.py	hello_3.py
bash-3.2$ ls hell*{1-2}.*
ls: hell*{1-2}.*: No such file or directory
bash-3.2$ ls hell*[1-2].*
hello_1.py	hello_2.py

zsh

➜  /tmp ls *py
hello_1.py hello_2.py hello_3.py
➜  /tmp ls hell*{1-2}.*
zsh: no matches found: hell*{1-2}.*
➜  /tmp ls hell*[1-2].*
hello_1.py hello_2.py

Try using []

>>> import glob
>>> glob.glob("hell*[1-2].*")
['hello_2.py', 'hello_1.py']
History
Date User Action Args
2020-03-05 03:58:45xtreaksetrecipients: + xtreak, serhiy.storchaka, Je GeVa
2020-03-05 03:58:45xtreaksetmessageid: <1583380725.56.0.158676351374.issue39856@roundup.psfhosted.org>
2020-03-05 03:58:45xtreaklinkissue39856 messages
2020-03-05 03:58:45xtreakcreate