[Python-Dev] REMINDER: report conduct issues to the Conduct WG

2020-03-30 Thread Brett Cannon
The steering council wants to remind folks that if you have witnessed or
experienced any conduct that you think may go against the PSF Code of
Conduct to please report those incidents to [email protected]. This
includes reporting micro-aggressions like feeling dismissed so that any
pattern of such behaviour can be detected and handled as a larger issue. If
you are on the fence of reporting something we encourage you to report the
incident and let the Conduct WG make the decision as to how to handle the
report.

https://www.python.org/psf/conduct/
https://www.python.org/psf/conduct/reporting/
___
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/V7LJMKMTYMO4ZBDGR5YY7IFMDIRSKUAC/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] PEP 585 "Type Hinting Generics In Standard Collections" accepted

2020-03-30 Thread Victor Stinner
Hi,

The Python Steering Council accepts PEP 585 "Type Hinting Generics In
Standard Collections":
https://www.python.org/dev/peps/pep-0585/

Congrats Łukasz Langa for your tenacity! (PEP written one year ago.)

Thanks also to everyone who was involved in the discussion to help to
get a better PEP ;-)

It seems Guido van Rossum is already working on implementing the PEP:

* https://github.com/python/cpython/pull/18239
* https://bugs.python.org/issue39481

Victor
-- 
Night gathers, and now my watch begins. It shall not end until my death.
___
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/HW2NFOEMCVCTAFLBLC3V7MLM6ZNMKP42/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Debug C++

2020-03-30 Thread Leandro Müller
Hi
Are there any away to debug C module during python debug?

Att.
Leandro Müller
___
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/5NO3SO3MOWCRQD7EJ6IS55O5UMG42W7X/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Debug C++

2020-03-30 Thread Rhodri James

On 30/03/2020 23:20, Leandro Müller wrote:

Hi
Are there any away to debug C module during python debug?


In a word, gdb.

I've been doing this quite a lot lately.  The trick is to start Python 
up under gdb, set a pending breakpoint in your C module, then carry on 
as normal.  For example:



rhodri@Wildebeest:~/hub_module$ gdb python3
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.

[...large amounts of boilerplate omitted for brevity...]

Reading symbols from python3...Reading symbols from 
/usr/lib/debug/.build-id/28/7763e881de67a59b31b452dd0161047f7c0135.debug...done.

done.
(gdb) b Hub_new
Function "Hub_new" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (Hub_init) pending.
(gdb) run
Starting program: /home/rhodri/Work/Lego/hub_module/hat_env/bin/python3
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Python 3.6.9 (default, Nov  7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from hub import hub

Breakpoint 1, Hub_new (type=0x76236340 , args=(), kwds=0x0)
at src/hubmodule.c:164
164 HubObject *self = (HubObject *)type->tp_alloc(type, 0);
(gdb)


...and off you go!


--
Rhodri James *-* Kynesim Ltd
___
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/4JVUDRD5YZVVZ4FWC3BYN3RJDXBNBTIF/
Code of Conduct: http://python.org/psf/codeofconduct/