Merge pull request #8808 from bill88t/sysvers
Change sys.version to return the whole port identification.
This commit is contained in:
commit
d0fec0c8b6
10 changed files with 10 additions and 10 deletions
|
|
@ -1869,7 +1869,7 @@ typedef double mp_float_t;
|
|||
|
||||
// String used for the banner, and sys.version additional information
|
||||
#ifndef MICROPY_BANNER_NAME_AND_VERSION
|
||||
#define MICROPY_BANNER_NAME_AND_VERSION "MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE
|
||||
#define MICROPY_BANNER_NAME_AND_VERSION "CircuitPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE
|
||||
#endif
|
||||
|
||||
// String used for the second part of the banner, and sys.implementation._machine
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
MicroPython \.\+ version
|
||||
CircuitPython \.\+ version
|
||||
Use \.\+
|
||||
>>> # tests for autocompletion
|
||||
>>> import sys
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
MicroPython \.\+ version
|
||||
CircuitPython \.\+ version
|
||||
Use \.\+
|
||||
>>> # tests for autoindent
|
||||
>>> if 1:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
MicroPython \.\+ version
|
||||
CircuitPython \.\+ version
|
||||
Use \.\+
|
||||
>>> # basic REPL tests
|
||||
>>> print(1)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
MicroPython \.\+ version
|
||||
CircuitPython \.\+ version
|
||||
Use \.\+
|
||||
>>> # check REPL allows to continue input
|
||||
>>> 1 \\\\
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
MicroPython \.\+ version
|
||||
CircuitPython \.\+ version
|
||||
Use \.\+
|
||||
>>> # REPL tests of GNU-ish readline navigation
|
||||
>>> # history buffer navigation
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
test
|
||||
MicroPython \.\+ version
|
||||
CircuitPython \.\+ version
|
||||
Use \.\+
|
||||
>>> # cmdline: -i -c print("test")
|
||||
>>> # -c option combined with -i option results in REPL
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
MicroPython \.\+ version
|
||||
CircuitPython \.\+ version
|
||||
Use \.\+
|
||||
>>> # cmdline: cmdline/repl_micropyinspect
|
||||
>>> # setting MICROPYINSPECT environment variable before program exit triggers REPL
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
MicroPython \.\+ version
|
||||
CircuitPython \.\+ version
|
||||
Use \.\+
|
||||
>>> # test changing ps1/ps2
|
||||
>>> import sys
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
MicroPython \.\+ version
|
||||
CircuitPython \.\+ version
|
||||
Use \.\+
|
||||
>>> # word movement
|
||||
>>> # backward-word, start in word
|
||||
|
|
|
|||
Loading…
Reference in a new issue