[Python-Dev] typing.py doesn't export Pattern and Match; is that intentional (original) (raw)
Ryan Gonzalez rymg19 at gmail.com
Tue Oct 18 14:08:19 EDT 2016
- Previous message (by thread): [Python-Dev] [Python-checkins] cpython (3.5): remove extra PyErr_Format arguments (closes #28454)
- Next message (by thread): [Python-Dev] typing.py doesn't export Pattern and Match; is that intentional
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20161018/79b9ab2b/attachment.html>
- Previous message (by thread): [Python-Dev] [Python-checkins] cpython (3.5): remove extra PyErr_Format arguments (closes #28454)
- Next message (by thread): [Python-Dev] typing.py doesn't export Pattern and Match; is that intentional
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]