Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
23a4a7b5
Commit
23a4a7b5
authored
May 12, 2008
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The __all__ value for 'collections' was missing UserList and UserString.
parent
a795790b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
Lib/collections.py
Lib/collections.py
+2
-1
Lib/test/test___all__.py
Lib/test/test___all__.py
+1
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/collections.py
View file @
23a4a7b5
__all__
=
[
'deque'
,
'defaultdict'
,
'namedtuple'
,
'UserDict'
]
__all__
=
[
'deque'
,
'defaultdict'
,
'namedtuple'
,
'UserDict'
,
'UserList'
,
'UserString'
]
# For bootstrapping reasons, the collection ABCs are defined in _abcoll.py.
# They should however be considered an integral part of collections.py.
from
_abcoll
import
*
...
...
Lib/test/test___all__.py
View file @
23a4a7b5
...
...
@@ -44,6 +44,7 @@ class AllTest(unittest.TestCase):
self
.
check_all
(
"bdb"
)
self
.
check_all
(
"binhex"
)
self
.
check_all
(
"calendar"
)
self
.
check_all
(
"collections"
)
self
.
check_all
(
"cgi"
)
self
.
check_all
(
"cmd"
)
self
.
check_all
(
"code"
)
...
...
Misc/NEWS
View file @
23a4a7b5
...
...
@@ -21,6 +21,8 @@ Extension Modules
Library
-------
- Fix the __all__ setting on 'collections' to include UserList and UserString.
- The sre module has been removed.
- The Queue module has been renamed to queue.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment