Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

8 votes
Accepted

Virtual machine using RPython and PyPy

bcode = [] stack = [] regs = [] sp = 0 bcd = [] Global variables like this are frowned upon. To be pythonic you should really put them a in a class or something. ...
user avatar
5 votes

Virtual machine using RPython and PyPy

You need to close files you've open. From the Python doc : When you’re done with a file, call f.close() to close it and free up any system resources taken up by the open file. Even better, you ...
user avatar
  • 28.7k

Only top scored, non community-wiki answers of a minimum length are eligible