Re: [Python-ideas] New PyThread_tss_ C-API for CPython

2016-12-24 Thread Steve Dower
Right. Platforms that have a defined invalid value don't need the struct, and so they can define the type differently. It just means we also need to provide a macro for testing whether it's been created or not, and users should genuinely treat the value as opaque. Cheers, Steve Top-posted from

Re: [Python-ideas] (no subject)

2016-12-24 Thread Neil Girdhar
On Tuesday, November 29, 2016 at 4:08:19 AM UTC-5, Victor Stinner wrote: > > Hi, > > Python is optimized for performance. Formatting an error message has a > cost on performances. > > Usually, when an exception is hit that will (probably) crash the program, no one cares about less than a micr

Re: [Python-ideas] (no subject)

2016-12-24 Thread Thomas Nyberg
On 12/24/2016 11:42 AM, Neil Girdhar wrote: Usually, when an exception is hit that will (probably) crash the program, no one cares about less than a microsecond of performance. I would probably agree with you in the SyntaxError example, but not for the others. Programming with exceptions is to