-
Notifications
You must be signed in to change notification settings - Fork 687
Open
Description
🐛 Bug Report
当Solution的成员函数调用自定义的非类方法时会出错
eg.
def my_method(s):
return s
class Solution(object):
def countSubstrings(self, s):
return my_method(s)
# return self.my_method2(s)
def my_method2(self, s):
return s报错信息:
NameError: global name 'my_method' is not defined
..
in <module> (Solution.py)
Expected behavior
支持调用非类方法
Your Environment
- os: macOS 11.4
- extension settings:
- nodejs version: v9.4.0
- vscode version: 1.59.0-insider
- extension version: 0.18.0
Metadata
Metadata
Assignees
Labels
No labels