Re: [Python-ideas] socket module: plain stuples vs named tuples

2017-06-20 Thread Victor Stinner
2017-06-20 4:05 GMT+02:00 INADA Naoki : > Namedtuple in Python make startup time slow. > So I'm very conservative to convert tuple to namedtuple in Python. > INADA Naoki While we are talking about startup time, I would be curious of seeing the overhead (python startup time, when importing socket

Re: [Python-ideas] Restore the __members__ behavior to python3 for C extension writers

2017-06-20 Thread Barry Scott
> On 19 Jun 2017, at 13:56, Nick Coghlan wrote: > > On 19 June 2017 at 04:10, Barry Scott wrote: >> The code does this: >> >>Py::Object getattro( const Py::String &name_ ) >>{ >>std::string name( name_.as_std_string( "utf-8" ) ); >> >>if( name == "value" ) >>{

Re: [Python-ideas] Restore the __members__ behavior to python3 for C extension writers

2017-06-20 Thread Barry Scott
> On 19 Jun 2017, at 13:56, Nick Coghlan wrote: > > On 19 June 2017 at 04:10, Barry Scott wrote: >> The code does this: >> >>Py::Object getattro( const Py::String &name_ ) >>{ >>std::string name( name_.as_std_string( "utf-8" ) ); >> >>if( name == "value" ) >>{