Re: [Python-ideas] PEP: Distributing a Subset of the Standard Library

2016-12-05 Thread Tomas Orsava
On 12/03/2016 05:08 AM, Nick Coghlan wrote: Though I believe the default sys.excepthook function is currently written in C, so it wouldn't be very easy for distributors to customize it. Maybe it could be made to read module=error_message pairs from some external file, which would be easier to mod

Re: [Python-ideas] PEP: Distributing a Subset of the Standard Library

2016-12-05 Thread Tomas Orsava
On 12/05/2016 01:42 PM, Nick Coghlan wrote: On 5 December 2016 at 19:56, Tomas Orsava wrote: On 12/03/2016 05:08 AM, Nick Coghlan wrote: Though I believe the default sys.excepthook function is currently written in C, so it wouldn't be very easy for distributors to customize it. Maybe it could

Re: [Python-ideas] PEP: Distributing a Subset of the Standard Library

2016-12-05 Thread Nick Coghlan
On 5 December 2016 at 19:56, Tomas Orsava wrote: > On 12/03/2016 05:08 AM, Nick Coghlan wrote: >>> >>> Though I believe the default sys.excepthook function is currently written >>> in >>> C, so it wouldn't be very easy for distributors to customize it. Maybe it >>> could be made to read module=err

Re: [Python-ideas] PEP: Distributing a Subset of the Standard Library

2016-12-05 Thread Nick Coghlan
On 5 December 2016 at 22:53, Tomas Orsava wrote: > On 12/05/2016 01:42 PM, Nick Coghlan wrote: >> Essentially, that would be the "name.missing.py" part of the draft >> proposal for optional standard library modules, just with a regular >> "name.py" module name and a tweak to getpath.c. > > To my e