mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Patch 1280, by Alexandre Vassalotti.
Make PyString's indexing and iteration return integers. (I changed a few of Alexandre's decisions -- GvR.)
This commit is contained in:
parent
21431e85d5
commit
75a902db78
9 changed files with 43 additions and 51 deletions
|
@ -367,7 +367,7 @@ class ModuleFinder:
|
|||
consts = co.co_consts
|
||||
LOAD_LOAD_AND_IMPORT = LOAD_CONST + LOAD_CONST + IMPORT_NAME
|
||||
while code:
|
||||
c = code[0]
|
||||
c = chr(code[0])
|
||||
if c in STORE_OPS:
|
||||
oparg, = unpack('<H', code[1:3])
|
||||
yield "store", (names[oparg],)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue