Re: Stock quote API ?

2018-03-10 Thread Chris Angelico
On Sun, Mar 11, 2018 at 4:18 PM, Irv Kalb wrote: > Hi, > > I teach courses on beginning Python (Python3). In one of my topics, I > explain how we can write simple programs that reach out to the internet and > download data (request/response). > > I show a number of examples using: urllib.requ

Stock quote API ?

2018-03-10 Thread Irv Kalb
Hi, I teach courses on beginning Python (Python3). In one of my topics, I explain how we can write simple programs that reach out to the internet and download data (request/response). I show a number of examples using: urllib.request.urlopen( ) to get things like weather data, currency ex

Re: Flask: request vs Request

2018-03-10 Thread Andrew Z
that's right there is no Request used. So what for the Request is used for then? Here it is explained that request is for current request... that's kinda of clears the air a bit. but where do i find it's m

Re: Flask: request vs Request

2018-03-10 Thread Christopher Mullins
In the code you linked, I don't see where the *R*equest is used. The request variable is setup by flask when you annotate the function with the resource endpoint and POST method. It contains the content of the request which can be converted to json if that content type was specified. -- https://ma

Flask: request vs Request

2018-03-10 Thread Andrew Z
hello, i'm playing with Michael Grinberg's "Restful API with python and flask" tutorial . And i'm very much confused whats the difference between request and Request. the "request" is introduced @ the point he

Re: Enumerating all 3-tuples (Posting On Python-List Prohibited)

2018-03-10 Thread Ben Bacarisse
Lawrence D’Oliveiro writes: > On Sunday, March 11, 2018 at 3:24:05 AM UTC+13, Ben Bacarisse wrote: >> Unfortunately my Python is not up to using iterators well enough to >> avoid a "maximum recursion depth exceeded" error. > > My solution only needed recursion up to a depth equal to the length of

Re: Enumerating all 3-tuples

2018-03-10 Thread Ben Bacarisse
bartc writes: > On 10/03/2018 20:06, Ben Bacarisse wrote: >>> On 10/03/2018 14:23, Ben Bacarisse wrote: Off topic: I knocked up this Haskell version as a proof-of-concept: import Data.List pn n l = pn' n (map (:[]) l) where pn' n lists | n == 1

Re: Enumerating all 3-tuples

2018-03-10 Thread bartc
On 10/03/2018 20:06, Ben Bacarisse wrote: bartc writes: [repost as original seems to have gone to email; my newsreader has somehow acquired a 'Reply' button where 'Followup' normally goes.] [I thought it was intended but my reply bounced.] On 10/03/2018 14:23, Ben Bacarisse wrote: Ben Bac

Re: Enumerating all 3-tuples

2018-03-10 Thread Ben Bacarisse
bartc writes: > [repost as original seems to have gone to email; my newsreader has > somehow acquired a 'Reply' button where 'Followup' normally goes.] [I thought it was intended but my reply bounced.] > On 10/03/2018 14:23, Ben Bacarisse wrote: >> Ben Bacarisse writes: > >> Off topic: I knock

Re: Enumerating all 3-tuples

2018-03-10 Thread bartc
[repost as original seems to have gone to email; my newsreader has somehow acquired a 'Reply' button where 'Followup' normally goes.] On 10/03/2018 14:23, Ben Bacarisse wrote: Ben Bacarisse writes: Off topic: I knocked up this Haskell version as a proof-of-concept: import Data.List

Re: Enumerating all 3-tuples

2018-03-10 Thread Ben Bacarisse
Sorry for following up to myself again... Ben Bacarisse writes: >> ... But I think that is an easier way (no code yet though!) unless >> you are set on one particular enumeration: consider the triple as a pair >> one element of which runs over the enumeration of pairs you already >> have. Thi

Re: pip and command line

2018-03-10 Thread Terry Reedy
On 3/10/2018 12:23 PM, GISDude wrote: Hi all, I'm hoping someone could help a wannabe python coder out. I'm an aspiring Data/AI/ML coder/programmer/datafiend - that might help with my situation. In my various fits of python downloads, I've managed to download Anaconda, Anaconda is a cpython

pip and command line

2018-03-10 Thread GISDude
Hi all, I'm hoping someone could help a wannabe python coder out. I'm an aspiring Data/AI/ML coder/programmer/datafiend - that might help with my situation. In my various fits of python downloads, I've managed to download Anaconda, Pyscripter, IDLE(3.6/32 AND 64bit), IDLE 2.7. I'm thinking of Py

Initializing error

2018-03-10 Thread Harsh Bhardwaj
Plz fix this problem for me. I tried every way to fix this. Windows 7(32-bit) -- https://mail.python.org/mailman/listinfo/python-list

Initializing error

2018-03-10 Thread Harsh Bhardwaj
On Mar 5, 2018 11:16 AM, "Harsh Bhardwaj" wrote: Plz fix this problem for me. I tried every way to fix this. Windows 7(32-bit) -- https://mail.python.org/mailman/listinfo/python-list

Re: Enumerating all 3-tuples

2018-03-10 Thread Ben Bacarisse
Ben Bacarisse writes: > Steven D'Aprano writes: > >> I am trying to enumerate all the three-tuples (x, y, z) where each of x, >> y, z can range from 1 to ∞ (infinity). > ... But I think that is an easier way (no code yet though!) unless > you are set on one particular enumeration: consider t

Re: Python installer hangs in Windows 7

2018-03-10 Thread themaelstorm
On Wednesday, 7 March 2018 14:45:23 UTC+1, eng@voepassaredo.com.br wrote: > Hi! Exact same problem here! Stucked at "initializing setup", windows 7, > pyhton 3.6.4, etc, etc, etc > > However, while looking for solutions on the internet.. guess who's decided to > come to party??? Setup f

Re: Enumerating all 3-tuples

2018-03-10 Thread Paul Moore
On 10 March 2018 at 02:18, MRAB wrote: > On 2018-03-10 01:13, Steven D'Aprano wrote: >> >> I am trying to enumerate all the three-tuples (x, y, z) where each of x, >> y, z can range from 1 to ∞ (infinity). >> >> This is clearly unhelpful: >> >> for x in itertools.count(1): >> for y in itertoo