summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-20 02:00:14 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-20 02:00:14 (GMT)
commit87069fd8fe8fae7409f313bd02faa65e9110ef66 (patch)
treeda936be765b64470b8518d59c03518a3d22d02cd /Lib
parenta5e37e6cc3137ad1faf26495849554399d534f75 (diff)
downloadcpython-87069fd8fe8fae7409f313bd02faa65e9110ef66.zip
cpython-87069fd8fe8fae7409f313bd02faa65e9110ef66.tar.gz
cpython-87069fd8fe8fae7409f313bd02faa65e9110ef66.tar.bz2
kill the obsolete symtable.Symbol methods
Diffstat (limited to 'Lib')
-rw-r--r--Lib/symtable.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py
index ff332f2..3d1775b 100644
--- a/Lib/symtable.py
+++ b/Lib/symtable.py
@@ -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.