pip hangs after successful operation

2018-10-04 Thread Ryan Johnson
Hello, I am seeking some quick help, and probably am reporting bugs along the way. I apologize that this is a long email. Please let me know what I should do in the future. On Windows, pip hangs and does not install packages in the proper location (or perhaps, at all), even if pip claims it ins

Re: Calling an instance method defined without any 'self' parameter

2018-10-04 Thread Ibrahim Dalal
On Thu, Oct 4, 2018 at 10:20 PM Thomas Jollans wrote: > On 2018-10-04 10:25, Ibrahim Dalal wrote: > > class A: > > def foo(): > > print 'Hello, world!' > > > > a = A()print A.foo # print a.foo # > > >print > > type(A.foo) # > > a.foo() # TypeError: foo() takes n

Re: Calling an instance method defined without any 'self' parameter

2018-10-04 Thread Bob van der Poel
On Thu, Oct 4, 2018 at 1:25 AM Ibrahim Dalal wrote: > class A: > def foo(): > print 'Hello, world!' > > a = A()print A.foo # print a.foo # > >print > type(A.foo) # > a.foo() # TypeError: foo() takes no arguments (1 given) > A.foo() # TypeError: unbound

Re: problem

2018-10-04 Thread Terry Reedy
On 10/4/2018 6:05 AM, Rémy Dpx wrote: Hello, I’ve got a problem with my Python. What OS?, What Python version? Indeed my Idle act like if my ctrl button were always pushed ( when i press Q, it selects everything ; On all built-in keysets, Control-Q is bound to 'close-all-windows', which i

Re: Calling an instance method defined without any 'self' parameter

2018-10-04 Thread Terry Reedy
On 10/4/2018 4:25 AM, Ibrahim Dalal wrote: class A: def foo(): print 'Hello, world!' a = A()print A.foo # print a.foo # >print type(A.foo) # a.foo() # TypeError: foo() takes no arguments (1 given) A.foo() # TypeError: unbound method foo() must be ca

Re: Calling an instance method defined without any 'self' parameter

2018-10-04 Thread Thomas Jollans
On 2018-10-04 10:25, Ibrahim Dalal wrote: > class A: > def foo(): > print 'Hello, world!' > > a = A()print A.foo # print a.foo # > >print > type(A.foo) # > a.foo() # TypeError: foo() takes no arguments (1 given) > A.foo() # TypeError: unbound method foo

problem

2018-10-04 Thread Rémy Dpx
Hello, I’ve got a problem with my Python. Indeed my Idle act like if my ctrl button were always pushed ( when i press Q, it selects everything ; when i press W, it goes back in the last form) I tried to uninstall and download back and also to change the version, but my problem is still there. I h

Calling an instance method defined without any 'self' parameter

2018-10-04 Thread Ibrahim Dalal
class A: def foo(): print 'Hello, world!' a = A()print A.foo # print a.foo # >print type(A.foo) # a.foo() # TypeError: foo() takes no arguments (1 given) A.foo() # TypeError: unbound method foo() must be called with A instance as first argument (got not

Re: Help please installing Python on Windows 10

2018-10-04 Thread Sibylle Koczian
Am 03.10.2018 um 09:34 schrieb Timothy Cowell via Python-list: Could I please ask for help installing Python on Windows 10 - I've tried twice (Version 3.7 for windows) selecting the install now option. After first attempt I uninstalled and tried again. Each time it has put 4 items in the progr

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-04 Thread Chris Angelico
On Fri, Oct 5, 2018 at 12:47 AM Alister via Python-list wrote: > > On Thu, 04 Oct 2018 09:44:01 +0100, Tony van der Hoff wrote: > > > On 04/10/18 09:31, Alister via Python-list wrote: > >> On Wed, 03 Oct 2018 09:43:07 -0700, Musatov wrote: > >> > >>> On Wednesday, October 3, 2018 at 11:12:43 AM UT

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-04 Thread Alister via Python-list
On Thu, 04 Oct 2018 09:44:01 +0100, Tony van der Hoff wrote: > On 04/10/18 09:31, Alister via Python-list wrote: >> On Wed, 03 Oct 2018 09:43:07 -0700, Musatov wrote: >> >>> On Wednesday, October 3, 2018 at 11:12:43 AM UTC-5, Michael Torrie >>> wrote: On 10/03/2018 09:26 AM, Musatov wrote: >

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-04 Thread Tony van der Hoff
On 04/10/18 09:31, Alister via Python-list wrote: > On Wed, 03 Oct 2018 09:43:07 -0700, Musatov wrote: > >> On Wednesday, October 3, 2018 at 11:12:43 AM UTC-5, Michael Torrie >> wrote: >>> On 10/03/2018 09:26 AM, Musatov wrote: I don't even know where to begin! (I'm reading the Dummies book)

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-04 Thread Alister via Python-list
On Wed, 03 Oct 2018 09:43:07 -0700, Musatov wrote: > On Wednesday, October 3, 2018 at 11:12:43 AM UTC-5, Michael Torrie > wrote: >> On 10/03/2018 09:26 AM, Musatov wrote: >> > I don't even know where to begin! (I'm reading the Dummies book) >> >> If you have no experience in computer programming,