Re: Syntax Help

2020-06-10 Thread Python
Le 10/06/2020 à 18:56, John Weller a écrit : Hi I am trying to learn python. Looking at an example on the web I found this line: def plot(*args, **kwargs): What do the stars mean? That, respectively, positional arguments will be packed into a sequence of references called arg

Re: repair modify uninstall

2020-06-10 Thread Grant Edwards
On 2020-06-11, Michael Torrie wrote: > Since this comes up on a weekly basis, perhaps the installer should open > that web page to section 3.8.1 after a successful installation. Maybe > users would read that short section and not try to run the installer > over and over again. Or since that can

Re: repair modify uninstall

2020-06-10 Thread Michael Torrie
On 6/10/20 2:09 PM, DL Neil via Python-list wrote: > On 10/06/20 11:26 PM, Silvia Aminul wrote: >> I tried installing Python for windows 10 (the latest version of python >> for >> windows ) >> >> And after downloading and trying to launch it keeps saying repair modify >> uninstall

Re: Syntax Help

2020-06-10 Thread Terry Reedy
On 6/10/2020 12:56 PM, John Weller wrote: I am trying to learn python. Looking at an example on the web I found this line: def plot(*args, **kwargs): This is function definition. What do the stars mean? The python docs have an index that has a Symbols page. https://docs.python.org/3/ge

Re: How to turn a defaultdict into a normal dict.

2020-06-10 Thread Peter Otten
Antoon Pardon wrote: > The problem I face is that at the building face, I need a defaultdict > because the values are lists that are appended too. So a > defaultdict(list) is convenient in that new entries are treated as if > the value is an empty list. > > However later when I actually use it, a

Re: Syntax Help

2020-06-10 Thread DL Neil via Python-list
On 11/06/20 4:56 AM, John Weller wrote: I am trying to learn python. Looking at an example on the web I found this line: def plot(*args, **kwargs): What do the stars mean? The Python "docs" are (surprisingly, for this day-and-age) comprehensive. Try https://docs.python.org/3/tutorial/control

Re: Turning pygame apps into add-ons

2020-06-10 Thread DL Neil via Python-list
On 11/06/20 1:32 AM, elisha hollander wrote: I have a folder with my pygame apps, I want to build a program to have a nice interface to access those apps from, I want it to be like an actual computer, so, I need it to open the apps as rect of something not as external apps. Is there a way to do i

Re: repair modify uninstall

2020-06-10 Thread DL Neil via Python-list
On 10/06/20 11:26 PM, Silvia Aminul wrote: I tried installing Python for windows 10 (the latest version of python for windows ) And after downloading and trying to launch it keeps saying repair modify uninstall I tried looking for solution and it was suggested I might have do

Re: How to turn a defaultdict into a normal dict.

2020-06-10 Thread MRAB
On 2020-06-10 09:05, Antoon Pardon wrote: The problem I face is that at the building face, I need a defaultdict because the values are lists that are appended too. So a defaultdict(list) is convenient in that new entries are treated as if the value is an empty list. However later when I actually

Re: pyinstaller

2020-06-10 Thread Chris Angelico
On Thu, Jun 11, 2020 at 5:26 AM Robin Becker wrote: > > On 10/06/2020 15:02, Chris Angelico wrote: > > >> > >> The intended users are unlikely to understand how to adjust the scanner to > >> whitelist the application. > > > > Tell them to install Python from an official source, and then

repair modify uninstall

2020-06-10 Thread Silvia Aminul
Hello   I tried installing Python for windows 10 (the latest version of python for windows ) And after downloading and trying to launch it keeps saying repair modify uninstall I tried looking for solution and it was suggested I might have downloaded python twice so I uninsta

Syntax Help

2020-06-10 Thread John Weller
Hi I am trying to learn python. Looking at an example on the web I found this line: def plot(*args, **kwargs): What do the stars mean? TIA John Weller 01380 723235 07976 393631 -- https://mail.python.org/mailman/listinfo/python-list

Re: pyinstaller

2020-06-10 Thread Grant Edwards
On 2020-06-10, Robin Becker wrote: > I think we used py2exe previously and I guess that will have > the same problems as pyinstaller. Why do you guess that? -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: pyinstaller

2020-06-10 Thread Robin Becker
On 10/06/2020 15:02, Chris Angelico wrote: The intended users are unlikely to understand how to adjust the scanner to whitelist the application. Tell them to install Python from an official source, and then distribute your application as a single .py (or .pyw) file. Problem solved.

Re: pyinstaller

