On 12/26/18, jf...@ms4.hinet.net wrote:
> I saw the code below at stackoverflow. I have a little idea about the scope
> of a class, and list comprehension and generator expressions, but still
> can't figure out why Z4 works and Z5 not. Can someone explain it? (in a
> not-too-complicated way:-)
>
>
On Thu, Dec 27, 2018 at 1:56 PM wrote:
>
> I saw the code below at stackoverflow. I have a little idea about the scope
> of a class, and list comprehension and generator expressions, but still can't
> figure out why Z4 works and Z5 not. Can someone explain it? (in a
> not-too-complicated way:-)
greetings,
1)
Z4 = sum(val for val in XS)
is same as
Z4 = sum(XS)
2)
class Foo()
can also ne written as
class Foo:
3)
in Foo.x you are using the class just to assoxiate some variables with a
name. what is the purpose of tge script / what are you trying to do?
Abdur-Rahmaan Janhangeer
htt
I saw the code below at stackoverflow. I have a little idea about the scope of
a class, and list comprehension and generator expressions, but still can't
figure out why Z4 works and Z5 not. Can someone explain it? (in a
not-too-complicated way:-)
class Foo():
XS = [15, 15, 15, 15]
Z4 =
While trying to run the Python code in PyCharm 2018.3.2 version I am getting
the below error. Can someone help?
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition
2018.3.2\helpers\pydev\pydevconsole.py", line 5, in
from _pydev_comm.rpc import mak
On 26/12/2018 19:04, Terry Reedy wrote:
On 12/26/2018 10:35 AM, Simon Connah wrote:
Hi,
I want to build a simple web crawler. I know how I am going to do it
but I have one problem.
Obviously I don't want to negatively impact any of the websites that I
am crawling so I want to implement some
On 26/12/2018 18:30, Richard Damon wrote:
On 12/26/18 10:35 AM, Simon Connah wrote:
Hi,
I want to build a simple web crawler. I know how I am going to do it
but I have one problem.
Obviously I don't want to negatively impact any of the websites that I
am crawling so I want to implement some fo
On 12/26/2018 10:35 AM, Simon Connah wrote:
Hi,
I want to build a simple web crawler. I know how I am going to do it but
I have one problem.
Obviously I don't want to negatively impact any of the websites that I
am crawling so I want to implement some form of rate limiting of HTTP
requests
On 12/26/18 10:35 AM, Simon Connah wrote:
> Hi,
>
> I want to build a simple web crawler. I know how I am going to do it
> but I have one problem.
>
> Obviously I don't want to negatively impact any of the websites that I
> am crawling so I want to implement some form of rate limiting of HTTP
> req
Hi,
I want to build a simple web crawler. I know how I am going to do it but
I have one problem.
Obviously I don't want to negatively impact any of the websites that I
am crawling so I want to implement some form of rate limiting of HTTP
requests to specific domain names.
What I'd like is
10 matches
Mail list logo