[issue29117] dir() should include dunder attributes of the unbound method

2017-01-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tested your last claim and it is true as far as I went. >>> C.f.__annotations__ {'a': } >>> C().f.__annotations__ {'a': } >>> C.f.__code__ ", line 2> >>> C().f.__code__ ", line 2> -- nosy: +terry.reedy stage: -> test needed type: -> behavior version

[issue29117] dir() should include dunder attributes of the unbound method

2017-01-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29117] dir() should include dunder attributes of the unbound method

2016-12-30 Thread Antony Lee
New submission from Antony Lee: ``` Python 3.5.2 (default, Nov 7 2016, 11:31:36) [GCC 6.2.1 20160830] on linux Type "help", "copyright", "credits" or "license" for more information. >>> class C: ... def f(self): pass ... >>> C.f.attr = 42 >>> print(dir(C.f)) ['__annotations__', '__call__',