2020-06-10 Thread Grant Edwards
On 2020-06-10, Souvik Dutta wrote: > You might also try py2exe, in that way the user doesn't need to > install python in her/his computer. I used to use py2exe for Windows apps, and it worked well for 2.x. A couple years ago had to switch to cx_freeze due to issues with 3.x support in py2exe (th

How to turn a defaultdict into a normal dict.

2020-06-10 Thread Antoon Pardon
The problem I face is that at the building face, I need a defaultdict because the values are lists that are appended too. So a defaultdict(list) is convenient in that new entries are treated as if the value is an empty list. However later when I actually use it, accessing a key that is not pre

Re: pyinstaller

2020-06-10 Thread Mats Wichmann
On 6/10/20 8:50 AM, Calvin Spealman wrote: > On Wed, Jun 10, 2020 at 10:06 AM Chris Angelico wrote: > >> On Wed, Jun 10, 2020 at 11:49 PM Robin Becker wrote: >>> >>> I'm sure this has come up before, but a tiny pyinstaller created exe is >> being seen as malware by windows 10. >>> >>> Is there a

Re: pyinstaller

2020-06-10 Thread Robin Becker
On 10/06/2020 16:11, Souvik Dutta wrote: I found this... https://stackoverflow.com/questions/43777106/program-made-with-pyinstaller-now-seen-as-a-trojan-horse-by-avg Might be usefull, might be useless. Souvik flutter dev On Wed, Jun 10, 2020, 7:18 PM Robin Becker wrote: . thanks for the

Re: pyinstaller

2020-06-10 Thread Souvik Dutta
I found this... https://stackoverflow.com/questions/43777106/program-made-with-pyinstaller-now-seen-as-a-trojan-horse-by-avg Might be usefull, might be useless. Souvik flutter dev On Wed, Jun 10, 2020, 7:18 PM Robin Becker wrote: > I'm sure this has come up before, but a tiny pyinstaller create

Re: pyinstaller

2020-06-10 Thread Chris Angelico
On Thu, Jun 11, 2020 at 12:51 AM Calvin Spealman wrote: > > > > On Wed, Jun 10, 2020 at 10:06 AM Chris Angelico wrote: >> >> On Wed, Jun 10, 2020 at 11:49 PM Robin Becker wrote: >> > >> > I'm sure this has come up before, but a tiny pyinstaller created exe is >> > being seen as malware by windo

Re: pyinstaller

2020-06-10 Thread Calvin Spealman
On Wed, Jun 10, 2020 at 10:06 AM Chris Angelico wrote: > On Wed, Jun 10, 2020 at 11:49 PM Robin Becker wrote: > > > > I'm sure this has come up before, but a tiny pyinstaller created exe is > being seen as malware by windows 10. > > > > Is there any way to create simple single file applications

Re: pyinstaller

2020-06-10 Thread Robin Becker
On 10/06/2020 15:18, Souvik Dutta wrote: You might also try py2exe, in that way the user doesn't need to install python in her/his computer. Souvik flutter dev On Wed, Jun 10, 2020, 7:18 PM Robin Becker wrote: I'm sure this has come up before, but a tiny pyinstaller created exe is being seen

Re: pyinstaller

2020-06-10 Thread Souvik Dutta
You might also try py2exe, in that way the user doesn't need to install python in her/his computer. Souvik flutter dev On Wed, Jun 10, 2020, 7:18 PM Robin Becker wrote: > I'm sure this has come up before, but a tiny pyinstaller created exe is > being seen as malware by windows 10. > > Is there

Re: pyinstaller

2020-06-10 Thread Chris Angelico
On Wed, Jun 10, 2020 at 11:49 PM Robin Becker wrote: > > I'm sure this has come up before, but a tiny pyinstaller created exe is being > seen as malware by windows 10. > > Is there any way to create simple single file applications which don't get > this treatment? > > The intended users are unli

pyinstaller

2020-06-10 Thread Robin Becker
I'm sure this has come up before, but a tiny pyinstaller created exe is being seen as malware by windows 10. Is there any way to create simple single file applications which don't get this treatment? The intended users are unlikely to understand how to adjust the scanner to whitelist the appl

Turning pygame apps into add-ons

2020-06-10 Thread elisha hollander
I have a folder with my pygame apps, I want to build a program to have a nice interface to access those apps from, I want it to be like an actual computer, so, I need it to open the apps as rect of something not as external apps. Is there a way to do it without changing all the codes? (I can import

Appending to and removing from numpy arrays

2020-06-10 Thread Urs Thuermann
Hi, is it possible to append data to or remove data from numpy arrays like Python lists? I have some code where I currently use lists and often do things like a.append(elem) a += b del a[:-n] I am thinking of changing to numpy arrays but it seems I cannot modify numpy arrays like th