programming language feature abuse 

meh@Deej:~$ python -i python-shell.py
meh@Deej:/home/meh>>> ls()
python-shell.py

meh@Deej:/home/meh>>> ls('/').lines()
['bin', 'boot', 'dev', 'etc', 'home', 'init', 'lib', 'lib32', 'lib64', 'libx32', 'lost+found', 'media', 'mnt', 'opt', 'proc', 'root', 'run', 'sbin', 'snap', 'srv', 'sys', 'tmp', 'usr', 'var']
meh@Deej:/home/meh>>> (ls('/')|grep('b')).lines()
['bin', 'boot', 'lib', 'lib32', 'lib64', 'libx32', 'sbin']

github.com/madewokherd/python-

Follow

programming language feature abuse 

Yes, that is the normal python repr (I didn't make my own loop for it), and yes I did make this shell upload itself to github.

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!