A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2016-October/146732.html below:

[Python-Dev] typing.py doesn't export Pattern and Match; is that intentional

[Python-Dev] typing.py doesn't export Pattern and Match; is that intentional [Python-Dev] typing.py doesn't export Pattern and Match; is that intentionalGuido van Rossum guido at python.org
Tue Oct 18 15:20:57 EDT 2016
Yes, that's intentional. (We have a separate tracker for this module,
https://github.com/python/typing/issues)

On Tue, Oct 18, 2016 at 11:08 AM, Ryan Gonzalez <rymg19 at gmail.com> wrote:
> 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 at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/guido%40python.org
>



-- 
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4