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
fba86a7e
Commit
fba86a7e
authored
Nov 29, 2007
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed more types from the types module
parent
9258b29a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
Doc/library/types.rst
Doc/library/types.rst
+0
-5
Lib/_abcoll.py
Lib/_abcoll.py
+3
-1
Lib/types.py
Lib/types.py
+0
-3
No files found.
Doc/library/types.rst
View file @
fba86a7e
...
...
@@ -85,11 +85,6 @@ The module defines the following names:
traceback object.
.. data:: DictProxyType
The type of dict proxies, such as ``type.__dict__``.
.. data:: GetSetDescriptorType
The type of objects defined in extension modules with ``PyGetSetDef``, such as
...
...
Lib/_abcoll.py
View file @
fba86a7e
...
...
@@ -18,7 +18,7 @@ __all__ = ["Hashable", "Iterable", "Iterator",
"Sequence"
,
"MutableSequence"
,
"ByteString"
,
"bytearray_iterator"
,
"bytes_iterator"
,
"dict_itemiterator"
,
"dict_items"
,
"dict_keyiterator"
,
"dict_keys"
,
"dict_items"
,
"dict_keyiterator"
,
"dict_keys"
,
"dict_proxy"
,
"dict_valueiterator"
,
"dict_values"
,
"list_iterator"
,
"list_reverseiterator"
,
"range_iterator"
,
"set_iterator"
,
"str_iterator"
,
"tuple_iterator"
,
"zip_iterator"
,
...
...
@@ -44,6 +44,8 @@ zip_iterator = type(iter(zip()))
dict_keys
=
type
({}.
keys
())
dict_values
=
type
({}.
values
())
dict_items
=
type
({}.
items
())
## misc ##
dict_proxy
=
type
(
type
.
__dict__
)
### ONE-TRICK PONIES ###
...
...
Lib/types.py
View file @
fba86a7e
...
...
@@ -20,7 +20,6 @@ GeneratorType = type(_g())
class
_C
:
def
_m
(
self
):
pass
ClassType
=
type
MethodType
=
type
(
_C
().
_m
)
BuiltinFunctionType
=
type
(
len
)
...
...
@@ -36,8 +35,6 @@ except TypeError:
FrameType
=
type
(
tb
.
tb_frame
)
tb
=
None
;
del
tb
DictProxyType
=
type
(
type
.
__dict__
)
# Extension types defined in a C helper module. XXX There may be no
# equivalent in implementations other than CPython, so it seems better to
# leave them undefined then to set them to e.g. None.
...
...
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