[Python-Dev] Challenge: Please break this! (a.k.a restricted mode revisited) (original) (raw)
Jon Ribbens jon+python-dev at unequivocal.co.uk
Tue Apr 12 05:08:05 EDT 2016
- Previous message (by thread): [Python-Dev] Challenge: Please break this! (a.k.a restricted mode revisited)
- Next message (by thread): [Python-Dev] Challenge: Please break this! (a.k.a restricted mode revisited)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Apr 12, 2016 at 06:28:34PM +1000, Chris Angelico wrote:
On Sat, Apr 9, 2016 at 12:18 AM, Jon Ribbens <jon+python-dev at unequivocal.co.uk> wrote: > Anyway the code is at https://github.com/jribbens/unsafe > It requires Python 3.4 or later (it could probably be made to work on > Python 2.7 as well, but it would need some changes).
Rather annoying point: Your interactive mode allows no editing keys (readline etc), and also doesn't have underscore for "last result", as that's a forbidden name. :( Makes tinkering fiddly.
It's just a subclass of the stdlib class code.InteractiveConsole, which seems not to offer those features unfortunately.
- Previous message (by thread): [Python-Dev] Challenge: Please break this! (a.k.a restricted mode revisited)
- Next message (by thread): [Python-Dev] Challenge: Please break this! (a.k.a restricted mode revisited)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]