Re: Goto

2017-12-28 Thread breamoreboy
On Friday, December 29, 2017 at 3:28:23 AM UTC, Ben Finney wrote: > Tim Chase writes: > > > [third-party website] > > Gives you […] > > So, it's not in Python, it's a third-party (joke) package. Hence is > probably not what Duram is asking about as “goto in Python”. > > I'm still open to learnin

Re: Goto

2017-12-28 Thread Ben Finney
Tim Chase writes: > [third-party website] > Gives you […] So, it's not in Python, it's a third-party (joke) package. Hence is probably not what Duram is asking about as “goto in Python”. I'm still open to learning what Duram meant by “goto in Python”. Rather than everyone else piling on with su

Re: Goto

2017-12-28 Thread Tim Chase
On 2017-12-29 08:42, Ben Finney wrote: > Duram writes: > > > How to use goto in python? > > Step 0: what is goto in Python? > > Step 1: that's not something that exists in Python. So why are you > asking how to use something that doesn't exist? so quick to shoot down a poor soul. http://ent

Re: Goto

2017-12-28 Thread breamoreboy
On Thursday, December 28, 2017 at 7:40:14 PM UTC, alister wrote: > On Thu, 28 Dec 2017 00:58:48 -0200, Duram wrote: > > > How to use goto in python? > > > > --- > > This email has been checked for viruses by AVG. > > http://www.avg.com > > Dont! > actually you cant - there isn't one* > > *at le

Re: Goto

2017-12-28 Thread Chris Angelico
On Fri, Dec 29, 2017 at 11:17 AM, bartc wrote: > On 28/12/2017 21:42, Ben Finney wrote: >> >> Duram writes: >> >>> How to use goto in python? >> >> >> Step 0: what is goto in Python? >> >> Step 1: that's not something that exists in Python. So why are you >> asking how to use something that doesn

Re: Goto

2017-12-28 Thread Ben Finney
bartc writes: > But it's not accessible from the language. Another way to say that (and the way I said the same thing) is: It doesn't exist in Python. -- \ “I went to the museum where they had all the heads and arms | `\ from the statues that are in all the other museums.” —Ste

Re: Goto

2017-12-28 Thread bartc
On 28/12/2017 21:42, Ben Finney wrote: Duram writes: How to use goto in python? Step 0: what is goto in Python? Step 1: that's not something that exists in Python. So why are you asking how to use something that doesn't exist? Goto exists in the form of the JUMP_ABSOLUTE byte-code. But i

Re: PyWin32 installer question

2017-12-28 Thread Paul Moore
On 28 December 2017 at 17:49, Skip Montanaro wrote: > pip install py2exe_py2 pypiwin32 Pillow lockfile > Collecting py2exe_py2 > Could not find a version that satisfies the requirement py2exe_py2 > (from versions: ) > > That error message isn't telling me much about why the requirement > isn't sat

Re: Goto

2017-12-28 Thread Ben Finney
Duram writes: > How to use goto in python? Step 0: what is goto in Python? Step 1: that's not something that exists in Python. So why are you asking how to use something that doesn't exist? -- \“[R]ightful liberty is unobstructed action, according to our | `\will, within li

Re: Goto

2017-12-28 Thread alister via Python-list
On Thu, 28 Dec 2017 00:58:48 -0200, Duram wrote: > How to use goto in python? > > --- > This email has been checked for viruses by AVG. > http://www.avg.com Dont! actually you cant - there isn't one* *at least not in the core language no doubt some sick person will have manager to hack togethe

RE: Python Software Installation - Failed

2017-12-28 Thread Kirankumar Reddy Polu
Hi, I am trying to install Python 3.6.4 in my laptop. I am getting the following error. I also attached failure log as well in the mail. I could not change the path. It is automatically installing in C drive. Might be, this is restricted drive, so we got errors. I am not sure, but let me know a

Goto

2017-12-28 Thread Duram
How to use goto in python? --- This email has been checked for viruses by AVG. http://www.avg.com -- https://mail.python.org/mailman/listinfo/python-list

Re: PyWin32 installer question

2017-12-28 Thread Skip Montanaro
Thanks for the help, Paul. > When I took a quick look at the code, it seemed to be based on a > pretty old version of Python. What version are you using? Yes, last time a Windows installer was created, Python 2.5 was still in vogue. I switched things to 2.7 with (so far) no obvious problems. I e

Re: PyWin32 installer question

2017-12-28 Thread Paul Moore
When I took a quick look at the code, it seemed to be based on a pretty old version of Python. What version are you using? If it's 2.7 (or better still, Python 3!) then you should have pip available. In which case you may be better off using pypiwin32, which is a rebundling of pywin32 as a wheel. "

win32wnet.WNetAddConnection2 issue

2017-12-28 Thread joanazpeitia
Hi guys, I've seen a few posts about this topic but could not find the solution. I am trying to connect a drive to a network drive using win32wnet.WNetAddConnection2 but I might be missing something because it does not work. This is what I have. import os import win32api import win32wnet impor

Re: GUI user input to function

2017-12-28 Thread Chris Angelico
On Thu, Dec 28, 2017 at 11:06 PM, Nico Vogeli wrote: > Am Donnerstag, 28. Dezember 2017 12:59:24 UTC+1 schrieb Chris Angelico: >> On Thu, Dec 28, 2017 at 8:38 PM, Nico Vogeli wrote: >> > Withs test, this return a correct value for the two x functions: >> > >> > from sympy import symbols >> > >> >

Re: Python goto

2017-12-28 Thread Skip Montanaro
Jorge> I would like to know if there is a goto command or something similar that Jorge> I can use in Python. Ned> Python does not have a goto statement. You have to use structured Ned> statements: for, while, try/except, yield, return, etc. Though it appears some wag has used function decorators

Re: Python goto

2017-12-28 Thread Ned Batchelder
On 12/28/17 6:43 AM, jorge.conr...@cptec.inpe.br wrote: Hi, I would like to know if there is a goto command or something similar that I can use in Python. Python does not have a goto statement. You have to use structured statements: for, while, try/except, yield, return, etc. If you sh

Re: GUI user input to function

2017-12-28 Thread Nico Vogeli
Am Donnerstag, 28. Dezember 2017 12:59:24 UTC+1 schrieb Chris Angelico: > On Thu, Dec 28, 2017 at 8:38 PM, Nico Vogeli wrote: > > Withs test, this return a correct value for the two x functions: > > > > from sympy import symbols > > > > x = symbols('x') > > f1 = eval(input('function 1 ')) > > f2 =

Re: GUI user input to function

2017-12-28 Thread Chris Angelico
On Thu, Dec 28, 2017 at 8:38 PM, Nico Vogeli wrote: > Withs test, this return a correct value for the two x functions: > > from sympy import symbols > > x = symbols('x') > f1 = eval(input('function 1 ')) > f2 = eval(input('function 2 ')) > What are you typing as input? It's hard to grok your code

Python goto

2017-12-28 Thread jorge . conrado
Hi, I would like to know if there is a goto command or something similar that I can use in Python. Thanks, Conrado -- https://mail.python.org/mailman/listinfo/python-list

GUI user input to function

2017-12-28 Thread Nico Vogeli
Hello again I think my question got lost in all the others raised, so here I am again :P So, I tried my best, was looking into the eval and exec function, but still no succsess.. Maybe it helps when I provide the code I want to implement: def newton_verfahren(self): if self.cB_1.