mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
added __all__ lists to a number of Python modules
added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
This commit is contained in:
parent
c955f89225
commit
e99d5ea25b
39 changed files with 138 additions and 0 deletions
|
@ -8,6 +8,8 @@ This module requires Python 1.6 or later.
|
|||
from types import StringType, UnicodeType
|
||||
import sys
|
||||
|
||||
__all__ = ["UserString","MutableString"]
|
||||
|
||||
class UserString:
|
||||
def __init__(self, seq):
|
||||
if isinstance(seq, StringType) or isinstance(seq, UnicodeType):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue