This website requires JavaScript.
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
mirror
/
micropython
kopia lustrzana
https://github.com/micropython/micropython
Obserwuj
1
Polub
0
Forkuj
You've already forked micropython
0
Kod
Zgłoszenia
Projekty
Wydania
Wiki
Aktywność
master
micropython
/
tests
/
cmdline
/
repl_sys_ps1_ps2.py
7 wiersze
75 B
Python
Czysty
Bezpośredni odnośnik
Zwykły widok
Historia
Unescape
Escape
py/modsys: Add optional mutable attributes sys.ps1/ps2 and use them. This allows customising the REPL prompt strings. Signed-off-by: Damien George <damien@micropython.org>
2021-07-26 14:43:35 +00:00
# test changing ps1/ps2
tests: Replace umodule with module everywhere. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-18 06:57:45 +00:00
import
sys
sys
.
ps1
=
"
PS1
"
sys
.
ps2
=
"
PS2
"
py/modsys: Add optional mutable attributes sys.ps1/ps2 and use them. This allows customising the REPL prompt strings. Signed-off-by: Damien George <damien@micropython.org>
2021-07-26 14:43:35 +00:00
(
1
+
2
)