Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
fa3922cf
Kaydet (Commit)
fa3922cf
authored
Tem 31, 2015
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #13248: Delete remaining references of inspect.getargspec().
Noticed by Yaroslav Halchenko.
üst
2808e441
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
inspect.rst
Doc/library/inspect.rst
+1
-3
inspect.py
Lib/inspect.py
+2
-5
test_inspect.py
Lib/test/test_inspect.py
+1
-1
No files found.
Doc/library/inspect.rst
Dosyayı görüntüle @
fa3922cf
...
@@ -805,8 +805,6 @@ Classes and functions
...
@@ -805,8 +805,6 @@ Classes and functions
from kwonlyargs to defaults. *annotations* is a dictionary mapping argument
from kwonlyargs to defaults. *annotations* is a dictionary mapping argument
names to annotations.
names to annotations.
The first four items in the tuple correspond to :func:`getargspec`.
.. versionchanged:: 3.4
.. versionchanged:: 3.4
This function is now based on :func:`signature`, but still ignores
This function is now based on :func:`signature`, but still ignores
``__wrapped__`` attributes and includes the already bound first
``__wrapped__`` attributes and includes the already bound first
...
@@ -835,7 +833,7 @@ Classes and functions
...
@@ -835,7 +833,7 @@ Classes and functions
.. function:: formatargspec(args[, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations[, formatarg, formatvarargs, formatvarkw, formatvalue, formatreturns, formatannotations]])
.. function:: formatargspec(args[, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations[, formatarg, formatvarargs, formatvarkw, formatvalue, formatreturns, formatannotations]])
Format a pretty argument spec from the values returned by
Format a pretty argument spec from the values returned by
:func:`get
argspec` or :func:`get
fullargspec`.
:func:`getfullargspec`.
The first seven arguments are (``args``, ``varargs``, ``varkw``,
The first seven arguments are (``args``, ``varargs``, ``varkw``,
``defaults``, ``kwonlyargs``, ``kwonlydefaults``, ``annotations``).
``defaults``, ``kwonlyargs``, ``kwonlydefaults``, ``annotations``).
...
...
Lib/inspect.py
Dosyayı görüntüle @
fa3922cf
...
@@ -16,7 +16,7 @@ Here are some of the useful functions provided by this module:
...
@@ -16,7 +16,7 @@ Here are some of the useful functions provided by this module:
getmodule() - determine the module that an object came from
getmodule() - determine the module that an object came from
getclasstree() - arrange classes so as to represent their hierarchy
getclasstree() - arrange classes so as to represent their hierarchy
getarg
spec(), getarg
values(), getcallargs() - get info about function arguments
getargvalues(), getcallargs() - get info about function arguments
getfullargspec() - same, with support for Python 3 features
getfullargspec() - same, with support for Python 3 features
formatargspec(), formatargvalues() - format an argument spec
formatargspec(), formatargvalues() - format an argument spec
getouterframes(), getinnerframes() - get info about frames
getouterframes(), getinnerframes() - get info about frames
...
@@ -1018,8 +1018,6 @@ def getfullargspec(func):
...
@@ -1018,8 +1018,6 @@ def getfullargspec(func):
'kwonlydefaults' is a dictionary mapping names from kwonlyargs to defaults.
'kwonlydefaults' is a dictionary mapping names from kwonlyargs to defaults.
'annotations' is a dictionary mapping argument names to annotations.
'annotations' is a dictionary mapping argument names to annotations.
The first four items in the tuple correspond to getargspec().
This function is deprecated, use inspect.signature() instead.
This function is deprecated, use inspect.signature() instead.
"""
"""
...
@@ -1130,8 +1128,7 @@ def formatargspec(args, varargs=None, varkw=None, defaults=None,
...
@@ -1130,8 +1128,7 @@ def formatargspec(args, varargs=None, varkw=None, defaults=None,
formatvalue
=
lambda
value
:
'='
+
repr
(
value
),
formatvalue
=
lambda
value
:
'='
+
repr
(
value
),
formatreturns
=
lambda
text
:
' -> '
+
text
,
formatreturns
=
lambda
text
:
' -> '
+
text
,
formatannotation
=
formatannotation
):
formatannotation
=
formatannotation
):
"""Format an argument spec from the values returned by getargspec
"""Format an argument spec from the values returned by getfullargspec.
or getfullargspec.
The first seven arguments are (args, varargs, varkw, defaults,
The first seven arguments are (args, varargs, varkw, defaults,
kwonlyargs, kwonlydefaults, annotations). The other five arguments
kwonlyargs, kwonlydefaults, annotations). The other five arguments
...
...
Lib/test/test_inspect.py
Dosyayı görüntüle @
fa3922cf
...
@@ -38,7 +38,7 @@ from test.test_import import _ready_to_import
...
@@ -38,7 +38,7 @@ from test.test_import import _ready_to_import
# ismodule, isclass, ismethod, isfunction, istraceback, isframe, iscode,
# ismodule, isclass, ismethod, isfunction, istraceback, isframe, iscode,
# isbuiltin, isroutine, isgenerator, isgeneratorfunction, getmembers,
# isbuiltin, isroutine, isgenerator, isgeneratorfunction, getmembers,
# getdoc, getfile, getmodule, getsourcefile, getcomments, getsource,
# getdoc, getfile, getmodule, getsourcefile, getcomments, getsource,
# getclasstree, getarg
spec, getarg
values, formatargspec, formatargvalues,
# getclasstree, getargvalues, formatargspec, formatargvalues,
# currentframe, stack, trace, isdatadescriptor
# currentframe, stack, trace, isdatadescriptor
# NOTE: There are some additional tests relating to interaction with
# NOTE: There are some additional tests relating to interaction with
...
...
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