[Lldb-commits] [PATCH] D69014: [LLDB] bugfix: command script add -f doesn't work for some callables

Lawrence D'Anna via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 16 15:17:25 PDT 2019


lawrence_danna added a comment.

Also,  @jingham, only the `#if` branch for python2 has easy access to the `__call__` attribute.   We could test for it in python3 but it wouldn't do what you're thinking it would:

  In [1]: def f(): 
     ...:     return 1 
     ...:                                                                                                                                                                                                                  
  
  In [2]: f.__call__                                                                                                                                                                                                       
  Out[2]: <method-wrapper '__call__' of function object at 0x102e62e18>
  
  In [3]: type(f).__call__                                                                                                                                                                                                 
  Out[3]: <slot wrapper '__call__' of 'function' objects>




Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69014/new/

https://reviews.llvm.org/D69014





More information about the lldb-commits mailing list