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
b1ae6efe
Commit
b1ae6efe
authored
May 13, 2015
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inspect: Add __slots__ to BoundArguments.
parent
efd4682b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Lib/inspect.py
Lib/inspect.py
+9
-0
No files found.
Lib/inspect.py
View file @
b1ae6efe
...
...
@@ -2377,6 +2377,8 @@ class BoundArguments:
Dict of keyword arguments values.
"""
__slots__
=
(
'arguments'
,
'_signature'
,
'__weakref__'
)
def
__init__
(
self
,
signature
,
arguments
):
self
.
arguments
=
arguments
self
.
_signature
=
signature
...
...
@@ -2443,6 +2445,13 @@ class BoundArguments:
self
.
signature
==
other
.
signature
and
self
.
arguments
==
other
.
arguments
)
def
__setstate__
(
self
,
state
):
self
.
_signature
=
state
[
'_signature'
]
self
.
arguments
=
state
[
'arguments'
]
def
__getstate__
(
self
):
return
{
'_signature'
:
self
.
_signature
,
'arguments'
:
self
.
arguments
}
class
Signature
:
"""A Signature object represents the overall signature of a function.
...
...
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