Re: Intermittent bug with asyncio and MS Edge

2020-03-24 Thread Chris Angelico
On Wed, Mar 25, 2020 at 5:14 PM Frank Millman wrote: > My guess is that 3.7 is slower to send the files, so Edge starts up all > 20 connections before it has finished receiving the first one, whereas > with 3.8, by the time it has opened a few connections the first file has > been received, so it

Re: Intermittent bug with asyncio and MS Edge

2020-03-24 Thread Frank Millman
On 2020-03-24 8:39 PM, Barry Scott wrote: On 24 Mar 2020, at 11:54, Frank Millman wrote: I decided to concentrate on using Wireshark to detect the difference between a Python3.7 session and a Python3.8 session. Already I can see some differences. There is only one version of my program. I

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

2020-03-24 Thread Greg Ewing
On 23/03/20 7:40 pm, Adam Preble wrote: I don't doubt what you got from the source, but I am trying to figure out how I could have inferred that from the code I was trying. It looks like child_instance.__getattribute__ == child_instance.super().__getattribute__. Don't feel too bad, it took me a

Re: yield from

2020-03-24 Thread Chris Angelico
On Wed, Mar 25, 2020 at 10:08 AM Dan Stromberg wrote: > > Some time ago, when I first heard about yield from, it wasn't faster than a > for loop yielding. > > Has that improved? It's not about speed. It's about correctness, and the way it delegates everything, not just "for x in iter: yield x". H

yield from

2020-03-24 Thread Dan Stromberg
Some time ago, when I first heard about yield from, it wasn't faster than a for loop yielding. Has that improved? -- https://mail.python.org/mailman/listinfo/python-list

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread Chris Angelico
On Wed, Mar 25, 2020 at 9:37 AM DL Neil via Python-list wrote: > > As you observe, the problem with terminal emulators is the extent of > their emulation and the degree of adoption of their 'extended features'! > > My concern grows because of the need (I assume) for the URL to be > 'clickable', no

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread DL Neil via Python-list
On 25/03/20 10:30 AM, Chris Angelico wrote: On Wed, Mar 25, 2020 at 8:04 AM DL Neil via Python-list wrote: On 23/03/20 8:00 AM, Chris Angelico wrote: When using textwrap.fill() or friends, setting break_long_words=False without also setting break_on_hyphens=False has the very strange behaviou

Re: How to create an Excel app that runs Python?

2020-03-24 Thread Grant Edwards
On 2020-03-24, oliver wrote: > Use the win32com library to interact with Excel via COM. Huh? I thought that the users have no way of running a local Python app. -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread Chris Angelico
On Wed, Mar 25, 2020 at 8:04 AM DL Neil via Python-list wrote: > > On 23/03/20 8:00 AM, Chris Angelico wrote: > > 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 wil

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread DL Neil via Python-list
On 23/03/20 8:00 AM, Chris Angelico wrote: 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

Re: Intermittent bug with asyncio and MS Edge

2020-03-24 Thread Barry Scott
> On 24 Mar 2020, at 11:54, Frank Millman wrote: > > On 2020-03-23 1:56 PM, Frank Millman wrote: >> On 2020-03-23 12:57 PM, Chris Angelico wrote: >>> On Mon, Mar 23, 2020 at 8:03 PM Frank Millman wrote: On 2020-03-22 12:11 PM, Chris Angelico wrote: > On Sun, Mar 22, 2020 at 8:3

Re: How to create an Excel app that runs Python?

2020-03-24 Thread Paolo G. Cantore
On Tue, Mar 24, 2020, 4:45 PM wrote: I have the following scenario: I have created lots of python files that I use to calculate a Cashflow model, when I run these files I get a beautiful pandas DataFrame that contains my final model. My mission is to show this table to the rest of the compan

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread Dieter Maurer
Karsten Hilbert wrote at 2020-3-24 10:34 +0100: >On Tue, Mar 24, 2020 at 08:20:32PM +1100, Chris Angelico wrote: > ... >> I'm trying to figure out a way to handle URLs, and that's something >> that has its own governing standard, so the meanings of characters >> like hyphens is well defined. > >Agr

Re: How to create an Excel app that runs Python?

2020-03-24 Thread oliver
Use the win32com library to interact with Excel via COM. Although the learning curve is a little steeper it's not too bad and works great. I used this technique to control ARENA with Python through its COM API to run a whack of simulations (1000-1), then used python to gather the results, and u

Re: How to create an Excel app that runs Python?

2020-03-24 Thread Souvik Dutta
You might try pyqt5 if you want to make a custom GUI and also if you have tha time to do so. On Tue, Mar 24, 2020, 4:45 PM wrote: > I have the following scenario: > > I have created lots of python files that I use to calculate a Cashflow > model, when I run these files I get a beautiful pandas D

Re: Intermittent bug with asyncio and MS Edge

2020-03-24 Thread Frank Millman
On 2020-03-24 1:54 PM, Frank Millman wrote: On 2020-03-23 1:56 PM, Frank Millman wrote: I have one frustration with Wireshark. I will mention it in case anyone has a solution. I can see that Edge opens multiple connections. I am trying to track the activity on each connection separately. I c

Re: Intermittent bug with asyncio and MS Edge

2020-03-24 Thread Frank Millman
On 2020-03-23 1:56 PM, Frank Millman wrote: On 2020-03-23 12:57 PM, Chris Angelico wrote: On Mon, Mar 23, 2020 at 8:03 PM Frank Millman wrote: On 2020-03-22 12:11 PM, Chris Angelico wrote: On Sun, Mar 22, 2020 at 8:30 PM Frank Millman wrote: On 2020-03-22 10:45 AM, Chris Angelico wrote:

How to create an Excel app that runs Python?

2020-03-24 Thread farayao . ds
I have the following scenario: I have created lots of python files that I use to calculate a Cashflow model, when I run these files I get a beautiful pandas DataFrame that contains my final model. My mission is to show this table to the rest of the company in a friendly format ("Excel") and the

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread Karsten Hilbert
On Tue, Mar 24, 2020 at 08:20:32PM +1100, Chris Angelico wrote: > > > Well um... yes. I think we know that hyphens do indicate word-split > > > points. That's not really in question. > > > > I know you don't mean it like that, but it sounds equally > > future-proof like "all text is ASCII". > > Su

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread Chris Angelico
On Tue, Mar 24, 2020 at 8:19 PM Karsten Hilbert wrote: > > On Tue, Mar 24, 2020 at 08:08:31PM +1100, Chris Angelico wrote: > > > Well um... yes. I think we know that hyphens do indicate word-split > > points. That's not really in question. > > I know you don't mean it like that, but it sounds equa

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread Karsten Hilbert
On Tue, Mar 24, 2020 at 08:08:31PM +1100, Chris Angelico wrote: > Well um... yes. I think we know that hyphens do indicate word-split > points. That's not really in question. I know you don't mean it like that, but it sounds equally future-proof like "all text is ASCII". Karsten -- GPG 40BE 5B0

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread Chris Angelico
On Tue, Mar 24, 2020 at 4:36 AM Dieter Maurer wrote: > > Chris Angelico wrote at 2020-3-23 06:00 +1100: > >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 b