New Fast Python Memory Profiler

2023-01-19 Thread Thomas Passin
Maybe of interest to some devs, Scalene, a newish Python memory profiler, was mentioned in a message on the *python-list* discussion list. Scalene >From the GitHub readme: "Scalene is a high-performance CPU, GPU *and* memory profiler for Python that

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

2023-01-18 Thread Thomas Passin
On 1/18/2023 11:46 PM, Thomas Passin wrote: On 1/18/2023 8:56 PM, Michael Torrie wrote: On 1/18/23 18:01, Dan Kolis wrote: Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under Ubuntu starts it up again. Click go rewrites al the fonts the thing can find in a few windows

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

2023-01-18 Thread Thomas Passin
On 1/18/2023 8:56 PM, Michael Torrie wrote: On 1/18/23 18:01, Dan Kolis wrote: Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under Ubuntu starts it up again. Click go rewrites al the fonts the thing can find in a few windows Repeated. Not sure what you mean by

Re: Please help me edit Leo's wikipedia page

2023-01-18 Thread Thomas Passin
I'd be willing to contribute some funds if need be. BTW, the Wikipedia entry now reads in part: " The GUI uses the Qt toolkit; the syntax-aware editor is based on Scintilla ." In what way is the editor now based on Scintilla? On Wednesday, January 18, 2023 at 7:20:48 AM UTC-5 Edward K. Ream

Re: IDLE "Codepage" Switching?

2023-01-18 Thread Thomas Passin
orderings%20are%20possible).coding-in-vs-code-on-ubuntu-leading-to-unicode-error/62652695#62652695 Stephen Tucker. On Wed, Jan 18, 2023 at 9:41 AM Peter J. Holzer wrote: On 2023-01-17 22:58:53 -0500, Thomas Passin wrote: On 1/17/2023 8:46 PM, rbowman wrote: On Tue, 17 Jan 2023 12:47:29 +

Re: IDLE "Codepage" Switching?

2023-01-17 Thread Thomas Passin
On 1/17/2023 8:46 PM, rbowman wrote: On Tue, 17 Jan 2023 12:47:29 +, Stephen Tucker wrote: 2. Does the IDLE in Python 3.x behave the same way? fwiw Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license()" for more information.

Re: Curious to know if any Leonistas tried out ChatGPT?

2023-01-17 Thread Thomas Passin
I haven't been able to open the chatGPT page in two different browsers: ERR_TOO_MANY_REDIRECTS How are others managing to do it? I hope not needing to use AI... -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and

Re: Curious to know if any Leonistas tried out ChatGPT?

