RE: Improvement to imports, what is a better way ?

2023-01-19 Thread avi.e.gross
I stand corrected. Thomas is (mostly) writing valid Python if you use the module that looks (deliberately) like the R implementation. The use of "+" in two contexts such as when not needed to concatenate strings, reminded me too much of R. Either way, this thread has moved on from any original que

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread Thomas Passin
On 1/19/2023 7:33 PM, avi.e.gr...@gmail.com wrote: Just FYI, the example Dave supplied was not using python code and using a rather strange re-definition in the R language package he was using. Or maybe not. Anyone not interested, skip the rest. First, R does not use indentation for almost anyt

RE: Improvement to imports, what is a better way ?

2023-01-19 Thread avi.e.gross
Just FYI, the example Dave supplied was not using python code and using a rather strange re-definition in the R language package he was using. Or maybe not. Anyone not interested, skip the rest. First, R does not use indentation for almost anything. So you can break one long line up into many lin

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread Cameron Simpson
On 19Jan2023 07:34, Dan Kolis wrote: On Thursday, January 19, 2023 at 12:09:02 AM UTC-5, cameron wrote: I know this is vague. Once you find its stalling in a particular function (if it is) you may be able to run that function directly. Also, a print() at the top abd bottom/return of the stallin

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread Thomas Passin
On 1/19/2023 1:30 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2023-01-19 at 12:59:21 -0500, Thomas Passin wrote: Well, it's an art, not a science [...] +1 # Create a plot g2 = ( ggplot(df2, aes('Days Since Jan 22', # Comments can clarify these params + geom_point

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread Roel Schroeven
2qdxy4rzwzuui...@potatochowder.com schreef op 19/01/2023 om 19:30: > The PEP-8 rules are good, but they can't cover all cases perfectly. Some the PEP-8 rules are debatable. Regardless, they can't cover all cases perfectly. (IOW, we agree on the bit that's relevant to this thread.) PEP 8 even

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread 2QdxY4RzWzUUiLuE
On 2023-01-19 at 12:59:21 -0500, Thomas Passin wrote: > Well, it's an art, not a science [...] +1 > # Create a plot > g2 = ( > ggplot(df2, > aes('Days Since Jan 22', # Comments can clarify these params > + geom_point(size=.1, color='blue') # size, color params optional >

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Thomas Passin
On 1/19/2023 10:21 AM, Dan Kolis wrote: Hello ! Works fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene (https://github.com/plasma-umass/scalene) shows it using 9 MB of memory. I ran your test program here and it generates 25 windows on my machine, and I can click "run" at l

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread Thomas Passin
On 1/19/2023 11:55 AM, Roel Schroeven wrote: Op 19/01/2023 om 11:32 schreef Stefan Ram: dn writes: >The longer an identifier, the more it 'pushes' code over to the right or >to expand over multiple screen-lines. Some thoughts on this are behind >PEP-008 philosophies, eg line-limit.    Raymo

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread Roel Schroeven
Op 19/01/2023 om 11:32 schreef Stefan Ram: dn writes: >The longer an identifier, the more it 'pushes' code over to the right or >to expand over multiple screen-lines. Some thoughts on this are behind >PEP-008 philosophies, eg line-limit. Raymond Hettinger (transcribed, shortened and parti

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-19 Thread Dan Kolis
Editing text intended primarily for machine reading that involves metadata and lower level facts is a horror show. I sort of worked for a company years ago and a smart ass suggested I was making labor for myself by doing changes to a scripting language for db users, maybe a few hours a week. He

Re: Improvement to imports, what is a better way ?

2023-01-19 Thread Dan Kolis
On Thursday, January 19, 2023 at 12:09:02 AM UTC-5, cameron wrote: > I know this is vague. Once you find its stalling in a particular > function (if it is) you may be able to run that function directly. Also, > a print() at the top abd bottom/return of the stalling function. And so > on. Dan

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Dan Kolis
Hello ! > Works fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene > (https://github.com/plasma-umass/scalene) shows it using 9 MB of memory. > I ran your test program here and it generates 25 windows on my machine, > and I can click "run" at least half a dozen times. I tried cl

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Thomas Passin
Works through 20 presses of the "go" button on a Linux Mint VM. Because of limited RAM allocated for the VM, after some iterations the program slowed down because the VM had to start using swap memory. But there did not seem to be any glitches or failures. Python 3.9.5 Linux Mint 20 Ulyana /

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Thomas Passin
Works fine through 10 "go" button presses on my Windows 10 machine. You might want to run pylint and pyflakes on it On 1/19/2023 7:34 AM, Weatherby,Gerard wrote: Works fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene (https://github.com/plasma-umass/scalene) shows it using 9

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Weatherby,Gerard
Works fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene (https://github.com/plasma-umass/scalene) shows it using 9 MB of memory. From: Python-list on behalf of Michael Torrie Date: Wednesday, January 18, 2023 at 8:58 PM To: python-list@python.org Subject: Re: A natural magnet