mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Bytes literal.
This commit is contained in:
parent
cf297e46b8
commit
00e41defe8
15 changed files with 179 additions and 19 deletions
|
@ -267,6 +267,20 @@ class Break(Node):
|
|||
def __repr__(self):
|
||||
return "Break()"
|
||||
|
||||
class Bytes(Node):
|
||||
def __init__(self, value, lineno=None):
|
||||
self.value = value
|
||||
self.lineno = lineno
|
||||
|
||||
def getChildren(self):
|
||||
return self.value,
|
||||
|
||||
def getChildNodes(self):
|
||||
return ()
|
||||
|
||||
def __repr__(self):
|
||||
return "Bytes(%s)" % (repr(self.value),)
|
||||
|
||||
class CallFunc(Node):
|
||||
def __init__(self, node, args, star_args = None, dstar_args = None, lineno=None):
|
||||
self.node = node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue