From 021c3f0c7e2428f8b34590e3c05307fd5694d7ba Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 5 Jan 2024 21:17:22 -0500 Subject: updates --- lib/pythonrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/pythonrc b/lib/pythonrc index ec59d2b..89408a7 100644 --- a/lib/pythonrc +++ b/lib/pythonrc @@ -1,8 +1,10 @@ import os import pdb import pprint -import rlcompleter, readline +import rlcompleter +import readline import sys +import importlib # enable tab completion readline.parse_and_bind("tab: complete") @@ -13,3 +15,6 @@ pdb.Pdb.complete = rlcompleter.Completer(locals()).complete # prettyprint with p() pp = pprint.PrettyPrinter(indent=4, width=80) p = pp.pprint + +# reload a module with r(module) +r = importlib.reload -- cgit v1.2.3