[Python-Dev] PEP 553: Built-in debug()
Barry Warsaw
barry at python.org
Thu Sep 7 13:19:52 EDT 2017
On Sep 7, 2017, at 10:00, Christian Heimes <christian at python.org> wrote:
> Setuptools' entry points [1] use colon between import and function, e.g.
> "pdb:set_trace" would import pdb and then execute set_trace. The
> approach can be augmented to allow calling a class method, too.
>
> So
>
> "package.module:myclass.classfunc"
>
> would do :
>
> from package.module import myclass
> myclass.classfunc
Yep, that’s how it's described in the PEP 553 open issue. I just didn’t include that complication in my response.
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 273 bytes
Desc: Message signed with OpenPGP
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170907/59dd5277/attachment.sig>
More information about the Python-Dev
mailing list