https://bugs.documentfoundation.org/show_bug.cgi?id=147057

            Bug ID: 147057
           Summary: Wrong Python version (seems to be 3.8, but doesn't
                    know 3.6 feature)
           Product: LibreOffice
           Version: 7.1.8.1 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
The Python installation is in a subdirectory called "python-core-3.8.8", so I
assumed that Python 3.8 is embedded.  
However, the embedded Python does not support the "f-string" formatting feature
introduced with Python 3.6.
How to find out which Python grammar actually applies to LO macros?

Here is a Python 3.6 string formatting example that does not work with LO
embedded Python:

state = 'not dead'
opinion = f'This bird is {state}'

However, this old style code works with LO embedded Python:

state = 'not dead'
opinion = 'This bird is {}'.format(state)



Steps to Reproduce:
1.Put an f-string in a message window (see example above)
2.e.g. f'This bird is {state}'
3.Execute macro

Actual Results:
Display: 
This bird is {state}

Expected Results:
Correct display is:
This bird is not dead


Reproducible: Always


User Profile Reset: No



Additional Info:
In Eclipse PyDev, the f-string code is marked as error if I set the embedded LO
Python interpreter. This means, its grammar seems not to comply with Python
version 3.6+

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to