Στις 27/10/2013 4:24 πμ, ο/η Piet van Oostrum έγραψε:
Piet van Oostrum writes:
Νίκος Αλεξόπουλος writes:
There is no set of cookie returned back when visitor comes from a referer.
Isn't this strange?
No matter if you visit a webpage as a direct hit or via a referer the
cookie on the visito
:
On Sun, Oct 27, 2013 at 03:35:40PM +1100, Chris Angelico wrote:
> On Sun, Oct 27, 2013 at 2:32 PM, Steven D'Aprano
> wrote:
> > If anyone wants to modify the script to determine the ratio of posters,
> > rather than posts, using GG, be my guest.
>
> And if anyone does, do please post the resul
On Sun, Oct 27, 2013 at 3:28 PM, Ben Finney wrote:
> Chris Angelico writes:
>
>> It's very common to want to know what directory you're in - it's a
>> good way to find data files.
>
> That's a naive way to do it (though it's often good enough, for a
> program only used on one system).
I never sa
On 10/26/2013 10:28 PM, Ben Finney wrote:
> Chris Angelico writes:
>
>> It's very common to want to know what directory you're in - it's a
>> good way to find data files.
>
> That's a naive way to do it (though it's often good enough, for a
> program only used on one system).
>
> For programs i
On 10/26/2013 07:45 PM, rusi wrote:
> On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote:
>> Rusi said:
>>
>> "Users of GG are requested to read and follow these instructions
>> https://wiki.python.org/moin/GoogleGroupsPython "
>>
>> Seriously, it's not exactly clear what prot
On 10/26/2013 04:15 PM, Chris Angelico wrote:
> On Sun, Oct 27, 2013 at 2:05 AM, wrote:
>> The large number of posts here from GG would suggest
>> that the readership there is substantial, and the decline in
>> "web-1.0" tools (usenet, mailing lists, etc) is additional
>> evidence that the number
On 10/26/2013 07:25 AM, Chris Angelico wrote:
> On Sat, Oct 26, 2013 at 11:15 PM, rusi wrote:
>> tl;dr I think Mark's scoldings in this regard will work if they come not
>> just from him but from any and every one. They are likely to have a larger
>> subscription if you would agree to change: "
On 10/26/2013 09:38 AM, Mark Lawrence wrote:
> On 26/10/2013 15:58, ru...@yahoo.com wrote:
>> That's odd, because in
>>https://groups.google.com/d/msg/comp.lang.python/FFAe5sJ7kQ4/GmDtHitY50QJ
>> I responded to a direct question from you about problems
>> with Thunderbird. If you mean instead
On Sun, Oct 27, 2013 at 2:32 PM, Steven D'Aprano
wrote:
> If anyone wants to modify the script to determine the ratio of posters,
> rather than posts, using GG, be my guest. I'd be interested in the
> answer, but not interested enough to actually do the work myself.
And if anyone does, do please
On 10/26/2013 11:24 AM, Steven D'Aprano wrote:
> On Sat, 26 Oct 2013 08:05:27 -0700, rurpy wrote:
>> On 10/25/2013 08:40 PM, Steven D'Aprano wrote:
> [...]
>> However, looking now, I see you pointed out that Peter originally
>> cross-posted his two messages to four groups:
>
> I think you are conf
On 10/26/2013 05:17 PM, theelder...@gmail.com wrote:
> I apologize but I do not understand what you mean by "lack of
> context." I have taken Chris' words into consideration, for my
> previous post was supposed to be my last (I just had to say thank
> you). This is my first google groups post, so I
Chris Angelico writes:
> It's very common to want to know what directory you're in - it's a
> good way to find data files.
That's a naive way to do it (though it's often good enough, for a
program only used on one system).
For programs intending to be used across many systems, the data files
of
Peter Cacioppi writes:
> Am I the only one who finds this function super useful?
>
> def _code_file() :
> return os.path.abspath(inspect.getsourcefile(_code_file))
I've used ‘os.path.dirname(os.path.abspath(__file__))’ to find the
directory containing the current file, in the past. But that
On 10/26/2013 06:11 PM, Nick the Gr33k wrote:
> Στις 27/10/2013 2:52 πμ, ο/η Nick the Gr33k έγραψε:
>> Ah foun it had to change in you code this line:
>> key = host, city, useros, browser, ref
>>
>> to this line:
>>
>> key = host, city, useros, browser
>>
>> so 'ref' would
On Sat, 26 Oct 2013 19:23:43 -0700, Peter Cacioppi wrote:
> Am I the only one who finds this function super useful?
>
> def _code_file() :
> return os.path.abspath(inspect.getsourcefile(_code_file))
>
>
> I've got one in every script. It's the only one I have to copy around.
> For my workfl
There's been a bit of a discussion about how prevalent Google Groups
users are in this forum. This is a good opportunity to use one of
Python's standard library modules to scan through the comp.lang.python
newsgroup and find out. So here's some code to do so:
import nntplib
import sys
s = nntp
On Sat, 26 Oct 2013 20:41:58 -0500, Tim Chase wrote:
> I'd be just as happy if Python provided a "sloppy string compare"
> that ignored case, diacritical marks, and the like.
Simply ignoring diactrics won't get you very far.
Most languages which use diactrics have standard conversions, e.g.
ö ->
On Sun, Oct 27, 2013 at 1:52 PM, Gary Herron
wrote:
> Huh? In what kind of a workflow are you running a python file without
> knowing *what* file you are runnung?
It's very common to want to know what directory you're in - it's a
good way to find data files.
ChrisA
--
https://mail.python.org/m
On 10/26/2013 07:23 PM, Peter Cacioppi wrote:
Am I the only one who finds this function super useful?
def _code_file() :
return os.path.abspath(inspect.getsourcefile(_code_file))
I've got one in every script. It's the only one I have to copy around. For my
workflow ... so handy.
I've go
Strange. I almost never want to know the location of the file that's
executing, and when I do, I just reference the __file__ module level
attribute.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Piet van Oostrum writes:
> Νίκος Αλεξόπουλος writes:
>
>> There is no set of cookie returned back when visitor comes from a referer.
>>
>> Isn't this strange?
>> No matter if you visit a webpage as a direct hit or via a referer the
>> cookie on the visitor's browser should have been present.
>>
Am I the only one who finds this function super useful?
def _code_file() :
return os.path.abspath(inspect.getsourcefile(_code_file))
I've got one in every script. It's the only one I have to copy around. For my
workflow ... so handy.
I've got os.path.dirname aliased to dn, so its dn(_code_
On Sun, Oct 27, 2013 at 1:05 PM, Steven D'Aprano
wrote:
> On Sat, 26 Oct 2013 21:11:55 -0400, Roy Smith wrote:
>
>> In article ,
>> Dennis Lee Bieber wrote:
>>
>>> Compared to Baudot, both ASCII and EBCDIC were probably considered
>>> wondrous.
>>
>> Wonderous, indeed. Why would anybody ever ne
On 2013-10-26 21:54, Roy Smith wrote:
> In article ,
> Tim Chase wrote:
>> I'd be just as happy if Python provided a "sloppy string compare"
>> that ignored case, diacritical marks, and the like.
>
> The problem with putting fuzzy matching in the core language is
> that there is no general agree
Hi
In the process of trying to learn python, django, mysql and
virtualenvwrapper, I have created two projects and a mess. How can I
strip everything from a Debian, Wheezy, linux system. The files are all
over the place. Much of the information in this area is for Mac or
Windoz systems that do
On Sat, 26 Oct 2013 21:11:55 -0400, Roy Smith wrote:
> In article ,
> Dennis Lee Bieber wrote:
>
>> Compared to Baudot, both ASCII and EBCDIC were probably considered
>> wondrous.
>
> Wonderous, indeed. Why would anybody ever need more than one case of
> the alphabet? It's almost as absurd a
Rusi said :
"Please do! If I were in charge I would say "Patches welcome!"
Well, I don't really know what the GG best practice ought to be here.
What I am doing now (manually copying whatever I need to quote to give some
context) seems to be tolerable to law enforcement (I guess). But I'm mini
On Sun, Oct 27, 2013 at 12:45 PM, rusi wrote:
> Yes... that page is longer and more confusing than necessary.
> 1. The double-posting bit is unnecessary -- not been happening after the
> 'new' GG.
> 2. The missing attributions problem is new and needs to be added
> 3. The main message of that pag
In article ,
Tim Chase wrote:
> I'd be just as happy if Python provided a "sloppy string compare"
> that ignored case, diacritical marks, and the like.
The problem with putting fuzzy matching in the core language is that
there is no general agreement on how it's supposed to work.
There are, h
On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote:
> Rusi said:
>
> "Users of GG are requested to read and follow these instructions
> https://wiki.python.org/moin/GoogleGroupsPython "
>
>
> Seriously, it's not exactly clear what protocol GG users are expected follow
> to m
On 2013-10-26 22:24, Steven D'Aprano wrote:
> Why on earth would you want to throw away perfectly good
> information?
The main reason I've needed to do it in the past is for normalization
of search queries. When a user wants to find something containing
"pingüino", I want to have those results c
In article ,
Piet van Oostrum wrote:
> ÃÎªÎ¯ÎºÎ¿Ï ÎλεξÏÏοÏ
Î»Î¿Ï writes:
>
> > There is no set of cookie returned back when visitor comes from a referer.
> >
> > Isn't this strange?
> > No matter if you visit a webpage as a direct hit or via a referer the
> > cookie on the visitor's
On Sun, Oct 27, 2013 at 8:26 AM, Mark Lawrence wrote:
> On 26/10/2013 20:12, Joaquin Abian wrote:
>>
>> Is there any updated roadmap/schedule for the new python.org site ?
>> It has been in beta mode at http://preview.python.org/ for several months
>> but I can not find in there any indication of
Νίκος Αλεξόπουλος writes:
> There is no set of cookie returned back when visitor comes from a referer.
>
> Isn't this strange?
> No matter if you visit a webpage as a direct hit or via a referer the
> cookie on the visitor's browser should have been present.
>
> But it can only can be found and r
In article ,
Dennis Lee Bieber wrote:
> Compared to Baudot, both ASCII and EBCDIC were probably considered
> wondrous.
Wonderous, indeed. Why would anybody ever need more than one case of
the alphabet? It's almost as absurd as somebody wanting to put funny
little marks on top of their vowel
Στις 27/10/2013 2:52 πμ, ο/η Nick the Gr33k έγραψε:
Ah foun it had to change in you code this line:
key = host, city, useros, browser, ref
to this line:
key = host, city, useros, browser
so 'ref' wouldnt be calculated in the unique combination key.
I'am still trying
On Sun, Oct 27, 2013 at 10:56 AM, wrote:
> Yes, crystal clear. Thank you. Since I am writing this post, I have one final
> question. I got my code to work for a multithreaded web server, how do I test
> if it can handle multiple threads?
Easy! Just make sure the threads take a good bit of time
On Saturday, October 26, 2013 4:36:04 PM UTC-7, Mark Lawrence wrote:
> That's okay, everybody has to start somewhere :)
>
>
>
> A definition from http://www.thefreedictionary.com/context "The part of
>
> a text or statement that surrounds a particular word or passage and
>
> determines its
Στις 27/10/2013 2:31 πμ, ο/η Nick the Gr33k έγραψε:
Στις 26/10/2013 9:33 μμ, ο/η ru...@yahoo.com έγραψε:
On 10/20/2013 05:30 PM, Νίκος Αλεξόπουλος wrote:
try:
cur.execute( '''SELECT host, city, useros, browser, ref, hits,
lastvisit FROM visitors WHERE counterID = (SELECT ID FROM counters WH
On 27/10/2013 00:17, theelder...@gmail.com wrote:
I apologize but I do not understand what you mean by "lack of context." I have
taken Chris' words into consideration, for my previous post was supposed to be my last (I
just had to say thank you). This is my first google groups post, so I am a
Στις 26/10/2013 9:33 μμ, ο/η ru...@yahoo.com έγραψε:
On 10/20/2013 05:30 PM, Νίκος Αλεξόπουλος wrote:
try:
cur.execute( '''SELECT host, city, useros, browser, ref, hits,
lastvisit FROM visitors WHERE counterID = (SELECT ID FROM counters WHERE
url = %s) ORDER BY lastvisit DESC''', page )
On 27/10/2013 00:17, theelder...@gmail.com wrote:
I apologize but I do not understand what you mean by "lack of context." I have
taken Chris' words into consideration, for my previous post was supposed to be my last (I
just had to say thank you). This is my first google groups post, so I am a
On Sun, Oct 27, 2013 at 10:17 AM, wrote:
>
> I apologize but I do not understand what you mean by "lack of context." I
> have taken Chris' words into consideration, for my previous post was supposed
> to be my last (I just had to say thank you). This is my first google groups
> post, so I am a
I apologize but I do not understand what you mean by "lack of context." I have
taken Chris' words into consideration, for my previous post was supposed to be
my last (I just had to say thank you). This is my first google groups post, so
I am a total noob. Once again, I apologize for whatever th
On 26/10/2013 23:42, theelder...@gmail.com wrote:
Thank you all for your time and great replies. I think/hope I have enough info
to able to implement this simple server.
No problem but please take onboard the advice Chris Angelico gave you
earlier regarding google groups, noting the complete
Thank you all for your time and great replies. I think/hope I have enough info
to able to implement this simple server.
--
https://mail.python.org/mailman/listinfo/python-list
On 26/10/2013 23:15, theelder...@gmail.com wrote:
Thank you for your quick replies. I am trying to implement a very simple
multithreaded webserver in python. Is using an array of sockets (for different
clients) the correct way to go?
It's a list :) And if it works for you, why not, there's
On Sun, Oct 27, 2013 at 9:15 AM, wrote:
> Thank you for your quick replies. I am trying to implement a very simple
> multithreaded webserver in python. Is using an array of sockets (for
> different clients) the correct way to go?
Firstly, before you respond any more, please get off Google Grou
On Sat, 26 Oct 2013 16:11:25 -0400, bruce wrote:
> hi..
>
> getting some files via curl, and want to convert them from what i'm
> guessing to be unicode.
>
> I'd like to convert a string like this:: href="ShowRatings.jsp?tid=1312168">Alcántar, Iliana
>
> to::
> Alcantar,
> Iliana
>
> where I
Thank you for your quick replies. I am trying to implement a very simple
multithreaded webserver in python. Is using an array of sockets (for different
clients) the correct way to go?
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, Oct 27, 2013 at 2:05 AM, wrote:
> The large number of posts here from GG would suggest
> that the readership there is substantial, and the decline in
> "web-1.0" tools (usenet, mailing lists, etc) is additional
> evidence that the number of GG users (who are used to and
> prefer flashier
> What a mess of a discussion.
I see the big man stepping in to answer for his homies, but while his
explanation satisfies their question of "well why do these magic
values get used then, if what Mark says is true?", it doesn't address
the real confusion: What is the difference between "script" c
Hi,
On Sat, 26 Oct 2013 14:41:15 -0700 (PDT)
theelder777@ wrote:
> Hello all, I am kind of new to python. I am currently trying to make and use
> a list/array of sockets in a program. So I have declared an array as follows:
> myCSocks = ['CSock1', 'CSock2', 'CSock3', 'CSock4', 'CSock5']
You act
On 26/10/2013 22:41, theelder...@gmail.com wrote:
Hello all, I am kind of new to python. I am currently trying to make and use a
list/array of sockets in a program. So I have declared an array as follows:
myCSocks = ['CSock1', 'CSock2', 'CSock3', 'CSock4', 'CSock5']
This is a list of Python st
On 26/10/2013 22:25, Mark Janssen wrote:
Please give it a rest Mark, nobody is falling for your pseudo babel.
--
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-
Hello all, I am kind of new to python. I am currently trying to make and use a
list/array of sockets in a program. So I have declared an array as follows:
myCSocks = ['CSock1', 'CSock2', 'CSock3', 'CSock4', 'CSock5']
and I am trying to use my array elements as follows:
myCSocks[i], addr = serverS
Mark Lawrence writes:
> I wish I didn't have a combination of Asperger Syndrome, Chronic
> Fatigue Syndrome and Clinical Depression but sadly I'm stuck with the
> lot :(
I wish you didn't have those. Please don't saddle this forum with the
result.
--
\ “And if I laugh at any mortal t
Mark Lawrence writes:
> I could almost feel sorry for you. But the more of your time I waste
> the longer it'll take you to get your website working.
Feel free to occupy your time with baiting Nikos. But *do not* do it in
this forum.
--
\ “I love and treasure individuals as I meet them
On 26/10/2013 22:33, Mark Janssen wrote:
Apologies will be accepted on the list.
BTW, I can't resist pointing out that you guys are like a cup already
full of (black) coffee -- too full to allow the pure water of clarity
to enter.
(cf. Buddhism) .. (boom)
MarkJanssen
Tacoma, Washington
On 26/10/2013 20:24, Peter Cacioppi wrote:
Paul Rubin said:
"FYI, there is real though imprecise garbage collection for C. Web
search for "Boehm garbage collection" should find more info"
Very interesting. This wasn't around the last time I launched a C/C++ project
from scratch. Thanks for th
On 10/25/2013 12:18 PM, Mark Janssen wrote:
>> As for the hex value for Nan who really gives a toss? The whole point is
>> that you initialise to something that you do not expect to see. Do you not
>> have a text book that explains this concept?
>
> No, I don't think there is a textbook that exp
> Apologies will be accepted on the list.
BTW, I can't resist pointing out that you guys are like a cup already
full of (black) coffee -- too full to allow the pure water of clarity
to enter.
(cf. Buddhism) .. (boom)
MarkJanssen
Tacoma, Washington
--
https://mail.python.org/mailman/listin
On 26/10/2013 20:12, Joaquin Abian wrote:
Is there any updated roadmap/schedule for the new python.org site ?
It has been in beta mode at http://preview.python.org/ for several months but I
can not find in there any indication of the progress or the possible date for
publishing it. Most paragra
[Getting back to some old comments]
>>> A language specification in BNF is just syntax. It doesn't say anything
>>> about semantics. So how could this be used to produce executable C code
>>> for a program? BNF is used to produce parsers. But a parser isn't
>>> sufficient.
>>
>> A C program is
On 26/10/2013 18:23, Antoon Pardon wrote:
Op 26-10-13 18:19, Mark Lawrence schreef:
On 26/10/2013 17:00, Steven D'Aprano wrote:
On Sat, 26 Oct 2013 15:34:23 +0100, Mark Lawrence wrote:
On 26/10/2013 14:27, Nick the Gr33k wrote:
Buy a sex manual.
Mark, please resist the urge to bait Nick wi
On 26/10/2013 21:11, bruce wrote:
hi..
getting some files via curl, and want to convert them from what i'm
guessing to be unicode.
I'd like to convert a string like this::
Alcántar,
Iliana
to::
Alcantar,
Iliana
where I convert the
" á " to " a"
which appears to be a shift of 128, but I'm not
Rusi said:
"Users of GG are requested to read and follow these instructions
https://wiki.python.org/moin/GoogleGroupsPython "
Yes, I read those instructions and found them fairly opaque. If you want to
instruct "children" (odd that I find myself categorized that way on a CS forum,
but whateve
On 10/26/2013 1:36 PM, HC wrote:
I'm doing my first year in university and I need help with this basic
assignment.
Assignment: Write Python script that prints sum of cubes of numbers between
0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=?
My script:
count = 0
answer = 0
while cou
hi..
getting some files via curl, and want to convert them from what i'm
guessing to be unicode.
I'd like to convert a string like this::
Alcántar,
Iliana
to::
Alcantar,
Iliana
where I convert the
" á " to " a"
which appears to be a shift of 128, but I'm not sure how to accomplish this..
I've
Hi John,
In my college, we are using Python 3.x to teach and personally I am using a
Mac and it works well so far. But back to development work, I use 2.7x
because of libraries I using.
As for ide, we are using IDLE, we understand it is clumsy but it is the
most basic and since it comes with it,
On 10/26/2013 2:20 PM, MRAB wrote:
On 26/10/2013 18:36, HC wrote:
I'm doing my first year in university and I need help with this basic
assignment.
Assignment: Write Python script that prints sum of cubes of numbers
between 0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=?
My script:
I rarely ever post here.
But I wanted to say that people responding to this Nikos troll makes reading
this list a nuisance.
You've never ever been successful in convincing him to behave, and it's been
going on for quite a while now.
I remain subscribed for occasional interesting new idioms an
Paul Rubin said:
"FYI, there is real though imprecise garbage collection for C. Web
search for "Boehm garbage collection" should find more info"
Very interesting. This wasn't around the last time I launched a C/C++ project
from scratch. Thanks for the tip.
I have to admit, off the top of my he
Op 26-10-13 18:19, Mark Lawrence schreef:
On 26/10/2013 17:00, Steven D'Aprano wrote:
On Sat, 26 Oct 2013 15:34:23 +0100, Mark Lawrence wrote:
On 26/10/2013 14:27, Nick the Gr33k wrote:
Buy a sex manual.
Mark, please resist the urge to bait Nick with insults. As entertaining
as they may be,
Op 26-10-13 18:00, Steven D'Aprano schreef:
On Sat, 26 Oct 2013 15:34:23 +0100, Mark Lawrence wrote:
On 26/10/2013 14:27, Nick the Gr33k wrote:
Buy a sex manual.
Mark, please resist the urge to bait Nick with insults. As entertaining
as they may be, they don't actually help reduce the proble
On Saturday 26 October 2013 10:12:33 Steven D'Aprano did opine:
> Just for fun:
>
>
> class Numberator:
> def __init__(self, number):
> self.__number = number
> def evaluate(self):
> return self.__number
>
> class Multiplier:
> def __init__(self, multiplier, multipli
:
On Sat, Oct 26, 2013 at 04:27:03PM +0300, Nick the Gr33k wrote:
> [... the same thing, yet again, with added profanity ...]
Stop that right now. You have been told repeatedly:
1. That this is the wrong forum to address your problem.
2. What other avenues to explore to fix it.
3. To stop repo
Op 25-10-13 17:04, Nick the Gr33k schreef:
Στις 25/10/2013 5:21 μμ, ο/η Mark Lawrence έγραψε:
On 25/10/2013 13:54, Nick the Gr33k wrote:
Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε:
On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k
wrote:
Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγρ
On Sat, Oct 26, 2013 at 11:15 PM, rusi wrote:
> tl;dr I think Mark's scoldings in this regard will work if they come not just
> from him but from any and every one. They are likely to have a larger
> subscription if you would agree to change: "Dont use GG!!"
> to
> "Users of GG are requested to
Is there any updated roadmap/schedule for the new python.org site ?
It has been in beta mode at http://preview.python.org/ for several months but I
can not find in there any indication of the progress or the possible date for
publishing it. Most paragraphs are still with Lore Ipsum.
--
https://m
Hi folks,
My side job as a Python tutor continues to grow. In two weeks, I will start
working with a high-school student who owns a MacBook Pro.
I have had students with Linux systems (my preference) and Windows systems
before, but not Macs. On my first visit, I set up each student's comput
On 10/20/2013 05:30 PM, Νίκος Αλεξόπουλος wrote:
> try:
> cur.execute( '''SELECT host, city, useros, browser, ref, hits,
> lastvisit FROM visitors WHERE counterID = (SELECT ID FROM counters WHERE
> url = %s) ORDER BY lastvisit DESC''', page )
> data = cur.fetchall()
>
>
On 26/10/2013 18:36, HC wrote:
I'm doing my first year in university and I need help with this basic
assignment.
Assignment: Write Python script that prints sum of cubes of numbers between
0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=?
My script:
count = 0
answer = 0
while count
HC, you have come straight out and told us honestly that you are seeking help
with homework. That is refreshing.
You should know that people in programming newsgroups generally do not want to
do your homework for you. Many of us are willing to teach you HOW to program,
but that's different
On 26/10/2013 18:36, HC wrote:
I'm doing my first year in university and I need help with this basic
assignment.
Assignment: Write Python script that prints sum of cubes of numbers between
0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=?
My script:
count = 0
answer = 0
while count
On Sat, Oct 26, 2013 at 1:36 PM, HC wrote:
> I'm doing my first year in university and I need help with this basic
> assignment.
>
> Assignment: Write Python script that prints sum of cubes of numbers between
> 0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=?
>
> My script:
> count =
I'm doing my first year in university and I need help with this basic
assignment.
Assignment: Write Python script that prints sum of cubes of numbers between
0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=?
My script:
count = 0
answer = 0
while count<200:
if count%3==0:
On Sat, 26 Oct 2013 08:05:27 -0700, rurpy wrote:
> On 10/25/2013 08:40 PM, Steven D'Aprano wrote:
[...]
> However, looking now, I see you pointed out that Peter originally
> cross-posted his two messages to four groups:
I think you are confused. I haven't said anything about Peter Cacioppi
cross
Peter Cacioppi writes:
>> Challenge: give some examples of things which you can do in Python, but
>> cannot do *at all* in C, C++, C#, Java?
> Please. No exceptions is huge. No garbage collection is huge.
> But you can do anything with a Turing machine. ...
Lumping C, C++, C#, and Java together
On Wed, 16 Oct 2013 23:13:33 -0400, Owen Jacobson wrote:
> Last week, Elad Maidar wrote a fairly short but readable opinion
> piece[0] illustrating some long-standing social problems in the Ruby
> community,
[...]
Well, this has been a big disappointment. The author of this post, Owen
Jacobson,
On 26/10/2013 17:05, rusi wrote:
On Saturday, October 26, 2013 9:20:40 PM UTC+5:30, Mark Lawrence wrote:
I could almost feel sorry for you. But the more of your time I waste
the longer it'll take you to get your website working. Did you ever
stop to think about that? Or are you too busy trol
On Sat, 26 Oct 2013 18:40:52 +0300, Nick the Gr33k wrote:
> Can someone write this properly? i tried but cannot make it work.
Start by writing down what problem you are trying to solve with this
code, and what you expect the code to do. In detail. What input data does
it take, what result shoul
On 26/10/2013 17:00, Steven D'Aprano wrote:
On Sat, 26 Oct 2013 15:34:23 +0100, Mark Lawrence wrote:
On 26/10/2013 14:27, Nick the Gr33k wrote:
Buy a sex manual.
Mark, please resist the urge to bait Nick with insults. As entertaining
as they may be, they don't actually help reduce the proble
On Saturday, October 26, 2013 9:20:40 PM UTC+5:30, Mark Lawrence wrote:
>
> I could almost feel sorry for you. But the more of your time I waste
> the longer it'll take you to get your website working. Did you ever
> stop to think about that? Or are you too busy trolling hundreds of
> other
On Sat, 26 Oct 2013 15:34:23 +0100, Mark Lawrence wrote:
> On 26/10/2013 14:27, Nick the Gr33k wrote:
>
> Buy a sex manual.
Mark, please resist the urge to bait Nick with insults. As entertaining
as they may be, they don't actually help reduce the problem.
--
Steven
--
https://mail.python.
On Sat, 26 Oct 2013 16:27:03 +0300, Nick the Gr33k wrote:
>> Can somebody explain why this is happening?
Yes, anyone who reads the answer that was given the first time you asked
this question will be able to explain why this is happening. The answer
hasn't changed from the first time you asked,
On 10/26/13 11:21 AM, Mark Lawrence wrote:
On 26/10/2013 15:55, Nick the Gr33k wrote:
Στις 26/10/2013 5:34 μμ, ο/η Mark Lawrence έγραψε:
On 26/10/2013 14:27, Nick the Gr33k wrote:
Buy a sex manual.
No need, i can practice with your mother.
An interesting combination of stupid, tight fiste
On 26/10/2013 16:25, Nick the Gr33k wrote:
Στις 26/10/2013 6:21 μμ, ο/η Mark Lawrence έγραψε:
On 26/10/2013 15:55, Nick the Gr33k wrote:
Στις 26/10/2013 5:34 μμ, ο/η Mark Lawrence έγραψε:
On 26/10/2013 14:27, Nick the Gr33k wrote:
Buy a sex manual.
No need, i can practice with your mother.
On Sat, 26 Oct 2013 15:29:52 +0300, Nick the Gr33k wrote:
> Can somebody explain why this is happening?
It is the same answer that you were told the last time you asked this
question, and the previous time you asked this question. And it will be
the same answer the next time you ask.
--
Stev
Στις 26/10/2013 5:10 μμ, ο/η Nick the Gr33k έγραψε:
[QUOTE=turvey]Say your data is like the following:
data = [('alice', 1), ('alice', 2), ('bob', 5), ('bob', 10), ('carrie', 3)]
Where the first entry is your user and the second entry is a timestamp.
Your data is structured basically like this,
1 - 100 of 128 matches
Mail list logo