ed: pyRichRepl + func inspect
This commit is contained in:
parent
a206df3cee
commit
ffc9eb0b11
@ -227,7 +227,7 @@ Script: [pythonfun.sh](./pythonfun.sh)
|
||||
|
||||
### Interprete a color
|
||||
|
||||
Color en la consola de python con módulo **rich**. [pyRichRepl.py](./pyRichRepl.py)
|
||||
Color en la consola de python con módulo **rich**, mas inspector. [pyRichRepl.py](./pyRichRepl.py)
|
||||
|
||||
----
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
from rich import pretty
|
||||
from rich.console import Console
|
||||
from rich import inspect as inspct
|
||||
|
||||
def inspect(obj):
|
||||
inspct(obj, methods=True)
|
||||
|
||||
pretty.install()
|
||||
print = Console().print
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user