[Patches] [ python-Patches-765238 ] fix fnmatch.__all__
SourceForge.net
noreply@sourceforge.net
Sat, 05 Jul 2003 09:02:22 -0700
Patches item #765238, was opened at 2003-07-03 12:54
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=765238&group_id=5470
Category: Library (Lib)
>Group: Python 2.4
Status: Open
>Resolution: Postponed
Priority: 5
Submitted By: George Yoshida (quiver)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix fnmatch.__all__
Initial Comment:
There are two reasons for this patch.
First, in the fnmatch.py, __all__ doesn't include "filter",
so if you tried to use fnmatch.filter like this,
>>> from fnmatch import *
>>> filter
built-in function, filter, is called instead of fnmatch.filter.
>>> filter
<built-in function filter>
Second, "translate" is just a helper function used by
other functions in the fnmatch module,
and that's why it's not documented in the Python library
reference.
I think "translate" should be removed from
fnmatch.__all__.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2003-07-05 18:02
Message:
Logged In: YES
user_id=21627
While I agree with that, I feel that it is too late for 2.3:
this is an interface change. So postponing it to 2.4.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=765238&group_id=5470