2023-01-17 Thread Thomas Passin
Now try it again with the beautifier ( PR #3057 ) you just worked on... On Tuesday, January 17, 2023 at 6:25:11 AM UTC-5 Edward K. Ream wrote: > On Monday, January 16, 2023 at 1:51:34 AM UTC-6 Edward K. Ream wrote: > > I tried the following

Re: Please help me edit Leo's wikipedia page

2023-01-16 Thread Thomas Passin
If you had, it would have been pixelated to hell and gone. On Monday, January 16, 2023 at 6:58:05 PM UTC-5 Edward K. Ream wrote: > On Mon, Jan 16, 2023 at 4:08 PM jkn wrote: > > BTW if it turns out it's a matter of $10 i am happy to pay for it as a >> thanks for Leo ;-) >> > > Thanks! > > also

Re: Fast lookup of bulky "table"

2023-01-16 Thread Thomas Passin
On 1/16/2023 11:56 AM, rbowman wrote: On 16 Jan 2023 15:14:06 GMT, Stefan Ram wrote: When none of those reasons matter, one can use dictionaries in Python as well. And then what Chandler Carruth showed us applies: I am missing something. Where is the data in your dictionary coming

Re: Fast lookup of bulky "table"

2023-01-16 Thread Thomas Passin
On 1/16/2023 10:14 AM, Stefan Ram wrote: However, operating systems and databases also try to cache information in main memory that is estimated to be accessed often. Yes, and you can only know by testing, when that's possible. Also, if you know that you have the same queries repeated

Re: Please help me edit Leo's wikipedia page

2023-01-15 Thread Thomas Passin
Dreamstime has a page on license terms, and it has this section that seems as if it might apply - "Limited Royalty Free Licenses (RF-LL) for using Media downloaded within the Free section of the website Dreamstime offers a free section, fully searchable and constantly updated. Its use may be

Re: Fast lookup of bulky "table"

2023-01-15 Thread Thomas Passin
On 1/15/2023 4:49 PM, Stefan Ram wrote: dn writes: Some programmers don't realise that SQL can also be used for calculations, eg the eponymous COUNT(), which saves (CPU-time and coding-effort) over post-processing in Python. Yes, I second that! Sometimes, people only re-invent things

Re: Fast lookup of bulky "table"

2023-01-15 Thread Thomas Passin
On 1/15/2023 2:39 PM, Peter J. Holzer wrote: On 2023-01-15 10:38:22 -0500, Thomas Passin wrote: On 1/15/2023 6:14 AM, Peter J. Holzer wrote: On 2023-01-14 23:26:27 -0500, Dino wrote: Anyway, my Flask service initializes by loading a big "table" of 100k rows and 40 columns or

Re: Fast lookup of bulky "table"

2023-01-15 Thread Thomas Passin
On 1/15/2023 6:14 AM, Peter J. Holzer wrote: On 2023-01-14 23:26:27 -0500, Dino wrote: Hello, I have built a PoC service in Python Flask for my work, and - now that the point is made - I need to make it a little more performant (to be honest, chances are that someone else will pick up from

Re: Viewrendered3 plugin may not render nodes for some linux distros

2023-01-12 Thread Thomas Passin
6.4.0 PyQt6-WebEngine And possibly PyQt6-WebEngine-Qt6 if it didn't get installed by the previous packages. On Thursday, January 12, 2023 at 11:27:09 PM UTC-5 Thomas Passin wrote: > I have been spinning up several new Linux virtual machines, and I > discovered that VR3

Viewrendered3 plugin may not render nodes for some linux distros

2023-01-12 Thread Thomas Passin
I have been spinning up several new Linux virtual machines, and I discovered that VR3 isn't rendering visibly. It's still working, since you can export the rendering to the browser, but nothing is painted on the VR3 panel. All these VMs use a recent version of Python3 with PyQt5. The PyQt5

Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-11 Thread Thomas Passin
the dictionary. After all that, Leo's spell checker is working. On Wednesday, January 11, 2023 at 10:22:23 AM UTC-5 Thomas Passin wrote: > Don't know yet. I don't have a git clone on the VM in question, I just > spun it up and it needs some more provisioning. > > On Wednesday, January 1

Re: Please help me edit Leo's wikipedia page

2023-01-11 Thread Thomas Passin
" Well, this is a bizarre new policy." I don't think it's that new. Wikipedia has been trying hard to prevent misrepresentation by interested parties who want to make themselves look good, or others to look bad. So you often can't fix errors about yourself even if you know for sure they are

Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-11 Thread Thomas Passin
Don't know yet. I don't have a git clone on the VM in question, I just spun it up and it needs some more provisioning. On Wednesday, January 11, 2023 at 9:54:21 AM UTC-5 Edward K. Ream wrote: > > > On Wed, Jan 11, 2023 at 8:35 AM Thomas Passin wrote: > >> ...it looks lik

Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-11 Thread Thomas Passin
o the trick to get this working on Manjaro, as it > did on my Arch installs. > > Jake > > On Wed, Jan 11, 2023 at 8:47 AM Thomas Passin wrote: > >> No, unfortunately it didn't. There is something else wrong in the >> pyenchant package or the enchant support

Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-11 Thread Thomas Passin
> On Tuesday, January 10, 2023 at 10:53:40 PM UTC-5 Thomas Passin wrote: >> >>> I created a new virtual machine for a Linux distro new to me - Manjaro. >>> Although pyenchant is installed, and the system's package manager claims >>> that the Enchant libraries

Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-10 Thread Thomas Passin
Of course, one solution is to uninstall pyenchant. I did that and now Leo can run. On Tuesday, January 10, 2023 at 10:53:40 PM UTC-5 Thomas Passin wrote: > I created a new virtual machine for a Linux distro new to me - Manjaro. > Although pyenchant is installed, and the system's p

Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-10 Thread Thomas Passin
I created a new virtual machine for a Linux distro new to me - Manjaro. Although pyenchant is installed, and the system's package manager claims that the Enchant libraries are installed, they aren't playing together. I installed Leo but it won't start because pyenchant isn't working. I don't

Re: Should leoeditor.com Be Moved To GitHub or Somewhere Else?

2023-01-10 Thread Thomas Passin
Don't worry, leoeditor.com is in the Wayback Machine going back to 2013 - On Tuesday, January 10, 2023 at 5:48:12 PM UTC-5 Edward K. Ream wrote: > On Tue, Jan 10, 2023 at 3:10 PM George Zipperlen > wrote: > >> I don't know how long

Re: To clarify how Python handles two equal objects

2023-01-10 Thread Thomas Passin
On 1/10/2023 5:21 PM, Jen Kris wrote: There are cases where NumPy would be the best choice, but that wasn’t the case here with what the loop was doing. To sum up what I learned from this post, where one object derives from another object (a = b[0], for example), any operation that would alter

Re: To clarify how Python handles two equal objects

2023-01-10 Thread Thomas Passin
On 1/10/2023 5:11 PM, Chris Angelico wrote: On Wed, 11 Jan 2023 at 09:08, Thomas Passin wrote: Just to add a possibly picky detail to what others have said, Python does not have an "array" type. It has a "list" type, as well as some other, not necessarily mutable, se

Re: Command To Convert Selection Or Body To Title Case

2023-01-10 Thread Thomas Passin
Yes, it can be hard to find out how to do things you want in Leo. The good news is that you can do most anything. Remember to undo/redo operations that change a node or the tree - my title-case script shows how to do that for node content. Leo's code base is in the PyLeoRef.leo outline, as I

Re: To clarify how Python handles two equal objects

2023-01-10 Thread Thomas Passin
Just to add a possibly picky detail to what others have said, Python does not have an "array" type. It has a "list" type, as well as some other, not necessarily mutable, sequence types. If you want to speed up list and matrix operations, you might use NumPy. Its arrays and matrices are

Re: Abbreviations For Greek Letters

2023-01-10 Thread Thomas Passin
I don't think you need that coding line any more. That was a Python2 thing. Python3 uses unicode/utf-8 automatically. FWIW, I generally (before the abbreviations) copied and pasted non-ascii characters from various web pages, and it's always worked well. On Tuesday, January 10, 2023 at

Re: How to change docker arrow icon size?

2023-01-09 Thread Thomas Passin
The plugin is *nav_qt.py*. On Tuesday, January 10, 2023 at 12:11:46 AM UTC-5 Thomas Passin wrote: > The height would probably be set in the CSS rules in the theme's qt > stylesheet. I'm not sure just now which selector would cover it. The > arrows must be icons somewhere, but you'd

Re: How to change docker arrow icon size?

2023-01-09 Thread Thomas Passin
The height would probably be set in the CSS rules in the theme's qt stylesheet. I'm not sure just now which selector would cover it. The arrows must be icons somewhere, but you'd probably have to look in the plugin's code to find them. On Monday, January 9, 2023 at 9:02:31 PM UTC-5

Re: Abbreviations For Greek Letters

2023-01-09 Thread Thomas Passin
because;;=∵ That's one I've never heard of before! An inverted "therefore". On Monday, January 9, 2023 at 5:52:18 PM UTC-5 Edward K. Ream wrote: > On Mon, Jan 9, 2023 at 4:48 PM Rob wrote: > >> Perhaps also useful: >> >> degree;;=° >> half;;=½ >> quarter;;=¼ >> 3fourths;;=¾ >> divide;;=÷ >>

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Thomas Passin
On 1/9/2023 3:00 PM, Eryk Sun wrote: On 1/9/23, MRAB wrote: On Windows it's best to use pip via the Python Launcher: py -m pip show playsound Python's app distribution on the Microsoft Store doesn't include the py launcher, and we don't (but should) have a standalone app or desktop version

Re: I'm installing playsound but it keeps saying No module named playsound

2023-01-09 Thread Thomas Passin
On 1/9/2023 12:29 PM, om om wrote: I'm installing playsound and its saying but it keeps saying No module named playsound and this error occurs on other packages when I install it saying Requirement already satisfied: playsound in

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Thomas Passin
On 1/9/2023 2:10 PM, MRAB wrote: On Windows it's best to use pip via the Python Launcher: py -m pip show playsound Sure - I just didn't want to complicate the post any more, though I did mention it in passing. py is definitely the best way. I wonder how many people know that py can launch

Re: Abbreviations For Greek Letters

2023-01-09 Thread Thomas Passin
Maybe in the section in LeoDocs that mentions abbreviations? It's very short, and these shortcuts could serve as examples, too. @Edward suggested disabled in LeoSettings.leo. That would be all right too, but how many of us troll through there looking for interesting things? I expect my own

Re: Leo's new website is live. Leo 6.7.2 coming soon

2023-01-09 Thread Thomas Passin
Great! One glitch - Links from the google search box point to the old site, not the new one. On Monday, January 9, 2023 at 1:45:53 PM UTC-5 Edward K. Ream wrote: > GitHub pages now hosts Leo's new website at: > https://leo-editor.github.io/leo-editor/ > > Please test these new pages and report

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Thomas Passin
on than the one that used pip to install it." On 1/9/2023 11:59 AM, Mats Wichmann wrote: On 1/9/23 08:30, Thomas Passin wrote: On 1/9/2023 9:40 AM, om om wrote: I'm installing playsound pip install playsound but it keeps saying No module named playsound and this error occurs on

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Thomas Passin
On 1/9/2023 9:40 AM, om om wrote: I'm installing playsound pip install playsound but it keeps saying No module named playsound and this error occurs on other packages Did the installation by pip succeed? if not, what was the error message? "It keeps saying ...". What keeps saying that (it's

Re: Question.

2023-01-08 Thread Thomas Passin
On 1/8/2023 7:54 AM, Angitolol36 wrote: Hello, i installed phyton in Windows 10 22H2 and i can’t find the program. I used the repair that doesnt work. This is as if you had said "I bought a car and it doesn't work". Please tell us what you did and noticed that caused you to say "i

Abbreviations For Greek Letters

2023-01-08 Thread Thomas Passin
Sometimes I want to insert a Greek letter into text, often *sigma *or *mu*. On Windows, at least, it's always annoying and clumsy. So I thought I'd try out Leo's abbreviations, which I've never used in the past. It's working well, so I've collected them here in case it will save someone

Re: asyncio and tkinter (was: What should go to stdout/stderr and why Python logging write everything to stderr?)

2023-01-05 Thread Thomas Passin
On 1/5/2023 7:52 PM, Stefan Ram wrote: Thomas Passin writes: On 1/5/2023 4:24 PM, Stefan Ram wrote: You often can replace threads in tkinter by coroutines using asyncio when you write a replacement for the mainloop of tkinter that uses asyncio. Now, try to read only the official documentation

Re: What should go to stdout/stderr and why Python logging write everything to stderr?

2023-01-05 Thread Thomas Passin
On 1/5/2023 4:24 PM, Stefan Ram wrote: You often can replace threads in tkinter by coroutines using asyncio when you write a replacement for the mainloop of tkinter that uses asyncio. Now, try to read only the official documentation of asyncio and tkinter and figure out only from

Re: What should go to stdout/stderr and why Python logging write everything to stderr?

2023-01-05 Thread Thomas Passin
M To: python-list@python.org Subject: Re: What should go to stdout/stderr and why Python logging write everything to stderr? *** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. *** On 2023-01-05, Thomas Passin wrote: The logging system

Re: What should go to stdout/stderr and why Python logging write everything to stderr?

2023-01-05 Thread Thomas Passin
On 1/5/2023 3:29 PM, Grant Edwards wrote: On 2023-01-05, Thomas Passin wrote: The logging system is so configurable that... I find it almost impossible to use unless I copy a working example I find somewhere. ;) I'm not at all surprised that the OP didn't understand how it works. I've been

Re: What should go to stdout/stderr and why Python logging write everything to stderr?

2023-01-05 Thread Thomas Passin
On 1/5/2023 2:18 PM, Peter J. Holzer wrote: On 2023-01-05 08:31:40 -0500, Thomas Passin wrote: The logging system is so configurable that a user could set a different destination for each level of logging. So it seems that the O.P.'s original question about why the package's developers choose

Re: A curious observation, #2

2023-01-05 Thread Thomas Passin
There is actually some CSS styling possible for the gutter: A logical setting: @string font-size-gutter = 9pt and in the theme's stylesheet: QFrame#gutter { font-size: @font-size-gutter; background: @dark-base02; } On Thursday, January 5, 2023 at 12:38:58 PM UTC-5 jkn wrote: > Heh, I was

Re: A curious observation, #2

2023-01-05 Thread Thomas Passin
I see in LeoPyRef that there is also a setting *gutter-w-adjust*. A comment says its function is to provide extra room for bolding the line number of the current line. Its default value seems to work for me (a good thing because I didn't know about it before now). The line numbers are not

Re: What should go to stdout/stderr and why Python logging write everything to stderr?

2023-01-05 Thread Thomas Passin
On 1/5/2023 6:27 AM, Peter J. Holzer wrote: On 2023-01-04 12:32:40 -0500, Thomas Passin wrote: On 1/3/2023 10:35 AM, c.bu...@posteo.jp wrote: The logging module write everything to stderr no matter which logging level is used. The OP wrote this, but it's not so by default. By default

Re: A curious observation, #1

2023-01-04 Thread Thomas Passin
ISTR that (in the code) you can tell a file open dialog to open at a specific directory, at least on Windows. Maybe that's it. It might not be the Most Recently Used list but some other location that's stored, not that I know anything specific. On Wednesday, January 4, 2023 at 3:14:56 PM

Re: A curious observation, #2

2023-01-04 Thread Thomas Passin
Yes indeed, and there is a setting to adjust for the misalignment. @int gutter-y-adjust = 7 works for my current theme. I've been known to have to go up to 12. I forget how I learned about this setting, it's been too long. On Wednesday, January 4, 2023 at 3:18:12 PM UTC-5 jkn wrote: > This

Re: Command To Convert Selection Or Body To Title Case

2023-01-04 Thread Thomas Passin
Let's add the scripting-miscellany link to Leo's Help menu. On Wednesday, January 4, 2023 at 11:32:09 AM UTC-5 Edward K. Ream wrote: > On Wednesday, January 4, 2023 at 10:18:53 AM UTC-6 Edward K. Ream wrote: > > > I've just added this entry >

Re: What should go to stdout/stderr and why Python logging write everything to stderr?

2023-01-04 Thread Thomas Passin
On 1/3/2023 10:35 AM, c.bu...@posteo.jp wrote: The logging module write everything to stderr no matter which logging level is used. The OP wrote this, but it's not so by default. There is a HOW-TO page that explains this and how to get the logging package to log everything to a file, along

Re: Command To Convert Selection Or Body To Title Case

2023-01-04 Thread Thomas Passin
Hah! That's what I was trying to remember. If we forget about these places, how is a newbie going to find them? Isn't there a link in the cheatsheet stuff that Leo puts into the default workbook when it is run for the first time? On Wednesday, January 4, 2023 at 6:28:31 AM UTC-5 jkn wrote:

Re: What should go to stdout/stderr and why Python logging write everything to stderr?

2023-01-03 Thread Thomas Passin
On 1/3/2023 11:51 AM, Stefan Ram wrote: Thomas Passin writes: On 1/3/2023 10:35 AM, c.bu...@posteo.jp wrote: Also, I think it would be confusing to sometimes have logging output go to stdout and other times go to stderr. In UNIX, the output of a program can be redirected, so error

Re: What should go to stdout/stderr and why Python logging write everything to stderr?

2023-01-03 Thread Thomas Passin
On 1/3/2023 10:35 AM, c.bu...@posteo.jp wrote: Hello, this posting isn't about asking for a technical solution. My intention is to understand the design decision Python's core developers made in context of that topic. The logging module write everything to stderr no matter which logging level

Re: Command To Convert Selection Or Body To Title Case

2023-01-03 Thread Thomas Passin
Where do you think a collection like that should live, bearing in mind that it should be easy for a newbie to learn about it? On Tuesday, January 3, 2023 at 5:23:47 AM UTC-5 jkn wrote: > > Yes ... 'many' of the scripts I come across, eg. on this newsgroup, need a > bit of tweaking to run with

Re: Command To Convert Selection Or Body To Title Case

2023-01-02 Thread Thomas Passin
Theoretically they can go into scripts.leo, but I always forget about that outline and a lot of its scripts are so long unmaintained that they don't even work. That, or they are so specialized that it's hard to even know what they do. I do agree that a collection of small utility scripts

Re: NoneType List

2023-01-02 Thread Thomas Passin
On 1/2/2023 5:01 PM, Grant Edwards wrote: On 2023-01-02, Alan Gauld wrote: On 02/01/2023 02:14, avi.e.gr...@gmail.com wrote: I used PASCAL before C and I felt like I was wearing a straitjacket at times in PASCAL when I was trying to write encryption/decryption functions and had to find ways

Re: Fwd: About the Python

2023-01-02 Thread Thomas Passin
Since you have an immediate need to have working installations, I suggest that you downgrade to an earlier version of Python. V3.11.1 is new and some binary libraries (such as numpy) may not be working correctly yet with the latest version. Your students will not need any of the new features

Re: NoneType List

2023-01-02 Thread Thomas Passin
On 1/2/2023 3:01 AM, Alan Gauld wrote: On 02/01/2023 02:14, avi.e.gr...@gmail.com wrote: I used PASCAL before C and I felt like I was wearing a straitjacket at times in PASCAL when I was trying to write encryption/decryption functions and had to find ways to fiddle with bits. Similar things

Re: Viewrendered3 Can Now Render PlantUml diagrams

2023-01-02 Thread Thomas Passin
No, it doesn't need a server link. That's the nice part. You just install the *asciidoctor-diagram* gem, and use the header shown in the docstring. Of course you need to have installed Ruby and the *asciidoctor* gem in the first place. The Ruby people found an alternative engine that they

Command To Convert Selection Or Body To Title Case

2023-01-01 Thread Thomas Passin
Leo has commands to capitalize, upcase, and lowercase the body text or selections of the body text. I could not find a command to convert to title case (first letter of every word capitalized). So here is a script to do so. The script does not take into account any tricky edge cases - it

Re: NoneType List

2023-01-01 Thread Thomas Passin
Message- From: Python-list On Behalf Of Thomas Passin Sent: Sunday, January 1, 2023 1:03 PM To: python-list@python.org Subject: Re: NoneType List On 1/1/2023 8:47 AM, Stefan Ram wrote: Thomas Passin writes: Guido had been working on the ABC language for some years before he developed Python

Re: NoneType List

2023-01-01 Thread Thomas Passin
On 1/1/2023 8:47 AM, Stefan Ram wrote: Thomas Passin writes: Guido had been working on the ABC language for some years before he developed Python. ABC was intended mainly as a teaching and prototyping language. In those days, there used to be a language called "Pascal".

Viewrendered3 Can Now Render PlantUml diagrams

2023-01-01 Thread Thomas Passin
If you use asciidoc and the external asciidoctor processor, the viewrendered3 plugin can now render PlantUml diagrams. See the section on Asciidoc in the program's docstring to see how to do it. The docstring will be displayed by Leo's *Plugins/viewrendered3/About* menu item. This

Re: NoneType List

2023-01-01 Thread Thomas Passin
On 12/31/2022 10:17 PM, avi.e.gr...@gmail.com wrote: Agreed, there are lots of pro/con arguments and the feature is what it is historically and not trivial to change. Inline changes to an object make sense to just be done "silently" and if there are errors, they propagate the usual way. As

Re: Should leoeditor.com Be Moved To GitHub or Somewhere Else?

2023-01-01 Thread Thomas Passin
I'm comfortable with this approach. Once the new site is up and working, let's try contacting each site that we know references leoeditor.com and inform them of the change. That won't catch everything but I don't know what else we can do, once leoeditor.com itself lapses at some point in the

Re: NoneType List

2022-12-31 Thread Thomas Passin
a single post. This may explain why "nobody answered". However, ten hours after the above/first message, you posted again. This time as "Thomas Passin". That message was probably a mistaken one from me. I had composed a reply but through some mental glitch had to re-do it

Re: Should leoeditor.com Be Moved To GitHub or Somewhere Else?

2022-12-31 Thread Thomas Passin
I agree. There are sites out there that refer to leoeditor.com, like the LeoVue web site. It would probably be good if those links could still work for some time as we got the new site going. On Saturday, December 31, 2022 at 5:50:21 PM UTC-5 Félix wrote: > Indeed, using the technique

Re: NoneType List

2022-12-31 Thread Thomas Passin
() that returns the sorted list (without changing the original list). The same thing is true of set.add(). The set is changed in place, and nothing is returned. On 12/31/2022 10:50 AM, Thomas Passin wrote: Happy New Year, everybody! I'm new in the Python List, new in Python world, and new in coding. A few

NoneType List

2022-12-31 Thread Thomas Passin
Happy New Year, everybody! I'm new in the Python List, new in Python world, and new in coding. A few days (weeks?) ago, I faced a problem trying to write a program for an exercise. I asked for help and nobody answered. In the meantime, I found a part of the solution, but a part still remains a

Re: Should leoeditor.com Be Moved To GitHub or Somewhere Else?

2022-12-30 Thread Thomas Passin
That would be great! GitHub Pages only support static pages, so any PHP usage will need to be reworked not to use it. Also, won't someone need to keep renewing and paying for the leoeditor.com domain, if that becomes linked to GitHub Pages? If so, ultimately it would be good to phase that

[Python-announce] GF4 Graphics Calculator V1.4 Released

2022-12-29 Thread Thomas Passin
Version 1.4 of the GF4 Graphics Calculator is now available on GitHub at https://github.com/tbpassin/gf4-project/tree/1.4 This version contains the following changes, among others: - Least Squares fits can be any polynomial power, not just linear; - Improvements to normalization and horizontal

Re: Should leoeditor.com Be Moved To GitHub or Somewhere Else?

2022-12-28 Thread Thomas Passin
I meant that the server should be more available to devs or an admin. Right now, it may very well that only Speed and Edward can access it to make changes, etc. Also, someone is presumably paying for the server and the domain. That person might go away or lose interest at some time, and then

Re: Failing unit test in devel branch

2022-12-28 Thread Thomas Passin
I doubt that it's actually "required" in the sense that tk is used any more. If a test calls for it, probably that test should be updated. On Wednesday, December 28, 2022 at 2:23:07 PM UTC-5 viktor@gmail.com wrote: > Hello Thomas, > > tbp1...@gmail.com schrieb am Mittwoch, 28. Dezember

Re: Failing unit test in devel branch

2022-12-28 Thread Thomas Passin
" I also double-checked & saw that 'setup.py' has added "tk" as an install requirement." I wonder if Leo needs tk at all any more. Maybe it can be removed as a requirement. On Wednesday, December 28, 2022 at 1:30:10 PM UTC-5 viktor@gmail.com wrote: > Hello Thomas, > > Thanks for this

Re: Failing unit test in devel branch

2022-12-28 Thread Thomas Passin
There's no "blame" here, just a need to work around how the Linux packagers have decided to work. I *think* they want to split up and locate python components in particular ways to suit their packaging philosophies, so they have to modify pip, etc., to work that way. It is possible to install

Re: How make your module substitute a python stdlib module.

2022-12-28 Thread Thomas Passin
On 12/28/2022 5:39 AM, Antoon Pardon wrote: Op 27/12/2022 om 16:49 schreef Thomas Passin: On 12/27/2022 8:25 AM, Antoon Pardon wrote: Op 27/12/2022 om 13:46 schreef Chris Angelico: On Tue, 27 Dec 2022 at 23:28, Antoon Pardon wrote: At the moment I am happy with a solution that once

Re: Failing unittest in devel branch

2022-12-28 Thread Thomas Passin
You have to install it using the package manager. Here is what I have found (quoted from the Users' Guide for my GF4 project):: "On Debian/Ubuntu, tkinter has to be installed by the package manager: sudo apt-get install python3-tk This may also be the case with some non-Debian systems.

Re: Should leoeditor.com Be Moved To GitHub or Somewhere Else?

2022-12-27 Thread Thomas Passin
I might be willing, but I'm thinking it would be better to have someone younger pick it up - you know, better for long-term corporate memory and all that. I'd be willing to work on getting it all moved over and working if no one else is able to just now. It seems to me that the content at

Re: How make your module substitute a python stdlib module.

2022-12-27 Thread Thomas Passin
On 12/27/2022 8:25 AM, Antoon Pardon wrote: Op 27/12/2022 om 13:46 schreef Chris Angelico: On Tue, 27 Dec 2022 at 23:28, Antoon Pardon  wrote: At the moment I am happy with a solution that once the programmer has imported from QYZlib.threaders that module will used as the threading module.

Should leoeditor.com Be Moved To GitHub or Somewhere Else?

2022-12-26 Thread Thomas Passin
Currently Speed Ream (@Edward's brother, IIUC) is the registered contact for leoeditor.com and the domain name registrar is Launchpad.com, according to Whois.com. I don't know where the actual server is, who pays for it, or who is authorized to put anything on it or modify anything that's

Re: Extract the “Matrix form” dataset from BCS website.

2022-12-22 Thread Thomas Passin
On 12/22/2022 8:35 AM, hongy...@gmail.com wrote: I want to extract / scrape the “Matrix form” dataset from the BCS website [1], a.k.a., the data appeared in the 3rd column. I tried with the following python code snippet, but still failed to figure out the trick: Tell what you observed, and

Re: pygame.midi input/output not working

2022-12-22 Thread Thomas Passin
This issue thread on Github says that everyone is waiting on the packaging maintainer, but nothing from him for some time. On 12/22/2022 5:04 AM, Peter J. Holzer wrote: On 2022-12-21 17:23:47 -0500, Thomas Passin wrote: The pygame web site says this: "Pygame still does not run on Python

Re: pygame.midi input/output not working

2022-12-21 Thread Thomas Passin
On 12/21/2022 4:32 PM, Patrick EGLOFF wrote: HI, Some time ago I wrote a small software using pygame.midi It worked just fine with Win10/ python 3.9 / SDL 2.0.14 / pygame 2.0.1 I had to change my computer and now I installed Win10 / Python 3.11.1 / SDL 2.0.18 / pygame 2.1.2 The following

Re: Fwd: Installation hell

2022-12-20 Thread Thomas Passin
On 12/20/2022 8:11 AM, Eryk Sun wrote: [snipped] I know we're not here to bash Windows, but... drive letters really need to just die already. I don't foresee drive-letter names getting phased out of Windows. And Windows itself is unlikely to get phased out as long as Microsoft continues to

Re: How to enter escape character in a positional string argument from the command line?

2022-12-19 Thread Thomas Passin
On 12/19/2022 9:24 PM, Jach Feng wrote: Mark Bourne 在 2022年12月20日 星期二凌晨4:49:13 [UTC+8] 的信中寫道: Jach Feng wrote: I have a script using the argparse module. I want to enter the string "step\x0A" as one of its positional arguments. I expect this string has a length of 5, but it gives 8.

Re: Fwd: Installation hell

2022-12-19 Thread Thomas Passin
On 12/19/2022 5:16 PM, Chris Angelico wrote: On Tue, 20 Dec 2022 at 09:12, Thomas Passin wrote: FWIW, I once set up a Python installation so that it could run from a USB stick (Windows only). My launcher was a batch file that contained the following: @echo off setlocal : Find effective drive

Re: Fwd: Installation hell

2022-12-19 Thread Thomas Passin
On 12/19/2022 4:54 PM, Thomas Passin wrote: On 12/19/2022 3:34 PM, j wrote: I was unclear. I use the full path to the folder with the unzipped python-embedded. I shouldn't have said 'set'. I have complained on here before about broken installs but got indifference. An installer should

Re: Fwd: Installation hell

2022-12-19 Thread Thomas Passin
On 19/12/2022 17:55, Thomas Passin wrote: On 12/19/2022 12:28 PM, j via Python-list wrote: I agree. Wasted too much time on last few installs. It got to the point I downloaded python-embedded, unzipped it and set the path manually for my work (needed it as part of a compiler). I don't set those

Re: Fwd: Installation hell

2022-12-19 Thread Thomas Passin
On 12/19/2022 12:28 PM, j via Python-list wrote: I agree. Wasted too much time on last few installs. It got to the point I downloaded python-embedded, unzipped it and set the path manually for my work (needed it as part of a compiler). I don't set those paths. If you have several different

Re: Installation hell

2022-12-19 Thread Thomas Passin
On 12/19/2022 11:36 AM, Chris Angelico wrote: On Tue, 20 Dec 2022 at 03:05, Thomas Passin wrote: That's not been my experience. Windows installers for Python have worked well for me over many generations of Python releases. It's Linux where I've found difficulties. For example, if your

Re: Installation hell

2022-12-19 Thread Thomas Passin
On 12/19/2022 9:59 AM, Weatherby,Gerard wrote: Personally, I don’t use Windows and avoid it like the plague. Python is easy to install on Linux and Mac. That's not been my experience. Windows installers for Python have worked well for me over many generations of Python releases. It's

Re: String to Float, without introducing errors

2022-12-19 Thread Thomas Passin
On 12/19/2022 9:10 AM, Peter J. Holzer wrote: On 2022-12-19 09:25:17 +1100, Chris Angelico wrote: On Mon, 19 Dec 2022 at 07:57, Stefan Ram wrote: G = Decimal( 6.6743015E-11 ) r = Decimal( 6.371E6 ) M = Decimal( 5.9722E24 ) What's the point of using Decimal if you start with nothing more

Re: String to Float, without introducing errors

2022-12-18 Thread Thomas Passin
the bonnet. Here is a picture: https://paulstgeorge.com/newton/cyclography.html Thanks, Paul On 17 Dec 2022, at 16:54:05 EST 2022, Thomas Passin wrote: On 12/17/2022 3:45 PM, Paul St George wrote: Thanks to all! It was the rounding rounding error that I needed to avoid (as Peter J. Holzer

Re: pip/setuptools: Entry points not visible from pkexec-root-environment

2022-12-18 Thread Thomas Passin
Pip is fine for most packages, as it looks like you know. Some distros put some packages in unusual places, and those are the ones that either are not or should not be installed via pip. Which ones varies from distro to distro. (I just include this information here for others who haven't

Re: Single line if statement with a continue

2022-12-17 Thread Thomas Passin
>if 5 > 3: a = a * 3 > b = b * 3 That would be a fairly weird construction, neither one thing nor another. But still, if you really want it that way, this is legal Python: a = 2; b = 10 if 5 > 3: a = a * 3;\ b = b * 3 print(a, b) # 6 30 On 12/17/2022 6:57 PM,

Re: String to Float, without introducing errors

2022-12-17 Thread Thomas Passin
On 12/17/2022 3:45 PM, Paul St George wrote: Thanks to all! It was the rounding rounding error that I needed to avoid (as Peter J. Holzer suggested). The use of decimal solved it and just in time. I was about to truncate the number, get each of the characters from the string mantissa, and

<    7   8   9   10   11   12   13   14   15   16   >