I hereby claim:
- I am nihaals on github.
- I am orangutan (https://keybase.io/orangutan) on keybase.
- I have a public key ASC85yhPuDyOyjJhWCtSp2BtEJa5QaVA7nEpo8-Wq34jsQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import sys.stdout as std | |
| def update_last_line(text): | |
| std.write("\r{}\033[K".format(text)) | |
| std.flush() |
If you have some information to add, please leave a comment or DM me on Discord (Orangutan#9393).
Currently untested:
| import asyncio | |
| import base64 | |
| import csv | |
| import html | |
| import imghdr | |
| import logging | |
| import math | |
| import os | |
| import pathlib | |
| import random |
| # Disables Python's default history handling | |
| # See https://github.com/python/cpython/blob/4898415df724380d4c8b0ec08e8cb92f126193c3/Lib/site.py#L462-L483 | |
| # Makes history only available in the current shell and stops reading and writing it to disk | |
| # Only side-effect is there is an empty history entry before getting a bell while pressing up arrow | |
| __import__('readline').add_history('') |