Re: Questions about the IO modules and C-api

2019-06-02 Thread Thomas Jollans
On 03/06/2019 04:02, Windson Yang wrote: > I have some questions about the IO modules. > > 1. My script: > > f = open('myfile, 'a+b') > f.close() > > I added a printf statement at the beginning of _io_open_impl >

Questions about the IO modules and C-api

2019-06-02 Thread Windson Yang
I have some questions about the IO modules. 1. My script: f = open('myfile, 'a+b') f.close() I added a printf statement at the beginning of _io_open_impl , the output is: _io_open _io_open _io_open

Re: Checking support for network connections from Python client to IPv6 server

2019-06-02 Thread Cameron Simpson
On 02Jun2019 17:49, Chris Angelico wrote: On Sun, Jun 2, 2019 at 5:17 PM Markus Elfring wrote: >> How would like to explain the error message “socket.gaierror: >> [Errno -9] >> Address family for hostname not supported” on my Linux test system then? > > Can you supply a tiny standalone piece

Re: Checking support for network connections from Python client to IPv6 server

2019-06-02 Thread Chris Angelico
On Sun, Jun 2, 2019 at 5:17 PM Markus Elfring wrote: > > >> How would like to explain the error message “socket.gaierror: [Errno -9] > >> Address family for hostname not supported” on my Linux test system then? > > > > Can you supply a tiny standalone piece of code demonstrating this error > > pl

Re: Checking support for network connections from Python client to IPv6 server

2019-06-02 Thread Markus Elfring
>> How would like to explain the error message “socket.gaierror: [Errno -9] >> Address family for hostname not supported” on my Linux test system then? > > Can you supply a tiny standalone piece of code demonstrating this error > please? The following script part would be relevant. … def send_da

Re: Checking support for network connections from Python client to IPv6 server

2019-06-02 Thread Markus Elfring
>> How would like to explain the error message “socket.gaierror: [Errno -9] >> Address family for hostname not supported” on my Linux test system then? > > Can you supply a tiny standalone piece of code demonstrating this error > please? The following script part would be relevant. … def send_da

Re: How to concatenate strings with iteration in a loop?

2019-06-02 Thread Peter Otten
DL Neil wrote: > On 21/05/19 8:40 PM, Paul Moore wrote: >> On Tue, 21 May 2019 at 09:25, Frank Millman wrote: >>> >>> On 2019-05-21 9:42 AM, Madhavan Bomidi wrote: Hi, I need to create an array as below: tempStr = year+','+mon+','+day+','+str("{:6.4f}".format(UTCHrs[