Re: Embedded python: How to debug code in an isolated way

2020-08-23 Thread Grant Edwards
On 2020-08-23, Chris Angelico wrote: > On Mon, Aug 24, 2020 at 6:00 AM Grant Edwards > wrote: >> >> On 2020-08-22, Chris Angelico wrote: >> > On Sun, Aug 23, 2020 at 5:51 AM Eko palypse wrote: >> >> So the question is, what do I need to read/learn/understand in order to >> >> solve this issue

There is LTS?

2020-08-23 Thread 황병희
Hi, just i am curious. There is LTS for *Python*? If so, i am very thank you for Python Project. Yesterday, by chance, i heard that there is LTS for Linux Kernel. The idea seems so beautiful!!! Sincerely, Byung-Hee -- ^고맙습니다 _白衣從軍_ 감사합니다_^))// -- https://mail.python.org/mailman/listinfo/pytho

Re: Program chaining on Windows

2020-08-23 Thread Chris Angelico
On Mon, Aug 24, 2020 at 9:51 AM Rob Cliffe via Python-list wrote: > Let me describe my actual use case. I am developing a large Python > program (in Windows, working in DOS boxes) and I constantly want to > modify it and re-run it. What I have been doing is to make it respond > to a hotkey by ca

Re: Program chaining on Windows

2020-08-23 Thread Rob Cliffe via Python-list
Thanks for everyone who replied so far, it is appreciated.  (I don't particularly like asking for help and taking up other peoples' time, but I really ran out of ideas.) Chris, thanks for your explanation: With exec, the intention is to*replace* the current program, not to inv

Re: Program chaining on Windows

2020-08-23 Thread Eryk Sun
On 8/23/20, Chris Angelico wrote: > On Mon, Aug 24, 2020 at 7:40 AM dn via Python-list > >> As a 'general rule', isn't exec() something to be avoided? > > Nope, it's a very important tool. Not for every situation, of course, > but there are plenty of times when it's the right thing to do. In POSI

Re: Program chaining on Windows

2020-08-23 Thread Chris Angelico
On Mon, Aug 24, 2020 at 7:40 AM dn via Python-list wrote: > > On 24/08/2020 09:04, Chris Angelico wrote: > > On Mon, Aug 24, 2020 at 6:39 AM dn via Python-list > > wrote: > >> > >> On 23/08/2020 19:31, Rob Cliffe via Python-list wrote: > >>> On WIndows 10, running Python programs in a DOS box, I

Re: Program chaining on Windows

2020-08-23 Thread dn via Python-list
On 24/08/2020 09:04, Chris Angelico wrote: On Mon, Aug 24, 2020 at 6:39 AM dn via Python-list wrote: On 23/08/2020 19:31, Rob Cliffe via Python-list wrote: On WIndows 10, running Python programs in a DOS box, I would like one Python program to chain to another. I.e. the first program to be r

Re: Embedded python: How to debug code in an isolated way

2020-08-23 Thread Barry
> On 22 Aug 2020, at 20:53, Eko palypse wrote: > > Hello, > > background info first. On windows, python3.8.5 > > A cpp app has an embedded python interpreter which allows to modify/enhance > the cpp app > by providing objects to manipulate the cpp app and callbacks to act on > certain even

Re: Program chaining on Windows

2020-08-23 Thread Eryk Sun
On 8/23/20, Rob Cliffe via Python-list wrote: > > Am I missing something? Is there a way in Windows for one Python > program to "chain" to another (or indeed to any executable) without > waiting for the latter to finish? Windows does not implement anything equivalent to the POSIX exec family of

Re: Program chaining on Windows

