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
87069fd8
Kaydet (Commit)
87069fd8
authored
Agu 20, 2008
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
kill the obsolete symtable.Symbol methods
üst
a5e37e6c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
19 deletions
+3
-19
symtable.rst
Doc/library/symtable.rst
+0
-9
symtable.py
Lib/symtable.py
+0
-10
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/library/symtable.rst
Dosyayı görüntüle @
87069fd8
...
...
@@ -144,15 +144,6 @@ Examining Symbol Tables
Return ``True`` if the symbol is global.
.. method:: is_vararg()
Return ``True`` if the symbol is a star arg (receives varargs).
.. method:: is_kewordarg()
Return ``True`` if the symbol is a two-star arg (receives keyword
arguments).
.. method:: is_local()
Return ``True`` if the symbol is local to its block.
...
...
Lib/symtable.py
Dosyayı görüntüle @
87069fd8
...
...
@@ -2,7 +2,6 @@
import
_symtable
from
_symtable
import
(
USE
,
DEF_GLOBAL
,
DEF_LOCAL
,
DEF_PARAM
,
DEF_STAR
,
DEF_DOUBLESTAR
,
DEF_INTUPLE
,
DEF_FREE
,
DEF_FREE_GLOBAL
,
DEF_FREE_CLASS
,
DEF_IMPORT
,
DEF_BOUND
,
OPT_IMPORT_STAR
,
SCOPE_OFF
,
SCOPE_MASK
,
FREE
,
GLOBAL_IMPLICIT
,
GLOBAL_EXPLICIT
)
...
...
@@ -193,12 +192,6 @@ class Symbol(object):
def
is_global
(
self
):
return
bool
(
self
.
__scope
in
(
GLOBAL_IMPLICIT
,
GLOBAL_EXPLICIT
))
def
is_vararg
(
self
):
return
bool
(
self
.
__flags
&
DEF_STAR
)
def
is_keywordarg
(
self
):
return
bool
(
self
.
__flags
&
DEF_DOUBLESTAR
)
def
is_local
(
self
):
return
bool
(
self
.
__flags
&
DEF_BOUND
)
...
...
@@ -211,9 +204,6 @@ class Symbol(object):
def
is_assigned
(
self
):
return
bool
(
self
.
__flags
&
DEF_LOCAL
)
def
is_in_tuple
(
self
):
return
bool
(
self
.
__flags
&
DEF_INTUPLE
)
def
is_namespace
(
self
):
"""Returns true if name binding introduces new namespace.
...
...
Misc/NEWS
Dosyayı görüntüle @
87069fd8
...
...
@@ -249,6 +249,9 @@ Extension Modules
Library
-------
- The methods ``is_in_tuple()``, ``is_vararg()``, and ``is_keywordarg()`` of
symtable.Symbol have been removed.
- Patch #3133: http.server.CGIHTTPRequestHandler did not work on windows.
- a new ``urllib`` package was created. It consists of code from
...
...
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