Fixup of: 'NVDA logging: add originating thread to log entry'#10267
Conversation
|
PR introduces Flake8 errors 😲 See test results for Failed build of commit aaea543c33 |
|
Thanks, I'll await the next snap with interest. I suspected it might be a
problem something like that, which would mean you either needed a time
machine or to suspend the routine when running things that may use this
construct which would rather defeat the object of having it in the log in
the first place!
Brian
bglists@blueyonder.co.uk
Sent via blueyonder.
Please address personal E-mail to:-
briang1@blueyonder.co.uk, putting 'Brian Gaff'
in the display name field.
Newsgroup monitored: alt.comp.blind-users
-----
|
|
@LeonarddeR sorry for the collision, I did not notice you were already working on this when I filled PR #10269. I do not think we need to fully revert the naming of As for your proposed change in |
|
The reason why I removed the logic that gets a name from the function is an unrelated issue. It's because functions defined in the python console have a module attribute of None. Trying to concatenate None with str results in an error. The problem is here that we have to be absolutely sure about edge cases. Alternatively, we could use a try/except block to calculate a human readable name, but there's also something to say for consistency. |
I also pushed a fix for this in PR #10269.
A try/except block here would IMHO be overkill once we've nailed down the few different situations, but it of course couldn't hurt. EDIT: My second commit doesn't show up in PR #10269 as you closed it. Nevermind. |
|
_FuncPtr isn't the only exception, functools.Partial also doesn't have a
__qualname__
|
Good to know. Thanks for the precision. |
|
I'm afraid I don't see the fix in #10269, probably because I closed it. Still, I think I want to be 100% sure that this works. Note that it is mainly for logging, it doesn't have to look super elegant. |
No problem. |
Link to issue number:
Fixes #10266
Summary of the issue:
Pr #10259 introduces two issues;
Description of how this pull request fixes the issue:
Testing performed:
Tested that logs initiated from a function running in a gui.ExecAndPump log the proper thread identifier.
Known issues with pull request:
None
Change log entry:
None