Re: Fwd: IDLE: clearing the screen

2024-06-05 Thread Rob Cliffe via Python-list
On 05/06/2024 04:09, Cameron Simpson wrote: On 04Jun2024 22:43, Rob Cliffe wrote: import os def cls(): x=os.system("cls") Now whenever you type cls() it will clear the screen and show the prompt at the top of the screen. (The reason for the "x=" is: os.system returns a result, in this case

Re: Fwd: IDLE: clearing the screen

2024-06-04 Thread Cameron Simpson via Python-list
On 04Jun2024 22:43, Rob Cliffe wrote: import os def cls(): x=os.system("cls") Now whenever you type cls() it will clear the screen and show the prompt at the top of the screen. (The reason for the "x=" is: os.system returns a result, in this case 0.  When you evaluate an expression in the IDE

Fwd: IDLE: clearing the screen

2024-06-04 Thread Rob Cliffe via Python-list
Welcome to Python!  A great language for program development. Answers might be platform-dependent (are you using WIndows, Linux, etc.). However, the following works for me on WIndows.  You can put it in the startup.py file so you don't have to type it every time you start up the IDLE. import

Re: Fwd: AUTO EDITOR DIDN'T WORK

2023-06-16 Thread Real Live FootBall Tv via Python-list
Thanks, I'll look into it. On Thu, 15 Jun 2023 at 10:25, Alan Gauld wrote: > On 15/06/2023 08:58, Real Live FootBall Tv via Python-list wrote: > > I have followed the instructions given on how to install the app. What I > > needed was an application to cut of silence from my video and I saw auto

Re: Fwd: AUTO EDITOR DIDN'T WORK

2023-06-15 Thread Alan Gauld via Python-list
On 15/06/2023 08:58, Real Live FootBall Tv via Python-list wrote: > I have followed the instructions given on how to install the app. What I > needed was an application to cut of silence from my video and I saw auto > editor demonstrated as one of the applications that could do that. It does > cut

Re: Fwd: AUTO EDITOR DIDN'T WORK

2023-06-15 Thread Real Live FootBall Tv via Python-list
ted, please share that specifically with enough > detail. > > > -Original Message- > From: Python-list > On Behalf Of Thomas Passin via Python-list > Sent: Tuesday, June 13, 2023 10:18 PM > To: python-list@python.org > Subject: Re: Fwd: AUTO EDITOR DIDN'T WORK

RE: Fwd: AUTO EDITOR DIDN'T WORK

2023-06-13 Thread AVI GROSS via Python-list
PM To: python-list@python.org Subject: Re: Fwd: AUTO EDITOR DIDN'T WORK On 6/13/2023 9:43 PM, gene heskett via Python-list wrote: > On 6/13/23 19:10, Thomas Passin via Python-list wrote: >> On 6/13/2023 5:32 PM, Alan Gauld via Python-list wrote: >>> Okay thanks. Meanwhile, I

Re: Fwd: AUTO EDITOR DIDN'T WORK

2023-06-13 Thread Thomas Passin via Python-list
On 6/13/2023 9:43 PM, gene heskett via Python-list wrote: On 6/13/23 19:10, Thomas Passin via Python-list wrote: On 6/13/2023 5:32 PM, Alan Gauld via Python-list wrote: Okay thanks. Meanwhile, I am not tech savvy so I may not say much here. I followed all the commands as given on the website to

Re: Fwd: AUTO EDITOR DIDN'T WORK

2023-06-13 Thread gene heskett via Python-list
On 6/13/23 19:10, Thomas Passin via Python-list wrote: On 6/13/2023 5:32 PM, Alan Gauld via Python-list wrote: Okay thanks. Meanwhile, I am not tech savvy so I may not say much here. I followed all the commands as given on the website to install auto editor standing it on python but after render

Re: Fwd: AUTO EDITOR DIDN'T WORK

2023-06-13 Thread Thomas Passin via Python-list
On 6/13/2023 5:32 PM, Alan Gauld via Python-list wrote: Okay thanks. Meanwhile, I am not tech savvy so I may not say much here. I followed all the commands as given on the website to install auto editor standing it on python but after rendering the XML file, I couldn't open it with my Davinci Res

Fwd: AUTO EDITOR DIDN'T WORK

2023-06-13 Thread Alan Gauld via Python-list
Forwarding to list Okay thanks. Meanwhile, I am not tech savvy so I may not say much here. I followed all the commands as given on the website to install auto editor standing it on python but after rendering the XML file, I couldn't open it with my Davinci Resolve 18. I uninstalled and reinstalled

Fwd: Re: AUTO EDITOR DIDN'T WORK

2023-06-12 Thread Alan Gauld via Python-list
On 12/06/2023 10:26, Real Live FootBall Tv via Python-list wrote: > I did it because I was going to use it with another application, A VIDEO > EDITING APP, Auto EDITOR but it didn't work for some reasons unknown to me. You need to define "didn't work" Did it work as a python interpreter? ie. Di

Re: Fwd: Problems Installing and getting started.

2023-05-31 Thread Thomas Passin
On 5/31/2023 3:52 PM, Dennis Lee Bieber wrote: Python does not provide, normally, a "click me" icon to run Python. Python is a command line language INTERPRETER/COMPILER. If file associations are set up, clicking on a script (.py) file/will/ run it -- but the window it opens goes away as soon as

Re: Fwd: Problems Installing and getting started.

2023-05-31 Thread Dennis Lee Bieber
On Wed, 31 May 2023 08:34:48 +0100, Mark Bass declaimed the following: >-- Forwarded message - >From: Mark Bass >Date: Wed, 31 May 2023 at 08:09 >Subject: Problems Installing and getting started. >To: > > >Good morning, > >I installed python several hours ago (from python.org),

Re: Fwd: Problems Installing and getting started.

2023-05-31 Thread MRAB
On 2023-05-31 08:34, Mark Bass wrote: -- Forwarded message - From: Mark Bass Date: Wed, 31 May 2023 at 08:09 Subject: Problems Installing and getting started. To: Good morning, I installed python several hours ago (from python.org), I then installed the IDE PyCharm. I'm using

Fwd: Problems Installing and getting started.

2023-05-31 Thread Mark Bass
-- Forwarded message - From: Mark Bass Date: Wed, 31 May 2023 at 08:09 Subject: Problems Installing and getting started. To: Good morning, I installed python several hours ago (from python.org), I then installed the IDE PyCharm. I'm using AI to help with a project that requires

Re: Fwd: pip is not installed

2023-04-16 Thread Thomas Passin
On 4/16/2023 10:09 PM, MRAB wrote: On 2023-04-16 21:54, Khoinguyen Nguyen wrote: To whom it may concern, I have tried to reinstall, repair, and run in command prompt, but it seems as though pip won't install. I am using Windows 10 and Python 3.11.3. Are there any other suggestions for troubles

Re: Fwd: pip is not installed

2023-04-16 Thread Cameron Simpson
On 16Apr2023 16:54, Khoinguyen Nguyen wrote: I have tried to reinstall, repair, and run in command prompt, but it seems as though pip won't install. I am using Windows 10 and Python 3.11.3. Are there any other suggestions for troubleshooting? Have you tried invoking pip _via_ Python? This is

Re: Fwd: pip is not installed

2023-04-16 Thread MRAB
On 2023-04-16 21:54, Khoinguyen Nguyen wrote: To whom it may concern, I have tried to reinstall, repair, and run in command prompt, but it seems as though pip won't install. I am using Windows 10 and Python 3.11.3. Are there any other suggestions for troubleshooting? Thank you. Have you tried u

Fwd: pip is not installed

2023-04-16 Thread Khoinguyen Nguyen
To whom it may concern, I have tried to reinstall, repair, and run in command prompt, but it seems as though pip won't install. I am using Windows 10 and Python 3.11.3. Are there any other suggestions for troubleshooting? Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-18 Thread Peter J. Holzer
On 2023-03-18 16:06:49 +, Alan Gauld wrote: > On 18/03/2023 12:15, Peter J. Holzer wrote: > >> I think you might be meaning TurboPascal, Delphi's forerunner. It just > >> had a compiler and text editor. > > > > I'd still classify Turbo Pascal as an IDE. It wasn't a standalone > > compiler you

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-18 Thread Alan Gauld
On 18/03/2023 12:15, Peter J. Holzer wrote: >> I think you might be meaning TurboPascal, Delphi's forerunner. It just >> had a compiler and text editor. > > I'd still classify Turbo Pascal as an IDE. It wasn't a standalone > compiler you would invoke on source files you wrote with some other It

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-18 Thread Roel Schroeven
Peter J. Holzer schreef op 18/03/2023 om 13:15: On 2023-03-18 08:46:42 +, Alan Gauld wrote: > On 17/03/2023 17:55, Thomas Passin wrote: > >> I used Delphi and Smalltalk/V which both pretty much only exist within > >> their own IDEs and I used their features extensively. > > > > Back when

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-18 Thread Thomas Passin
On 3/18/2023 8:15 AM, Peter J. Holzer wrote: On 2023-03-18 08:46:42 +, Alan Gauld wrote: On 17/03/2023 17:55, Thomas Passin wrote: I used Delphi and Smalltalk/V which both pretty much only exist within their own IDEs and I used their features extensively. Back when Delphi first came out,

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-18 Thread Thomas Passin
On 3/18/2023 4:46 AM, Alan Gauld wrote: On 17/03/2023 17:55, Thomas Passin wrote: I used Delphi and Smalltalk/V which both pretty much only exist within their own IDEs and I used their features extensively. Back when Delphi first came out, when I first used it, I don't remember any IDE; one j

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-18 Thread Peter J. Holzer
On 2023-03-18 08:46:42 +, Alan Gauld wrote: > On 17/03/2023 17:55, Thomas Passin wrote: > >> I used Delphi and Smalltalk/V which both pretty much only exist within > >> their own IDEs and I used their features extensively. > > > > Back when Delphi first came out, when I first used it, I don't

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-18 Thread Alan Gauld
On 17/03/2023 17:55, Thomas Passin wrote: >> I used Delphi and Smalltalk/V which both pretty much only exist within >> their own IDEs and I used their features extensively. > > Back when Delphi first came out, when I first used it, I don't remember > any IDE; one just used a text editor. I thin

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-17 Thread MRAB
On 2023-03-17 17:55, Thomas Passin wrote: On 3/17/2023 1:13 PM, Alan Gauld wrote: Oops! I meant to send this to the group not just Dave. Forwarded Message On 16/03/2023 22:55, dn via Python-list wrote: Do you make use of your IDE's expansionist tendencies, and if-so, which

Re: Fwd: Friday finking: IDE 'macro expansions'

2023-03-17 Thread Thomas Passin
On 3/17/2023 1:13 PM, Alan Gauld wrote: Oops! I meant to send this to the group not just Dave. Forwarded Message On 16/03/2023 22:55, dn via Python-list wrote: Do you make use of your IDE's expansionist tendencies, and if-so, which ones? When I'm writing Java/C++/C# yes,

Fwd: Friday finking: IDE 'macro expansions'

2023-03-17 Thread Alan Gauld
Oops! I meant to send this to the group not just Dave. Forwarded Message On 16/03/2023 22:55, dn via Python-list wrote: > Do you make use of your IDE's expansionist tendencies, and if-so, which > ones? When I'm writing Java/C++/C# yes, I need all the IDE help I can get. Netb

Re: Fwd: About the Python

2023-01-02 Thread Michael Torrie
On 1/1/23 22:27, Ramya M wrote: > This is from JNN College of Engineering, Shimoga. we are facing some > problems while using python. Please can you resolve this issue. Without any further information on your part, we can only guess at what the problems might be. Crystal ball says that Thomas' su

Re: Fwd: About the Python

2023-01-02 Thread Mats Wichmann
On 1/2/23 10:32, Thomas Passin wrote: 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 w

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 t

Fwd: About the Python

2023-01-02 Thread Ramya M
-- Forwarded message - From: Ramya M Date: Mon, Jan 2, 2023, 9:58 AM Subject: About the Python To: This is from JNN College of Engineering, Shimoga. we are facing some problems while using python. Please can you resolve this issue. We are using python 3.11.1 (64 bit) for window

Fwd: pygame.midi input/output not working

2022-12-21 Thread Patrick EGLOFF
Hi Thomas, Thanks for the answer AND solution ! That was it... shame on me, I didn't notice this warning. I uninstalled 3.11.1 and installed 3.10.9, and my software is back to live ! Now I have to figure out another problem. I will make another post about this serial weird behavior. Thanks for

Re: Fwd: Installation hell

2022-12-20 Thread Edmondo Giovannozzi
Personally I use winpython: https://winpython.github.io/ That have all the scientific packages already available. It can run without being installed and uses spyder as an IDE (for small projects it's ok). And, I can import pygame (even though I have not tested if everything works) in python 3.11

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 profi

Re: Fwd: Installation hell

2022-12-20 Thread Eryk Sun
On 12/19/22, Chris Angelico wrote: > On Tue, 20 Dec 2022 at 09:12, Thomas Passin wrote: > >> @echo off >> setlocal >> : Find effective drive for this file. >> set ed=%~d0 >> path %ed%\python37\Scripts;%ed%\python37;%PATH% For reference, in case not everyone on the list knows what "%~d0" means, t

Re: Fwd: Installation hell

2022-12-19 Thread Chris Angelico
On Tue, 20 Dec 2022 at 10:01, Thomas Passin wrote: > > 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 c

Re: Fwd: Installation hell

2022-12-19 Thread Grant Edwards
On 2022-12-19, Chris Angelico wrote: > So much easier to do on a Unix-like system, where you don't need to > concern yourself with "effective drive" and can simply use relative > paths. I know we're not here to bash Windows, but... drive letters > really need to just die already. They needed to

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 Chris Angelico
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 for this file. > set ed=%~d0 > path

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 install

Re: Fwd: Installation hell

2022-12-19 Thread Thomas Passin
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 install stuff correctly (leaving a working environm

Re: Fwd: Installation hell

2022-12-19 Thread Mats Wichmann
On 12/19/22 13:34, j via Python-list 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 install stuff correctly (leaving a work

Re: Fwd: Installation hell

2022-12-19 Thread j via Python-list
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 install stuff correctly (leaving a working environment). If it won't then give clear

RE: Fwd: Installation hell

2022-12-19 Thread Jim Schwartz
ending an email? Ask for a refund on your compsci degree. -Original Message- From: Python-list On Behalf Of DFS Sent: Monday, December 19, 2022 12:58 PM To: python-list@python.org Subject: Re: Fwd: Installation hell On 12/18/2022 6:50 AM, Jim Lewis wrote: > I'm an occasional us

Re: Fwd: Installation hell

2022-12-19 Thread DFS
On 12/18/2022 6:50 AM, Jim Lewis wrote: I'm an occasional user of Python and have a degree in computer science. Almost every freaking time I use Python, I go through PSH (Python Setup Hell). Sometimes a wrong version is installed. Sometimes it's a path issue. Or exe naming confusion: python, pyth

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 v

Re: Fwd: Installation hell

2022-12-19 Thread j via Python-list
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). It ain't good enough. And I like python. jan On 18/12/2022 11:50, Jim Lewis wrote: I'm an occasional use

Re: Fwd: Installation hell

2022-12-18 Thread Chris Angelico
On Mon, 19 Dec 2022 at 06:10, Mats Wichmann wrote: > Why? Python is a command-line tool to process a language, Similar to > many other languages - Go, for example. Or a C/C++ compiler. *Or* you > can choose to use someone's wrapping of that process inside an > Integrated Development Environment.

Re: Fwd: Installation hell

2022-12-18 Thread Mats Wichmann
On 12/18/22 04:50, Jim Lewis wrote: I'm an occasional user of Python and have a degree in computer science. Almost every freaking time I use Python, I go through PSH (Python Setup Hell). Sometimes a wrong version is installed. Sometimes it's a path issue. Or exe naming confusion: python, python3,

Fwd: Installation hell

2022-12-18 Thread Jim Lewis
I'm an occasional user of Python and have a degree in computer science. Almost every freaking time I use Python, I go through PSH (Python Setup Hell). Sometimes a wrong version is installed. Sometimes it's a path issue. Or exe naming confusion: python, python3, phthon311, etc. Or library compatibil

Re: Fwd: Issues in python 3.11.0 (64-bit) installation

2022-11-03 Thread Thomas Passin
I just downloaded the 64-bit Windows installer. On my Windows 10 machine, both "py launcher" and "available for all users" options were available. They were available whether I checked the "administrative" box or not. Note that when I unchecked "administrative", then the "available for all use

Re: Fwd: Issues in python 3.11.0 (64-bit) installation

2022-11-03 Thread dn
On 04/11/2022 04.20, Suresh Babu wrote: I downloaded the latest version of python i.e. python 3.11.0 ( 64-bit) in my laptop recently. But the " py launcher " and " available for all users " option is not working in the customization menu of python 3.11.0 . Kindly help me in solving this issu

Fwd: Issues in python 3.11.0 (64-bit) installation

2022-11-03 Thread Suresh Babu
-- Forwarded message - From: Suresh Babu Date: Thu, 3 Nov 2022, 16:37 Subject: Issues in python 3.11.0 (64-bit) installation To: Sir/ Madam, I downloaded the latest version of python i.e. python 3.11.0 ( 64-bit) in my laptop recently. But the " py launcher " and " available

Re: Fwd: A typing question

2022-11-01 Thread Paulo da Silva
Às 21:08 de 31/10/22, Peter J. Holzer escreveu: On 2022-10-30 11:26:56 +0100, Peter J. Holzer wrote: On 2022-10-29 23:59:44 +0100, Paulo da Silva wrote: The funny thing is that if I replace foos by Foos it works because it gets known by the initial initialization :-) !

Re: Fwd: A typing question

2022-10-31 Thread Peter J. Holzer
On 2022-10-30 20:43:23 +0100, Peter Otten wrote: > On 30/10/2022 14:37, Peter J. Holzer wrote: > > On 2022-10-30 09:23:27 -0400, Thomas Passin wrote: > > > On 10/30/2022 6:26 AM, Peter J. Holzer wrote: > > > > On 2022-10-29 23:59:44 +0100, Paulo da Silva wrote: > > > > > The funny thing is that if

Re: Fwd: A typing question

2022-10-31 Thread Peter J. Holzer
On 2022-10-30 11:26:56 +0100, Peter J. Holzer wrote: > On 2022-10-29 23:59:44 +0100, Paulo da Silva wrote: > > The funny thing is that if I replace foos by Foos it works because it gets > > known by the initial initialization :-) ! > > > > > > from typing import List, Opti

Re: Fwd: A typing question

2022-10-31 Thread dn
On 01/11/2022 01.56, Stefan Ram wrote: dn writes: On 31/10/2022 11.44, Chris Angelico wrote: ... I'm curious to what extent sloppy English correlates with sloppy code. ... When it comes to CVs/resumés (see what I did there?), I must admit that the most egregious of errors in spelling or gra

Re: Fwd: A typing question

2022-10-30 Thread dn
On 31/10/2022 11.44, Chris Angelico wrote: On Mon, 31 Oct 2022 at 09:39, dn wrote: On 31/10/2022 06.06, Stefan Ram wrote: Paulo da Silva writes: Is there anything to do without loosing my script structure and usual practice? to lose (losing): to stop having something to loose (loo

Re: Fwd: A typing question

2022-10-30 Thread Chris Angelico
On Mon, 31 Oct 2022 at 09:39, dn wrote: > > On 31/10/2022 06.06, Stefan Ram wrote: > > Paulo da Silva writes: > >> Is there anything to do without loosing my script structure and usual > >> practice? > > > >to lose (losing): to stop having something > >to loose (loosing): to let or make l

Re: Fwd: A typing question

2022-10-30 Thread dn
On 31/10/2022 06.06, Stefan Ram wrote: Paulo da Silva writes: Is there anything to do without loosing my script structure and usual practice? to lose (losing): to stop having something to loose (loosing): to let or make loose (see next line) loose (adj.): not firmly attached/tied/fas

Re: Fwd: A typing question

2022-10-30 Thread dn
On 30/10/2022 17.48, Paulo da Silva wrote: Às 02:32 de 30/10/22, dn escreveu: On 30/10/2022 11.59, Paulo da Silva wrote: Solution (below) will not work if the mention of Foos in GLOBALS is a forward-reference. Either move GLOBALS to suit, or surround "Foos" with quotes. This is the problem for

Re: Fwd: A typing question

2022-10-30 Thread Paulo da Silva
Às 17:06 de 30/10/22, Stefan Ram escreveu: Paulo da Silva writes: Is there anything to do without loosing my script structure and usual practice? to lose (losing): to stop having something to loose (loosing): to let or make loose (see next line) loose (adj.): not firmly attached/tied

Re: Fwd: A typing question

2022-10-30 Thread Paulo da Silva
Às 22:34 de 29/10/22, dn escreveu: Out of interest, tested snippet in PyCharm, cf native-mypy. It flags the original:     GLOBALS.foos: Optional[Foos]=Foos() but not the fall-back:     GLOBALS.foos=Foos() Must admit, the first query coming to mind was: why is the typing taking place at i

Re: Fwd: A typing question

2022-10-30 Thread Paulo da Silva
Às 10:26 de 30/10/22, Peter J. Holzer escreveu: On 2022-10-29 23:59:44 +0100, Paulo da Silva wrote: Às 22:34 de 29/10/22, dn escreveu: Solution (below) will not work if the mention of Foos in GLOBALS is a forward-reference. Either move GLOBALS to suit, or surround "Foos" with quotes.

Re: Fwd: A typing question

2022-10-30 Thread Paulo da Silva
Às 02:32 de 30/10/22, dn escreveu: On 30/10/2022 11.59, Paulo da Silva wrote: Solution (below) will not work if the mention of Foos in GLOBALS is a forward-reference. Either move GLOBALS to suit, or surround "Foos" with quotes. This is the problem for me. So far, without typing, I used to have

Re: Fwd: A typing question

2022-10-30 Thread Peter Otten
On 30/10/2022 14:37, Peter J. Holzer wrote: On 2022-10-30 09:23:27 -0400, Thomas Passin wrote: On 10/30/2022 6:26 AM, Peter J. Holzer wrote: On 2022-10-29 23:59:44 +0100, Paulo da Silva wrote: The funny thing is that if I replace foos by Foos it works because it gets known by the initial initi

Re: Fwd: A typing question

2022-10-30 Thread Peter J. Holzer
On 2022-10-30 09:23:27 -0400, Thomas Passin wrote: > On 10/30/2022 6:26 AM, Peter J. Holzer wrote: > > On 2022-10-29 23:59:44 +0100, Paulo da Silva wrote: > > > The funny thing is that if I replace foos by Foos it works because it gets > > > known by the initial initialization :-) ! > > > > > > __

Re: Fwd: A typing question

2022-10-30 Thread Thomas Passin
On 10/30/2022 6:26 AM, Peter J. Holzer wrote: On 2022-10-29 23:59:44 +0100, Paulo da Silva wrote: Às 22:34 de 29/10/22, dn escreveu: Solution (below) will not work if the mention of Foos in GLOBALS is a forward-reference. Either move GLOBALS to suit, or surround "Foos" with quotes.

Re: Fwd: A typing question

2022-10-30 Thread Peter J. Holzer
On 2022-10-29 23:59:44 +0100, Paulo da Silva wrote: > Às 22:34 de 29/10/22, dn escreveu: > > Solution (below) will not work if the mention of Foos in GLOBALS is a > > forward-reference. > > Either move GLOBALS to suit, or surround "Foos" with quotes. ^^^

Re: Fwd: A typing question

2022-10-29 Thread dn
On 30/10/2022 11.59, Paulo da Silva wrote: Solution (below) will not work if the mention of Foos in GLOBALS is a forward-reference. Either move GLOBALS to suit, or surround "Foos" with quotes. This is the problem for me. So far, without typing, I used to have some config and globals classes, mo

Re: Fwd: A typing question

2022-10-29 Thread Paulo da Silva
Às 22:34 de 29/10/22, dn escreveu: Out of interest, tested snippet in PyCharm, cf native-mypy. It flags the original:     GLOBALS.foos: Optional[Foos]=Foos() but not the fall-back:     GLOBALS.foos=Foos() Must admit, the first query coming to mind was: why is the typing taking place at i

Re: Fwd: A typing question

2022-10-29 Thread dn
Out of interest, tested snippet in PyCharm, cf native-mypy. It flags the original: GLOBALS.foos: Optional[Foos]=Foos() but not the fall-back: GLOBALS.foos=Foos() Must admit, the first query coming to mind was: why is the typing taking place at initialisation-time, rather than within

Fwd: A typing question

2022-10-29 Thread Sam Ezeh
Do you want the following? ``` from typing import List, Optional class GLOBALS: foos: Optional[Foos] = None class Foo: def __init__(self): pass class Foos: Foos: List[Foo] = [] def __init__(self): pass GLOBALS.foos = Foos() ``` Kind regards, Sam Ezeh On S

Re: Fwd: Can you help me with this Python question?

2022-10-13 Thread Axy via Python-list
Well, although I never used pandas and never will, if that's about artworks, that's mine. Obviously, you need to iterate columns and sum values returned by the snippet you provided. A quick search tells us to use colums property. So, it might look like this: na_sum = sum(df[name].isnull().su

Fwd: Can you help me with this Python question?

2022-10-13 Thread Sarah Wallace
For a python class I am taking.. In this challenge, you'll be working with a DataFrame that contains data about artworks, and it contains many missing values. Your task is to create a variable called na_sum that contains the total number of missing values in the DataFrame. When that's completed,

Fwd:

2022-09-09 Thread Jan Poort
error by starting up windows 10 i get this message -- Forwarded message - Van: Jan Poort Date: do 8 sep. 2022 om 15:49 Subject: To: -- *Jan Poort* -- https://mail.python.org/mailman/listinfo/python-list

Fwd: [pandas-dev/pandas] BUG: I CANT TO RECIEVING OUTPUT FROM DATAFRAME (Issue #48256)

2022-08-25 Thread נתי שטרן
הודעה שהועברה -- מאת: *נתי שטרן* תאריך: יום שישי, 26 באוגוסט 2022 נושא: Re: [pandas-dev/pandas] BUG: I CANT TO RECIEVING OUTPUT FROM DATAFRAME (Issue #48256) אל: pandas-dev/pandas < reply+abnbjwpfil765hhzxpb3l4wbcubnzevbnhhfbdb...@reply.github.com> עותק: pandas-dev/pandas , Au

Re: Fwd: install

2022-08-17 Thread dn
On 18/08/2022 08.54, Sherea Washington wrote: > -- Forwarded message - > From: Sherea Washington > Date: Wed, Aug 17, 2022 at 4:41 PM > Subject: install > To: > > > Hi > > I'm trying to install this. I have used all of these options below, but I > can't anywhere. it keeps lo

Fwd: install

2022-08-17 Thread Sherea Washington
-- Forwarded message - From: Sherea Washington Date: Wed, Aug 17, 2022 at 4:41 PM Subject: install To: Hi I'm trying to install this. I have used all of these options below, but I can't anywhere. it keeps looping back to this when I click on the download. Please help. cell 843-

Fwd: Simple TCP proxy

2022-07-28 Thread Morten W. Petersen
Forwarding to the list as well. -- Forwarded message - From: Morten W. Petersen Date: Thu, Jul 28, 2022 at 11:22 PM Subject: Re: Simple TCP proxy To: Chris Angelico Well, an increase from 0.1 seconds to 0.2 seconds on "polling" in each thread whether or not the connection shoul

Re: Fwd: timedelta object recursion bug

2022-07-28 Thread Dieter Maurer
Please stay on the list (such that others can help, too) Ben Hirsig wrote at 2022-7-29 06:53 +1000: >Thanks for the replies, I'm just trying to understand why this would be >useful? > >E.g. why does max need a min/max/resolution, and why would these attributes >themselves need a min/max/resolution

Re: Fwd: timedelta object recursion bug

2022-07-28 Thread Dieter Maurer
Ben Hirsig wrote at 2022-7-28 19:54 +1000: >Hi, I noticed this when using the requests library in the response.elapsed >object (type timedelta). Tested using the standard datetime library alone >with the example displayed on >https://docs.python.org/3/library/datetime.html#examples-of-usage-timedel

Re: Fwd: timedelta object recursion bug

2022-07-28 Thread Jon Ribbens via Python-list
On 2022-07-28, Ben Hirsig wrote: > Hi, I noticed this when using the requests library in the response.elapsed > object (type timedelta). Tested using the standard datetime library alone > with the example displayed on > https://docs.python.org/3/library/datetime.html#examples-of-usage-timedelta >

Re: Fwd: timedelta object recursion bug

2022-07-28 Thread MRAB
On 28/07/2022 10:54, Ben Hirsig wrote: Hi, I noticed this when using the requests library in the response.elapsed object (type timedelta). Tested using the standard datetime library alone with the example displayed on https://docs.python.org/3/library/datetime.html#examples-of-usage-timedelta

Fwd: timedelta object recursion bug

2022-07-28 Thread Ben Hirsig
Hi, I noticed this when using the requests library in the response.elapsed object (type timedelta). Tested using the standard datetime library alone with the example displayed on https://docs.python.org/3/library/datetime.html#examples-of-usage-timedelta It appears as though the timedelta object

Fwd: ml on medical images - keras

2022-07-14 Thread נתי שטרן
-- Forwarded message - מאת: נתי שטרן ‪Date: יום א׳, 10 ביולי 2022, 13:01‬ Subject: Re: ml on medical images - keras To: Neuroimaging analysis in Python p.s. all the pictures are in PNG FORMAT ‫בתאריך יום א׳, 10 ביולי 2022 ב-13:01 מאת נתי שטרן <‪nsh...@gmail.com‬‏>:‬ > What's t

Fwd: argparse modify

2022-06-23 Thread נתי שטרן
הודעה שהועברה -- מאת: *Dieter Maurer* תאריך: יום שישי, 24 ביוני 2022 נושא: argparse modify אל: נתישטרן עותק: "python-list-requ...@python.org" , " python-list@python.org" נתי שטרן wrote at 2022-6-24 08:28 +0300: >I copied code from argparse library and modified it > >בתאריך

Fwd: my vs code isnt working

2022-06-11 Thread סאסי סאס
-- Forwarded message - מאת: סאסי סאס ‪Date: שבת, 11 ביוני 2022 ב-11:36‬ Subject: my vs code isnt working To: what shoud i do to make that work i tried reinstalling and it still didnt work [image: image.png] -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Could not load correctly

2022-05-23 Thread Mats Wichmann
On 5/21/22 09:14, Robert Loomis wrote: Forwarded Message Subject: Could not load correctly Date: Sat, 21 May 2022 10:58:39 -0400 From: Robert Loomis Reply-To: b...@loomisengineering.com To: python-list@python.org I am new to python.I tried to download

Fwd: Could not load correctly

2022-05-22 Thread Robert Loomis
Forwarded Message Subject:Could not load correctly Date: Sat, 21 May 2022 10:58:39 -0400 From: Robert Loomis Reply-To: b...@loomisengineering.com To: python-list@python.org I am new to python.I tried to download it to a virtual environment since I h

Re: Fwd: Do projects exist to audit PyPI-hosted packages?

2022-05-06 Thread Mats Wichmann
On 5/6/22 09:24, Sam Ezeh wrote: > -- Forwarded message - > From: Sam Ezeh > Date: Fri, 6 May 2022, 15:29 > Subject: Re: Do projects exist to audit PyPI-hosted packages? > To: Skip Montanaro > > > I've had similar thoughts in the past. I don't know of anything but I > wonder if

Fwd: Do projects exist to audit PyPI-hosted packages?

2022-05-06 Thread Sam Ezeh
-- Forwarded message - From: Sam Ezeh Date: Fri, 6 May 2022, 15:29 Subject: Re: Do projects exist to audit PyPI-hosted packages? To: Skip Montanaro I've had similar thoughts in the past. I don't know of anything but I wonder if repositiories for other languages might have someth

Re: Fwd: Python Question re Executing a Script (dn)

2022-05-02 Thread MRAB
On 2022-05-02 17:23, Dennis Lee Bieber wrote: On Mon, 2 May 2022 20:33:02 +1200, dn declaimed the following: Perhaps an MS-Win user can help the OP, please? Not really -- at least from my viewpoint there is not enough information to perform any diagnoses... Other than to recommend th

Re: Fwd: Python Question re Executing a Script (dn)

2022-05-02 Thread Dennis Lee Bieber
On Mon, 2 May 2022 20:33:02 +1200, dn declaimed the following: >Perhaps an MS-Win user can help the OP, please? Not really -- at least from my viewpoint there is not enough information to perform any diagnoses... Other than to recommend that, if the OP initially posted to the list/newsgr

Fwd: Python Question re Executing a Script (dn)

2022-05-02 Thread dn
Perhaps an MS-Win user can help the OP, please? -- Regards, =dn--- Begin Message --- Hello dn, Thanks for your reply. My apologies, I should have provided more background information. I was recently running a Windows 10 machine and I believe it was running Python 3.8. All I did was create a

Fwd: Proposal: Syntax for attribute initialisation in __init__ methods

2022-04-16 Thread Sam Ezeh
I've just seen Pablo's very recent post on python-ideas so I thought I'd link it here. [1] [1]: https://mail.python.org/archives/list/python-id...@python.org/message/SCXHEWCHBJN3A7DPGGPPFLSTMBLLAOTX/ Kind Regards, Sam Ezeh On Fri, 15 Apr 2022 at 22:57, Ethan Furman wrote: > > On 4/15/22 04:19

Fwd: Proposal: Syntax for attribute initialisation in __init__ methods

2022-04-16 Thread Sam Ezeh
> Perhaps I'm missing the point, but what functionality or advantage(s) > does this give, over data-classes? One advantage is maintaining control over the __init__ function without having to write extra code to do so. In the linked discussion from python-ideas, it was mentioned that keyword-only a

  1   2   3   4   5   6   7   8   >