DiezI doubt it does. It sure doesn''t on unix, and I fail to see any reason whyit should do that on windows - given that the total number of lower() inpdb.py amounts to one, and that''s used to process user-input suchas "Yes", "y", "YES" or whatnot.Are you sure you are not processing the content through some lower()-callwhen embedding pdb?Diez 我怀疑它确实如此。它确实没有在unix上,我没有看到任何理由为什么 它应该在Windows上执行 - 因为 中的lower()总数pdb.py等于1,并且用于处理用户输入这样的 为是,y,是和是。或者诸如此类。I doubt it does. It sure doesn''t on unix, and I fail to see any reason whyit should do that on windows - given that the total number of lower() inpdb.py amounts to one, and that''s used to process user-input suchas "Yes", "y", "YES" or whatnot. 是的我很确定,有两个原因: 1.当我执行step_into时,跳进一个没有 断点的文件本身(意味着我的程序甚至不知道这个文件), pdb返回一个小写文件名 2. rpdb2(可能基于或甚至从pdb继承)具有相同的 行为。问rpdb2的作者,我有一些借口(我没有理解)为什么他这样做了。Yes I''m pretty sure, two reasons:1. when I perform a step_into, jumping into a file that doesn''t havebreakpoints itself (meaning my program doesn''t even know of this file),pdb returns a lowercase filename2. rpdb2 (probably based or even inherited from pdb) has the samebehavior. Asking the writer of rpdb2, I got some excuse (which I didn''tunderstand) why he had done it that way. 但是也许pdb呢? 谢谢, StefBut maybe pdb does ?thanks anyway,Stef 什么ha与潜在的输出后处理有关吗?What has that to do with potential output postprocessing? rpdb2不是pdb。 下面是我刚刚拥有的Pdb会话的输出: (eggbasket)dir @ client8049:〜/ software / vc / EggBasketrpdb2 is not pdb.Below is the output of a Pdb-session I just had:(eggbasket)dir@client8049:~/software/vc/EggBasket 这篇关于如何在正确的情况下获取文件名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 13:35
查看更多