Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能格式化字符串变量 #22

Open
vewWLE829 opened this issue Dec 2, 2017 · 3 comments
Open

不能格式化字符串变量 #22

vewWLE829 opened this issue Dec 2, 2017 · 3 comments

Comments

@vewWLE829
Copy link

vewWLE829 commented Dec 2, 2017

code

from beeprint.printer import pp

class A:
    a =1
    b =2
    c= '3333'

a = A()
pp(a)

Traceback (most recent call last):
File "e:/workCode/athena/test.py", line 9, in
pp(a)
File "C:\Program Files\Python36\lib\site-packages\beeprint\printer.py", line 59, in pp
print_obj_path()
File "C:\Program Files\Python36\lib\site-packages\beeprint\debug_kit.py", line 62, in print_obj_path
passed_arg_name = groups.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

@vewWLE829
Copy link
Author

不能格式化字符串,不知道出了什么问题

@panyanyany
Copy link
Owner

好好好,等我有空搞一搞……

@panyanyany
Copy link
Owner

本来这个 print_obj_path 是用来打印错误信息的,不过这个函数好像也出错了。
你能不能把 C:\Program Files\Python36\lib\site-packages\beeprint\printer.py 第 59 行的 print_obj_path() 给注释掉再给我看看有什么错误信息?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants