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

2019-06-01 Thread Cameron Simpson
On 02Jun2019 07:14, Markus Elfring wrote: "Handled transparently" means that an ipv6 server can handle connections from ipv4 clients without doing anything special. It is nice if this conversion is working. They just appear to come from a specific IPv6 address range. I got expected connec

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

2019-06-01 Thread Markus Elfring
> "Handled transparently" means that an ipv6 server can handle connections > from ipv4 clients without doing anything special. It is nice if this conversion is working. > They just appear to come from a specific IPv6 address range. I got expected connections by my small script “socket-send_test

Re: tkinter.tix "Control" widget don't work with StringVar?

2019-06-01 Thread jfong
MRAB於 2019年6月2日星期日 UTC+8上午10時18分36秒寫道: > On 2019-06-02 02:28, jf...@ms4.hinet.net wrote: > > Below is a simplified version of the sample script downloaded from its > > package. > > When run it, the entry field display '0' instead of 'P&W'. > > PS. I am using Python 3.4.4, Windows 32bit > > > > --

Re: tkinter.tix "Control" widget don't work with StringVar?

2019-06-01 Thread MRAB
On 2019-06-02 02:28, jf...@ms4.hinet.net wrote: Below is a simplified version of the sample script downloaded from its package. When run it, the entry field display '0' instead of 'P&W'. PS. I am using Python 3.4.4, Windows 32bit test0.py 1 from tkinter import tix as Tix 2 3 root =

Re: tkinter.tix "Control" widget don't work with StringVar?

2019-06-01 Thread Terry Reedy
On 6/1/2019 9:28 PM, jf...@ms4.hinet.net wrote: Below is a simplified version of the sample script downloaded from its package. When run it, the entry field display '0' instead of 'P&W'. PS. I am using Python 3.4.4, Windows 32bit test0.py 1 from tkinter import tix as Tix 2 3 root =

tkinter.tix "Control" widget don't work with StringVar?

2019-06-01 Thread jfong
Below is a simplified version of the sample script downloaded from its package. When run it, the entry field display '0' instead of 'P&W'. PS. I am using Python 3.4.4, Windows 32bit test0.py 1 from tkinter import tix as Tix 2 3 root = Tix.Tk() 4 5 demo_maker = Tix.StringVar() 6 dem

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

2019-06-01 Thread DL Neil
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[k]))+','+ \ str("{:9.7f}".format(AExt[k,0]))+','+str

Re: Checking refusal of a network connection

2019-06-01 Thread Cameron Simpson
On 01Jun2019 12:57, Dennis Lee Bieber wrote: On Sat, 1 Jun 2019 15:33:43 +0200, Markus Elfring declaimed the following: I don't know "strace" (I'd likely be running WireShark to capture all traffic for investigation). Sure, but that means you need to winnow it from any other traffic.

Re: Checking refusal of a network connection

2019-06-01 Thread Peter J. Holzer
On 2019-06-01 20:44:29 +0200, Markus Elfring wrote: > > Which specific information in that man page contradicts what I wrote? > > We can agree that the mentioned IP addresses are distinct. > But the corresponding functionality should be equivalent. > > > > If you think of > > > > | IPv4 connecti

Socket.py SSM support

2019-06-01 Thread Max Franke
Hi, as of right now there appears to be a lack of setsockoptions required to enable SSM, MCAST_JOIN_SOURCE_GROUP or something a kin to that in particular. Is there currently any effort to add those options or any other workaround to make SSM work in python natively? Best regards Max -- https

Re: Getter is not returning the data it should be

2019-06-01 Thread DL Neil
Bonjour Barb, Please allow me to answer your question, somewhat, backwards:- There is a principle in program design known as "separation of concerns". If you look at the class SimpleGrid and consider that the bulk of its code lies after the first comment, how would you summarise (in English)

Re: Checking refusal of a network connection

2019-06-01 Thread Markus Elfring
> It looks like the service isn't listening at the time the so.connect is > called. * I get an other impression from the programs “/usr/bin/netstat” and “/usr/bin/ss”. * The data transmission seems to work also for my small script “socket-send_test_data1.tcl” (even when the identification “:

