mirror of
https://github.com/python/cpython.git
synced 2025-10-16 11:49:57 +00:00
Bytes literal.
This commit is contained in:
parent
cf297e46b8
commit
00e41defe8
15 changed files with 179 additions and 19 deletions
|
@ -930,6 +930,10 @@ class CodeGenerator:
|
|||
|
||||
def visitConst(self, node):
|
||||
self.emit('LOAD_CONST', node.value)
|
||||
|
||||
def visitBytes(self, node):
|
||||
self.emit('LOAD_CONST', node.value)
|
||||
self.emit('MAKE_BYTES')
|
||||
|
||||
def visitKeyword(self, node):
|
||||
self.emit('LOAD_CONST', node.name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue