E.g.:

import typing
print(typing.Pattern, typing.Match)  # Works.
from typing import *
print(Pattern, Match)  # NameError: name 'Pattern' is not defined


A quick look shows that typing.py doesn't have Pattern and Match in
__all__. Was this intentional, or just an oversight?


-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to