Re: Handling an connection error with Twython

2019-06-01 Thread Cecil Westerhof
"Peter J. Holzer" writes: > On 2019-05-25 13:46:40 +0200, Cecil Westerhof wrote: >> Just changing the while loop to a for loop did not make sense to me, >> but this does. I now have: >> max_tries = 5 >> for current_try in range(1, max_tries): >> try: >> posted = twitte

Getter is not returning the data it should be

2019-06-01 Thread Barb Cr33k
I have a parent Class that has a setter that returns queryFiltre value and a getter that is supposed to pass the queryFiltre value to my child Class. queryFiltre Should return an SQL query like "SELECT * FROM Report WHERE GA_RPM > 0 and CAMPAIGN LIKE '%TT%'... ". The print() in the setter retur

Re: Checking refusal of a network connection

2019-06-01 Thread Markus Elfring
> Which specific information in that man page contradicts what I wrote? We can agree that the mentioned IP addresses are distinct. But the corresponding functionality should be equivalent. > If you think of > > | IPv4 connections can be handled with the v6 API by using the > | v4-mapped-on-v6 ad

Re: Checking refusal of a network connection

2019-06-01 Thread Peter J. Holzer
On 2019-06-01 20:22:39 +0200, Markus Elfring wrote: > >> I would expect that the IPv4 address from such a connection attempt > >> would be automatically converted to a IPv6 loopback address. > > > > You haven't said which OS you are using, but as far as I know this > > expectation will be frustrate

Re: Checking refusal of a network connection

2019-06-01 Thread Markus Elfring
>> I would expect that the IPv4 address from such a connection attempt >> would be automatically converted to a IPv6 loopback address. > > You haven't said which OS you are using, but as far as I know this > expectation will be frustrated at least on Linux: There ::1 and > 127.0.0.1 are distinct ad

Re: Handling an connection error with Twython

2019-06-01 Thread Peter J. Holzer
On 2019-05-25 13:46:40 +0200, Cecil Westerhof wrote: > Just changing the while loop to a for loop did not make sense to me, > but this does. I now have: > max_tries = 5 > for current_try in range(1, max_tries): > try: > posted = twitter.update_status(status = message, >

Re: PEP 594 cgi & cgitb removal

2019-06-01 Thread Peter J. Holzer
On 2019-05-25 23:45:06 +0200, Roel Schroeven wrote: > Jon Ribbens via Python-list schreef op 25/05/2019 om 21:00: > > On 2019-05-25, Michael Torrie wrote: > > > On 05/24/2019 04:27 AM, Jon Ribbens via Python-list wrote: > > > > Sorry, in what sense do you mean "Serverless is CGI"? > > > > > > > >

Re: Checking refusal of a network connection

2019-06-01 Thread Michael Torrie
On 06/01/2019 11:15 AM, Markus Elfring wrote: >>> connect(3, {sa_family=AF_INET, sin_port=htons(37351), >>> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused) >> >> Without seeing the code, I'd be suspicious of that difference. > > I would expect that the IPv4 addre

Re: Checking refusal of a network connection

2019-06-01 Thread Peter J. Holzer
On 2019-06-01 19:15:28 +0200, Markus Elfring wrote: > >> connect(3, {sa_family=AF_INET, sin_port=htons(37351), > >> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection > >> refused) > > Without seeing the code, I'd be suspicious of that difference. > > I would expect that the

Re: Checking refusal of a network connection

2019-06-01 Thread Markus Elfring
>> connect(3, {sa_family=AF_INET, sin_port=htons(37351), >> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused) > > Without seeing the code, I'd be suspicious of that difference. I would expect that the IPv4 address from such a connection attempt would be automatica

Re: Checking refusal of a network connection

2019-06-01 Thread Markus Elfring
> Also, it can be very useful to strace the client process, eg: Do you find the following background information more helpful for the desired clarification of unexpected software behaviour? elfring@Sonne:~/Projekte/Python> LANG=C strace -e trace=network /usr/bin/python3 socket-send_json_data.py