Re: Converting program from shell to tkinter

2020-03-22 Thread Christian Gollwitzer
Hi Randall, I assume you are asking about the Python programming language (tkinter??). This group discusses the Tcl programming language, from which Tk originates. See 2 answers below. Xpost and Fup2 c.l.p Christian Am 22.03.20 um 00:59 schrieb Randall Wert: I am trying to enhance a shell p

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Frank Millman
On 2020-03-21 8:04 PM, Barry Scott wrote: On 21 Mar 2020, at 13:43, Frank Millman wrote: Hi all I have a strange intermittent bug. The role-players - asyncio on Python 3.8 running on Windows 10 Microsoft Edge running as a browser on the same machine The bug does not occur with Pyt

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Chris Angelico
On Sun, Mar 22, 2020 at 6:58 PM Frank Millman wrote: > > I'd look at the network traffic with wireshark to see if there is anything > > different between edge and the other browsers. > > > > You are leading me into deep waters here :-) I have never used > Wireshark before. I have now downloaded

Re: Python 3.8.2 on MacOSX Sierra?

2020-03-22 Thread Barry Scott
> On 22 Mar 2020, at 04:47, Greg Ewing wrote: > > I'm trying to compile a framework build of Python 3.8.2 on > MacOSX 10.12.6 (Sierra). I guess you are using an old Mac that will not update to something newer? > I'm getting: > > ./Modules/posixmodule.c:4696:12: warning: 'utimensat' is only

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Barry Scott
> On 22 Mar 2020, at 07:56, Frank Millman wrote: > > On 2020-03-21 8:04 PM, Barry Scott wrote: >>> On 21 Mar 2020, at 13:43, Frank Millman wrote: >>> >>> Hi all >>> >>> I have a strange intermittent bug. >>> >>> The role-players - >>>asyncio on Python 3.8 running on Windows 10 >>>M

Re: Python 3.8.2 on MacOSX Sierra?

2020-03-22 Thread Greg Ewing
On 22/03/20 9:55 pm, Barry Scott wrote: I guess you are using an old Mac that will not update to something newer? It's more that I don't *want* to update to something newer if I don't have to. Also it seems very un-python-like to depend on a specific OS version like this, which leads me to beli

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Frank Millman
On 2020-03-22 10:45 AM, Chris Angelico wrote: On Sun, Mar 22, 2020 at 6:58 PM Frank Millman wrote: I'd look at the network traffic with wireshark to see if there is anything different between edge and the other browsers. You are leading me into deep waters here :-) I have never used Wiresh

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Frank Millman
On 2020-03-22 11:00 AM, Barry Scott wrote: On 22 Mar 2020, at 07:56, Frank Millman wrote: On 2020-03-21 8:04 PM, Barry Scott wrote: I'd look at the network traffic with wireshark to see if there is anything different between edge and the other browsers. You are leading me into deep water

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Chris Angelico
On Sun, Mar 22, 2020 at 8:30 PM Frank Millman wrote: > > On 2020-03-22 10:45 AM, Chris Angelico wrote: > > On Sun, Mar 22, 2020 at 6:58 PM Frank Millman wrote: > >>> I'd look at the network traffic with wireshark to see if there is > >>> anything different between edge and the other browsers. >

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Chris Angelico
On Sun, Mar 22, 2020 at 8:42 PM Frank Millman wrote: > > On 2020-03-22 11:00 AM, Barry Scott wrote: > > > > > >> On 22 Mar 2020, at 07:56, Frank Millman wrote: > >> > >> On 2020-03-21 8:04 PM, Barry Scott wrote: > >>> I'd look at the network traffic with wireshark to see if there is > >>> anythi

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Chris Angelico
On Sun, Mar 22, 2020 at 12:45 AM Frank Millman wrote: > > Hi all > > I have a strange intermittent bug. > > The role-players - > asyncio on Python 3.8 running on Windows 10 > Microsoft Edge running as a browser on the same machine > > The bug does not occur with Python 3.7. > It does not

Re: Python 3.8.2 on MacOSX Sierra?

2020-03-22 Thread Greg Ewing
On 22/03/20 10:20 pm, Greg Ewing wrote: I'm going to try again with XCode 8, which purportedly comes with a 10.12 SDK, and see if that fixes it. It does. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Kouli
The RST from Python is probably caused here by HTTP 1.1 server closing TCP connection without signalling "Connection: Close" in response headers: a fast HTTP client will send another HTTP request before its TCP stack detects the connection is being closed - and packets containing this new requests

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Frank Millman
On 2020-03-22 1:01 PM, Chris Angelico wrote: On Sun, Mar 22, 2020 at 12:45 AM Frank Millman wrote: Hi all I have a strange intermittent bug. The role-players - asyncio on Python 3.8 running on Windows 10 Microsoft Edge running as a browser on the same machine The bug does not oc

How to copy paragraphs (with number formatting) and images from Words (.docx) and paste into Excel (.xlsx) using Python

2020-03-22 Thread A S
I have contract clauses in Words (.docx) format that needs to be frequently copy and pasted into Excel (.xlsx) to be sent to the third party. The clauses are often updated hence there's always a need to copy and paste these clauses over. I only need to copy and paste all the paragraphs and image

How to incorporate environment from with python.

