Skip to content

Decorator with arguements is not working in REPL shell with iPython kernel #155

@wqlevi

Description

@wqlevi

Describe the bug
Decorator with arguements is not working in REPL shell with iPython kernel.
Details: the same decorator with arguments function is reported TypeError when executed in REPL shell, but is well working in generic bash shell.
Screenshots
Syntax TypeError in REPL Shell: (BUG)
Screenshot 2024-01-11 at 22 07 01

Successful runtime in bash shell: (normal)
Screenshot 2024-01-11 at 22 09 44

Successful runtime in iPython shell alone: (normal)
Screenshot 2024-01-11 at 22 19 16

Desktop (please complete the following information):

  • result of :REPLDebugInfo:
VIM-REPL, last update: 2019.8.23
Operation System: Linux
Support python3: 1
Support python: 0
has +terminal: 1
has +timers: 1
3.8.10 (default, Nov 22 2023, 10:22:35)
[GCC 9.4.0]
['/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/qiwang/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages', '_
vim_path_']
REPL program:
{'vim': 'vim -e', 'perl': ['/home/qiwang/.vim/plugged/vim-repl/ftplugin/perl/psh'], 'python-debug': 'python3 -m ipdb', 'default': 'bash', 'python': 'ipython'}
setted ipython version8.2
REPL exit commands:
{'vim': 'q', 'zsh': 'exit', 'ptpython': 'quit()', 'lua': 'os.exit()', 'default': 'exit', 'bash': 'exit', 'R': 'q()', 'python': 'quit()', 'ipython': 'quit()'}
Current File Type: python
Current Type: ipython
Current Exit Commands: quit()

Additional context
Python version == 3.9.12
Ipython kernel version == 8.2.0

  • Hardware info:
    • Ubuntu == 18.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions