[issue45698] Error on importing getopt
Mgs M Rizqi Fadhlurrahman added the comment: OK, thank you for the answers. Sorry for the false alarm. -- ___ Python tracker <https://bugs.python.org/issue45698> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45698] Error on importing getopt
Mgs M Rizqi Fadhlurrahman added the comment: @eric.smith Wow you're right! Somehow the """ got deleted. (screenshot attached) It can run normally now after I added the """ back. More details: I'm using Ubuntu 18.04.2. I installed python 3.10.0 using pyenv by running: `pyenv install 3.10.0` -- Added file: https://bugs.python.org/file50423/OnPaste.20211103-202914.png ___ Python tracker <https://bugs.python.org/issue45698> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45698] Error on importing getopt
Mgs M Rizqi Fadhlurrahman added the comment: Here: ``` Python 3.10.0 (default, Oct 30 2021, 15:16:25) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import getopt Traceback (most recent call last): File "", line 1, in File "/home/mgsrizqi/.pyenv/versions/3.10.0/lib/python3.10/getopt.py", line 4 function (including the special meanings of arguments of the form `-' ^ SyntaxError: unterminated string literal (detected at line 4) >>> ``` -- ___ Python tracker <https://bugs.python.org/issue45698> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45698] Error on importing getopt
Mgs M Rizqi Fadhlurrahman added the comment: Screenshot attached https://bugs.python.org/file50422/OnPaste.20211103-125049.png -- ___ Python tracker <https://bugs.python.org/issue45698> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45698] Error on importing getopt
New submission from Mgs M Rizqi Fadhlurrahman : It looks like there is a breaking change related to python 3.10.0 implementation that impacted getopt package. https://docs.python.org/3/library/getopt.html https://github.com/python/cpython/blob/3.10/Lib/getopt.py Steps to reproduce: 1. Run python 3.10.0 2. Type `import getopt` 3. The error shows up I already tried python 3.9.7 and it's still working as expected. -- components: Library (Lib) files: OnPaste.20211103-125049.png messages: 405582 nosy: rizqirizqi23 priority: normal severity: normal status: open title: Error on importing getopt type: crash versions: Python 3.10 Added file: https://bugs.python.org/file50422/OnPaste.20211103-125049.png ___ Python tracker <https://bugs.python.org/issue45698> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com