2020-03-22 Thread Antoon Pardon
I think I can best explain what I want by showing two bash sessions: Session 1) -- $ /opt/csw/bin/python Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import cx_Oracle Traceback (most recent call l

Re: How to incorporate environment from with python.

2020-03-22 Thread Peter Otten
Antoon Pardon wrote: > I think I can best explain what I want by showing two bash sessions: > Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 > ImportError: No module named cx_Oracle > Python 2.6.7 (r267:88850, Feb 10 2012, 01:39:24) [C] on sunos5 import cx_Oracle > As

Re: How to incorporate environment from with python.

2020-03-22 Thread DL Neil via Python-list
On 23/03/20 4:04 AM, Antoon Pardon wrote: I think I can best explain what I want by showing two bash sessions: Session 1) -- $ /opt/csw/bin/python Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. imp

Re: How to incorporate environment from with python.

2020-03-22 Thread Peter J. Holzer
On 2020-03-22 16:04:59 +0100, Antoon Pardon wrote: > $ /opt/csw/bin/python > Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 > Type "help", "copyright", "credits" or "license" for more information. Hmm. Solaris > As you can see the import works in the second session because I > had

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Barry Scott
> On 22 Mar 2020, at 11:59, Frank Millman wrote: > > On 2020-03-22 1:01 PM, Chris Angelico wrote: >> On Sun, Mar 22, 2020 at 12:45 AM Frank Millman wrote: >>> >>> Hi all >>> >>> I have a strange intermittent bug. >>> >>> The role-players - >>> asyncio on Python 3.8 running on Windows

Re: Intermittent bug with asyncio and MS Edge

2020-03-22 Thread Barry Scott
> On 22 Mar 2020, at 09:41, Frank Millman wrote: > > On 2020-03-22 11:00 AM, Barry Scott wrote: >>> On 22 Mar 2020, at 07:56, Frank Millman wrote: >>> >>> On 2020-03-21 8:04 PM, Barry Scott wrote: I'd look at the network traffic with wireshark to see if there is anything different

Re: How to incorporate environment from with python.

2020-03-22 Thread Chris Angelico
On Mon, Mar 23, 2020 at 3:24 AM Peter Otten <__pete...@web.de> wrote: > > Antoon Pardon wrote: > > > I think I can best explain what I want by showing two bash sessions: > > > Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 > > ImportError: No module named cx_Oracle > > > Python 2.6.

Re: How to copy paragraphs (with number formatting) and images from Words (.docx) and paste into Excel (.xlsx) using Python

2020-03-22 Thread Beverly Pope
> On Mar 22, 2020, at 9:47 AM, A S wrote: > > I can't seem to paste pictures into this discussion so please see both my > current and desired Excel output here: > > https://stackoverflow.com/questions/60800494/how-to-copy-paragraphs-with-number-formatting-and-images-from-words-docx-an > >

Confusing textwrap parameters, and request for RE help

2020-03-22 Thread Chris Angelico
When using textwrap.fill() or friends, setting break_long_words=False without also setting break_on_hyphens=False has the very strange behaviour that a long hyphenated word will still be wrapped. I discovered this as a very surprising result when trying to wrap a paragraph that contained a URL, and

Re: php to python code converter

2020-03-22 Thread bobimapexa
On Friday, May 8, 2009 at 1:38:25 PM UTC+3, bvidinli wrote: > if anybody needs: > http://code.google.com/p/phppython/ hi -- https://mail.python.org/mailman/listinfo/python-list

Like c enumeration in python3

2020-03-22 Thread Paulo da Silva
Hi! Suppose a class C. I want something like this: class C: KA=0 KB=1 KC=1 ... Kn=n def __init__ ... ... These constants come from an enum in a .h (header of C file). They are many and may change from time to time. Is there a way

Re: Like c enumeration in python3 [ERRATA]

2020-03-22 Thread Paulo da Silva
Às 02:18 de 23/03/20, Paulo da Silva escreveu: > Hi! > > Suppose a class C. > I want something like this: > > class C: > KA=0 > KB=1 KC=2 > ... > Kn=n > > def __init__ ... > ... > > > These constants come from an enum in a .h (header of C fil

Re: Like c enumeration in python3 [ERRATA]

2020-03-22 Thread DL Neil via Python-list
On 23/03/20 3:32 PM, Paulo da Silva wrote: Às 02:18 de 23/03/20, Paulo da Silva escreveu: Hi! Olá, Suppose a class C. I want something like this: class C: KA=0 KB=1 KC=2 ... Kn=n def __init__ ... ... These constants come

Re: How to copy paragraphs (with number formatting) and images from Words (.docx) and paste into Excel (.xlsx) using Python

2020-03-22 Thread A S
On Monday, 23 March 2020 01:58:38 UTC+8, Beverly Pope wrote: > > On Mar 22, 2020, at 9:47 AM, A S wrote: > > > > I can't seem to paste pictures into this discussion so please see both my > > current and desired Excel output here: > > > > https://stackoverflow.com/questions/60800494/how-to-copy

Re: How does the super type present itself and do lookups?

2020-03-22 Thread Adam Preble
On Thursday, March 19, 2020 at 5:02:46 PM UTC-5, Greg Ewing wrote: > On 11/03/20 7:02 am, Adam Preble wrote: > > Is this foo attribute being looked up in an override of __getattr__, > > __getattribute__, or is it a reserved slot that's internally doing this? > > That's what I'm trying to figure o