Merge pull request #8808 from bill88t/sysvers

Change sys.version to return the whole port identification.
This commit is contained in:
Dan Halbert 2024-02-16 21:48:08 -05:00 committed by GitHub
commit d0fec0c8b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 10 additions and 10 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
MicroPython \.\+ version
CircuitPython \.\+ version
Use \.\+
>>> # tests for autocompletion
>>> import sys

View file

@ -1,4 +1,4 @@
MicroPython \.\+ version
CircuitPython \.\+ version
Use \.\+
>>> # tests for autoindent
>>> if 1:

View file

@ -1,4 +1,4 @@
MicroPython \.\+ version
CircuitPython \.\+ version
Use \.\+
>>> # basic REPL tests
>>> print(1)

View file

@ -1,4 +1,4 @@
MicroPython \.\+ version
CircuitPython \.\+ version
Use \.\+
>>> # check REPL allows to continue input
>>> 1 \\\\

View file

@ -1,4 +1,4 @@
MicroPython \.\+ version
CircuitPython \.\+ version
Use \.\+
>>> # REPL tests of GNU-ish readline navigation
>>> # history buffer navigation

View file

@ -1,5 +1,5 @@
test
MicroPython \.\+ version
CircuitPython \.\+ version
Use \.\+
>>> # cmdline: -i -c print("test")
>>> # -c option combined with -i option results in REPL

View file

@ -1,4 +1,4 @@
MicroPython \.\+ version
CircuitPython \.\+ version
Use \.\+
>>> # cmdline: cmdline/repl_micropyinspect
>>> # setting MICROPYINSPECT environment variable before program exit triggers REPL

View file

@ -1,4 +1,4 @@
MicroPython \.\+ version
CircuitPython \.\+ version
Use \.\+
>>> # test changing ps1/ps2
>>> import sys

View file

@ -1,4 +1,4 @@
MicroPython \.\+ version
CircuitPython \.\+ version
Use \.\+
>>> # word movement
>>> # backward-word, start in word