2020-08-23 Thread Barry
> On 23 Aug 2020, at 20:58, Rob Cliffe via Python-list > wrote: > > On WIndows 10, running Python programs in a DOS box, I would like one Python > program to chain to another. I.e. the first program to be replaced by the > second (*not* waiting for the second to finish, as with e.g. os.sys

Re: Program chaining on Windows

2020-08-23 Thread Chris Angelico
On Mon, Aug 24, 2020 at 6:39 AM dn via Python-list wrote: > > On 23/08/2020 19:31, Rob Cliffe via Python-list wrote: > > On WIndows 10, running Python programs in a DOS box, I would like one > > Python program to chain to another. I.e. the first program to be > > replaced by the second (*not* wai

Re: Program chaining on Windows

2020-08-23 Thread dn via Python-list
On 23/08/2020 19:31, Rob Cliffe via Python-list wrote: On WIndows 10, running Python programs in a DOS box, I would like one Python program to chain to another.  I.e. the first program to be replaced by the second (*not* waiting for the second to finish, as with e.g. os.system).  This doesn't s

Re: Embedded python: How to debug code in an isolated way

2020-08-23 Thread Chris Angelico
On Mon, Aug 24, 2020 at 6:00 AM Grant Edwards wrote: > > On 2020-08-22, Chris Angelico wrote: > > On Sun, Aug 23, 2020 at 5:51 AM Eko palypse wrote: > >> So the question is, what do I need to read/learn/understand in order to > >> solve this issue? > >> Or in other words, how can I debug my scr

Re: Embedded python: How to debug code in an isolated way

2020-08-23 Thread Grant Edwards
On 2020-08-22, Chris Angelico wrote: > On Sun, Aug 23, 2020 at 5:51 AM Eko palypse wrote: >> So the question is, what do I need to read/learn/understand in order to >> solve this issue? >> Or in other words, how can I debug my script in an isolated environment. > > I'd go for the old standby - I

Program chaining on Windows

2020-08-23 Thread Rob Cliffe via Python-list
On WIndows 10, running Python programs in a DOS box, I would like one Python program to chain to another.  I.e. the first program to be replaced by the second (*not* waiting for the second to finish, as with e.g. os.system).  This doesn't seem a lot to ask, but so far I have been unable to so t

Issue in installing Python (Windows 10)

2020-08-23 Thread Debasis Chatterjee
-- Forwarded message - From: Debasis Chatterjee Date: Sun, Aug 23, 2020 at 11:06 AM Subject: Issue in installing Python (Windows 10) To: Hi I started off by using "python-3.8.5.exe". I use "Run as Administrator" option to click this (provide my local-admin username/pwd). Afte

Re: "dictionary changed size during iteration" error in Python 3 but not in Python 2

2020-08-23 Thread Peter Otten
Chris Green wrote: >> >1 - Why doesn't it error in Python 2? >> >> The dict internal implementation has changed. I don't know the >> specifics, but it is now faster and maybe smaller and also now preserves >> insert order. >> > Ah, that probably explains it then. But if you try to modify a dict

Re: "dictionary changed size during iteration" error in Python 3 but not in Python 2

2020-08-23 Thread Chris Green
Cameron Simpson wrote: > On 23Aug2020 10:00, Chris Green wrote: > >I have a (fairly) simple little program that removes old mail messages > >from my junk folder. I have just tried to upgrade it from Python 2 to > >Python 3 and now, when it finds any message[s] to delete it produces > >the error:

Re: "dictionary changed size during iteration" error in Python 3 but not in Python 2

2020-08-23 Thread Cameron Simpson
On 23Aug2020 10:00, Chris Green wrote: >I have a (fairly) simple little program that removes old mail messages >from my junk folder. I have just tried to upgrade it from Python 2 to >Python 3 and now, when it finds any message[s] to delete it produces >the error:- > >RuntimeError: dictionary

"dictionary changed size during iteration" error in Python 3 but not in Python 2

2020-08-23 Thread Chris Green
I have a (fairly) simple little program that removes old mail messages from my junk folder. I have just tried to upgrade it from Python 2 to Python 3 and now, when it finds any message[s] to delete it produces the error:- RuntimeError: dictionary changed size during iteration I can sort of s

How do I close a form without closing the entire program?

2020-08-23 Thread Steve
This program is fully operational with the exception of not being able to close the form when I have completed the data entry. If I have code for a second form, both remain visible. Thoughts appreciated from tkinter import * def