Re: [Python-Dev] Adding bytes.frombuffer() constructor to PEP 467 (was: [Python-ideas] Adding bytes.frombuffer() constructor

2016-10-25 Thread Nick Coghlan
On 25 October 2016 at 02:53, Chris Barker wrote: > IS this na either-or? IF someone is proposing a nice lib for "low level data > buffer > manipulation", then yes, putting frombuffer() in there would be a fine idea. > > But if there is no such proposal on the table, then I think adding a > frombuf

Re: [Python-Dev] Adding bytes.frombuffer() constructor to PEP 467 (was: [Python-ideas] Adding bytes.frombuffer() constructor

2016-10-25 Thread Nick Coghlan
On 25 October 2016 at 17:25, Nick Coghlan wrote: > as well as Yury's new > libuv-based ``uvloop`` asyncio event loop implementation. Oops, I phrased that badly - the default asyncio event loop implementation is still pure Python, but uvloop is a drop-in Cython based replacement. Cheers, Nick. -

[Python-Dev] Default formatting

2016-10-25 Thread Serhiy Storchaka
Classes that doesn't define the __format__ method for custom PEP 3101 formatting inherits it from parents. Originally the object.__format__ method was designed as [1]: def __format__(self, format_spec): return format(str(self), format_spec) An instance is converted to string and re

Re: [Python-Dev] Adding bytes.frombuffer() constructor to PEP 467 (was: [Python-ideas] Adding bytes.frombuffer() constructor

2016-10-25 Thread Chris Barker
On Tue, Oct 25, 2016 at 12:25 AM, Nick Coghlan wrote: > The suggestion came from folks working on asyncio performance > improvements, > I'm *absolutely* suggesting > that they put some paid time and energy into a lower level buffer > manipulation library between now and the Python 3.7 featur