On Wednesday, June 5, 2013 1:54:45 PM UTC-6, Νικόλαος Κούρας wrote:
>...
> print( cookie, "Content-type: text/html; charset=utf-8\n", message )
>...
If you look in the Apache error log file, you will see something like,
[Wed Jun 05 16:39:14 2013] [error] [client 192.168.0.1] malformed header fr
On Wednesday, June 5, 2013 3:03:29 PM UTC-6, Chris Angelico wrote:
> On Thu, Jun 6, 2013 at 6:56 AM, wrote:
> > On Wednesday, June 5, 2013 1:54:45 PM UTC-6, Νικόλαος Κούρας wrote:
> >>...
> >> print( cookie, "Content-type: text/html; charset=utf-8\n", message )
> >>...
> > print( cookie, "Cont
On 06/05/2013 04:21 PM, Chris Angelico wrote:
> On Thu, Jun 6, 2013 at 7:18 AM, wrote:
>> On Wednesday, June 5, 2013 3:03:29 PM UTC-6, Chris Angelico wrote:
..[...]
>> Ah, quite right. Something like
>>
>> print( cookie, "\nContent-type: text/html; charset=utf-8\n\n", message )
>>
>> then.
>
On 06/05/2013 05:19 PM, Dennis Lee Bieber wrote:
> On Wed, 5 Jun 2013 10:29:44 -0700 (PDT), Íéêüëáïò Êïýñáò
> declaimed the following in
> gmane.comp.python.general:
>>
>> In the US there is a law called the DMCA which I think would make what
>> you did illegal, even though i have you a password,
On 06/05/2013 08:02 PM, Tim Chase wrote:
> On 2013-06-05 17:57, ru...@yahoo.com wrote:
>> stories over the years where people where convicted (or
>> at least charged with) violating the DMCA (or perhaps
>> equally draconian followup U.S. laws) even though they
>> clearly penetrated the system to
On 06/06/2013 04:53 AM, Νικόλαος Κούρας wrote:> I have re-enabled 'suexec' and
set cgi as default phphandler and then trying:
>
> print( cookie )
> print( '''Content-type: text/html; charset=utf-8\n''' )
> print( message )
>
> -
> ni...@superhost.gr [~/www/data/ap
On 06/15/2013 03:42 AM, subhabangal...@gmail.com wrote:> Dear Group,
>
> I am trying to search the following pattern in Python.
>
> I have following strings:
>
> (i)"In the ocean"
> (ii)"On the ocean"
> (iii) "By the ocean"
> (iv) "In this group"
> (v) "In this group"
> (vi) "By the new gr
On Saturday, June 15, 2013 11:54:28 AM UTC-6, subhaba...@gmail.com wrote:
> Thank you for the answer. But I want to learn bit of interesting
> regular expression forms where may I?
> No Mark, thank you for your links but they were not sufficient.
Links to the Python reference documentation are u
On 06/15/2013 12:18 PM, rusi wrote:
> On Jun 15, 10:52 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>> On Sat, 15 Jun 2013 10:36:00 -0700, rusi wrote:
>> > With you as our spamming-guru, Onward! Sky is the limit!
>>
>> If you're going to continue making unproductive, off-topic, infl
On Saturday, June 15, 2013 2:04:31 PM UTC-6, Νικόλαος Κούρας wrote:
> Thank you ruspy.
Don't thank me. You are not contributing in a positive way to the situation.
--
http://mail.python.org/mailman/listinfo/python-list
Oops...
On Saturday, June 15, 2013 12:47:18 PM UTC-6, ru...@yahoo.com wrote:
> Links to the Python reference documentation are useful for people
> just beginning with some aspect of Python; they are for people who
> already know Python and want to look up details.
That was supposed to be:
Link
On 06/16/2013 02:04 PM, Steven D'Aprano wrote:
> On Sun, 16 Jun 2013 20:16:34 +0200, Antoon Pardon wrote:
>
>> You are trying to get it both ways. On the one hand you try to argue
>> that there are no boundaries
>
> I have never, ever argued that there are no boundaries. I have repeatedly
> mad
On 06/17/2013 01:23 AM, Chris Angelico wrote:
> On Mon, Jun 17, 2013 at 3:04 PM, Ferrous Cranus wrote:
>> The only thing i'm feeling guilty is that instead of reading help files and
>> PEP's which seem too technical for me, i prefer the live help of an actual
>> expert human being.
>
> This is de
On 06/17/2013 02:15 AM, Antoon Pardon wrote:
> Op 17-06-13 05:46, ru...@yahoo.com schreef:
>> On 06/16/2013 02:04 PM, Steven D'Aprano wrote:
>>
>>> Yes. Trying to start flame wars with Nikos is unacceptable behaviour. It
>>> is unproductive, it makes this a hostile, unpleasant place to be, it
>>>
On 06/17/2013 03:43 PM, Chris Angelico wrote:
> On Tue, Jun 18, 2013 at 12:41 AM, wrote:
>> On 06/17/2013 01:23 AM, Chris Angelico wrote:
>>> On Mon, Jun 17, 2013 at 3:04 PM, Ferrous Cranus
>>> wrote:
The only thing i'm feeling guilty is that instead of reading help files and
PEP's wh
On 06/17/2013 04:22 PM, Mark Lawrence wrote:
> On 17/06/2013 15:41, ru...@yahoo.com wrote:
>> It is NOT a matter of simply reading the documentation.
>> I have posted here several times as have many others about
>> some of the problems the documentation has, especially for
>> people who don't alrea
On 06/18/2013 02:22 AM, Antoon Pardon wrote:
> Op 17-06-13 19:56, ru...@yahoo.com schreef:
>> On 06/17/2013 02:15 AM, Antoon Pardon wrote:
>>> Op 17-06-13 05:46, ru...@yahoo.com schreef:
On 06/16/2013 02:04 PM, Steven D'Aprano wrote:
> Yes. Trying to start flame wars with Nikos is unaccept
On 06/18/2013 01:21 AM, Chris Angelico wrote:
> On Tue, Jun 18, 2013 at 2:39 PM, alex23 wrote:
>> tl;dr Stop acting like a troll and we'll stop perceiving you as such.
>
> This being Python-list, we duck-type. You don't have to declare that
> you're a troll, like you would in C; you just react li
On 06/19/2013 04:57 AM, Antoon Pardon wrote:
> Op 19-06-13 05:46, ru...@yahoo.com schreef:
>> On 06/18/2013 02:22 AM, Antoon Pardon wrote:
>>> Op 17-06-13 19:56, ru...@yahoo.com schreef:
>> I was using the photodetector/light system as a emotion-free
>> analog of the troll/troll-feeders positive f
On 06/21/2013 01:32 PM, Antoon Pardon wrote:
> Op 19-06-13 23:13, ru...@yahoo.com schreef:
>> On 06/19/2013 04:57 AM, Antoon Pardon wrote:
>>> Op 19-06-13 05:46, ru...@yahoo.com schreef:
>>> I don't remember making such a claim. What I do remember is
>>> you among others claiming that the problem w
On 06/23/2013 07:01 AM, Νίκος wrote:> Hello, as you all know i'am using cgi
method for my web script.
>
> I have been told that webpy is the way to go sor script simple enough as
> mines.
>
> Can you please show me the simplest example you can think of utilizing a
> templates (index.html) and
On 06/23/2013 09:15 AM, Νίκος wrote:
> Στις 23/6/2013 5:57 μμ, ο/η ru...@yahoo.com έγραψε:
>> On 06/23/2013 07:01 AM, Νίκος wrote:
> Hello, as you all know i'am using cgi method for my web script.
>>>
>>> I have been told that webpy is the way to go sor script simple enough as
>>> mines.
>>>
>>> Ca
On 06/23/2013 02:40 PM, cutems93 wrote:
> [...]
The Python wiki at http://wiki.python.org/moin/ has a lot of info on
most of your subjects. I've included links to there for some of your
items below.
All your items below also have comercial products available but I
an not familiar with any so all
On 06/23/2013 05:18 PM, christheco...@gmail.com wrote:
> How do I bring users back to beginning of user/password question once they
> fail it? thx
This is not a very good question. There is no context
so we cannot tell if you are talking about a command line
program that prompts for a username
On 06/23/2013 05:49 PM, Roy Smith wrote:> In article
<263da442-0c87-41df-9118-6003c6168...@googlegroups.com>, ru...@yahoo.com wrote:
>> > 1. Automated Refactoring Tools
>> I wish.
> Why? I've never seen the appeal of these. I do plenty of refactoring.
> It's unclear to me what assistance an a
On 06/24/2013 07:37 AM, Antoon Pardon wrote:
> Op 23-06-13 16:29, ru...@yahoo.com schreef:
>> On 06/21/2013 01:32 PM, Antoon Pardon wrote:
>>> Op 19-06-13 23:13, ru...@yahoo.com schreef:
>[...]
Note: although I clipped the "group volition"
paragraphs, thank you for pointing out that Nikos posts
go
On 06/23/2013 07:44 PM, Νίκος wrote:> Why use mako's approach which requires 2
files(an html template and the
> actual python script rendering the data) when i can have simple print
> statements inside 1 files(my files.py script) ?
> After all its only one html table i wish to display.
Good que
On Tuesday, June 25, 2013 4:19:43 PM UTC-6, willle...@gmail.com wrote:
>[...]
> na=('type first integer n\')##THE RED SHADOW APPEARS HERE##
You want \n at the end of the string, not n\.
A backslash character \ in front of the ' escapes the ' and
causes it to to be considered as a character in the
On 06/25/2013 04:19 PM, willlewis...@gmail.com wrote:
> I'am starting to learn python reading a book and I have to do some
> exercises but I can't understand this one, when I run it it says EOL
> while scanning string literal and a red shadow next to a line of
> code.
>
> I'm trying to get input
On 06/30/2013 11:25 AM, Antoon Pardon wrote:
> Op 28-06-13 19:20, Ian Kelly schreef:
>[...]
>> Flaming a troll is not punishing to them.
>
> I see I didn't make my point clear. This was my response to
> your remark about the collective experience going back decades.
> The collective experience oft
On 07/01/2013 01:38 PM, Antoon Pardon wrote:
> > Op 01-07-13 16:02, ru...@yahoo.com schreef:
> >
>> >> You claim "collective experience" is not reliable and dismiss it
>> >> in favor of your own theory, flaming trolls is a better response.
>> >> And your evidence for that? Nothing (that I've read
Since this thread too has gone into the trash hole
thanks to our resident trolls I might as well comment...
On 07/02/2013 04:34 PM, Ben Finney wrote:> Joshua Landau
writes:
>
>> On 2 July 2013 13:01, Antoon Pardon wrote:
>> > Please answer the following question. If someone behaved
>> > incomp
On 07/02/2013 05:18 PM, Joshua Landau wrote:
> On 2 July 2013 23:34, Ben Finney wrote:
>[...]
>> Needless to say, I disagree with your position. There is no place for
>> baseless insults in this community; but when the behaviour of someone in
>> this community is harmful, then it is entirely appro
On 07/03/2013 08:12 AM, feedthetr...@gmx.de wrote:
> > Am Mittwoch, 3. Juli 2013 12:00:14 UTC+2 schrieb Νίκος:
>> >> Στις 3/7/2013 12:45 μμ, ο/η Chris Angelico έγραψε:
>> >> ] You have betrayed the trust of all your customers.
>> >> ...
>> >> I just received a call form on of my customers aski
On 07/03/2013 03:21 AM, Antoon Pardon wrote:
> Op 03-07-13 02:30, ru...@yahoo.com schreef:
>> If your going to point out something negative about someone
>> then do so politely. Ask yourself if you were pointing out
>> incompetence to your boss (or anyone else where impoliteness
>> could have rea
On 07/02/2013 07:24 PM, Steven D'Aprano wrote:
>[...]
> On the other hand, I've certainly learned a lot in my newbie days from
> being told off quite harshly by some of the Python community alphas, like
> the Effbot Fredrik Lundh, and Alex Martelli. It hurts to be told you're
> an idiot by one o
On 07/03/2013 12:08 PM, rusi wrote:
> On Wednesday, July 3, 2013 10:31:23 PM UTC+5:30, ru...@yahoo.com wrote:
>> Are the existence of laws against beating people up negated because
>> you told them in advance? Or negated because they "deserve" the
>> beating?
>
> One of the fundamental purpose of
On 07/03/2013 05:12 PM, Joshua Landau wrote:
> On 3 July 2013 02:21, wrote:
>[...]
>> The reality is that few of the people at whom such statements
>> are aimed will make such fine distinction. If you use negatively
>> judgemental statements against other posters, a significant
>> number of them
On 07/03/2013 09:07 PM, rusi wrote:
>[...]
> I got into it because I felt Chris had done more service to Nikos and
> the list than others and then was being misrepresented.
I don't know why you think I "misrepresented" him. I questioned
the morality of his accepting access to Nikos' server and th
On 07/04/2013 08:24 AM, MRAB wrote:
> On 04/07/2013 14:22, Tim Chase wrote:
>> On 2013-07-04 05:02, Dave Angel wrote:
>> [snip an excellent list of things to look for in an editor]
> It's 2013, yet Unicode support is merely a "nice-to-have"?
I agree that this is pretty important. Even if you do
On 07/04/2013 06:09 AM, Antoon Pardon wrote:
> Op 03-07-13 19:11, ru...@yahoo.com schreef:
>> On 07/03/2013 03:21 AM, Antoon Pardon wrote:
>>> Op 03-07-13 02:30, ru...@yahoo.com schreef:
If your going to point out something negative about someone
then do so politely. Ask yourself if you
On 07/04/2013 02:50 AM, feedthetr...@gmx.de wrote:
> Am Mittwoch, 3. Juli 2013 19:01:23 UTC+2 schrieb ru...@yahoo.com:
>[...]
Any questions?
>> Yes.
>[...]
>> I know the answers to all these questions are obvious
>> to everyone else here but I am not sure about them.
>
> Then I hope, I was
On 07/14/2013 11:16 AM, Chris Angelico wrote:
> On Mon, Jul 15, 2013 at 3:10 AM, Joseph L. Casale
> wrote:
>> I have a dict of lists. I need to create a list of 2 tuples, where each
>> tuple is a key from
>> the dict with one of the keys list items.
>>
>> my_dict = {
>> 'key_a': ['val_a', 'va
On Sunday, July 14, 2013 12:32:34 PM UTC-6, ru...@yahoo.com wrote:
> Or more simply:
> [(k, v or None) for k, v in my_dict.items()]
Too simply :-( Didn't read the op carefully enough. Sorry.
--
http://mail.python.org/mailman/listinfo/python-list
How, using Python-3.3's email module, do I "flatten" (I think
that's the right term) a Message object to get utf-8 encoded
body with the headers:
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
when the message payload was set to a python (unicode) string?
--
http://mail.
On 07/29/2013 12:16 AM, W. Trevor King wrote:
> On Sun, Jul 28, 2013 at 04:41:27PM -0700, ru...@yahoo.com wrote:
>> How, using Python-3.3's email module, do I "flatten" (I think
>> that's the right term) a Message object to get utf-8 encoded
>> body with the headers:
>> Content-Type: text/plain; c
On Wednesday, July 4, 2012 6:29:10 PM UTC-6, Vlastimil Brom wrote:
> Hi all,
> I'd like to ask about the possibilities to do some basic manipulation
> on timestamps - such as incrementing a given time (hour.minute -
> string) by some minutes.
> Very basic notion of "time" is assumed, i.e. dateless,
On Thursday, July 5, 2012 11:34:16 AM UTC-6, John Nagle wrote:
>[...]
>You can also call time.time(), and get the number of seconds
> since the epoch (usually 1970-01-01 00:00:00 UTC). That's just
> a number, and you can do arithmetic on that.
>
>Adding a datetime.time to a datetime.timede
On 09/27/2012 10:37 PM, Chris Angelico wrote:>[...]
> * MySQL is designed for dynamic web sites, with lots of reading and
> not too much writing. Its row and table locking system is pretty
> rudimentary, and it's quite easy for performance to suffer really
> badly if you don't think about it. But i
On 10/14/2012 03:58 PM, Ben Finney wrote:> Zero Piraeus
writes:
>[...]
> What's needed, IMO, is a difficult balance: there needs to be calm,
> low-volume, but firm response to instances of hostile behaviour, making
> clear by demonstration – especially to the people only observing the
> discussio
On 10/14/2012 10:36 PM, alex23 wrote:> On Oct 15, 1:22 pm, ru...@yahoo.com
wrote:
>> Thus when a member of this esteemed group
>> was recently attacked as racist, for punning another member's
>> name when responding somewhat heatedly,
>
> Again, there is a difference between "attacking" someone "
On 10/16/2012 10:49 AM, Steven D'Aprano wrote:
> > On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and dicks:
No, I wrote about trolls. "dicks" is a highly emotive and
almost totally subjective word that I would not use in a
rational discussion. Perhaps
On 10/16/2012 02:17 PM, Prasad, Ramit wrote:> Steven D'Aprano wrote:
>> On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and dicks:
>>
>> > The best advise is to ignore such posts and encourage others to do the
>> > same.
>>
>> If yo
On 10/16/2012 08:45 PM, Steven D'Aprano wrote:
> On Tue, 16 Oct 2012 14:10:17 -0700, rurpy wrote:
>
>> On 10/16/2012 10:49 AM, Steven D'Aprano wrote:
>>> > On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and
>>> > dicks:
>>
>&
On 10/17/2012 12:16 PM, Chris Angelico wrote:> On Thu, Oct 18, 2012 at 3:48 AM,
rurpy wrote:
>>On 10/16/2012 08:45 PM, Steven D'Aprano wrote:
>>> Except that you've made a 180-
>>> degree turn from your advice to "ignore" bad behaviour, but app
On Wednesday, October 17, 2012 1:20:15 PM UTC-6, rurpy wrote:
> On 10/17/2012 12:16 PM, Chris Angelico wrote:
>[...]
> Ignore it *on the list*.
Quick addendum: I wrote earlier (in some post in this thread
I don't have time to dig up now) that the above possibly should
not apply w
On 10/17/2012 02:28 PM, Oscar Benjamin wrote:> On 17 October 2012 19:16, Chris
Angelico wrote:
>> On Thu, Oct 18, 2012 at 3:48 AM, wrote:
>>>On 10/16/2012 08:45 PM, Steven D'Aprano wrote:
Except that you've made a 180-
degree turn from your advice to "ignore" bad behaviour, but appare
On 10/17/2012 05:39 PM, Ian Kelly wrote:> On Wed, Oct 17, 2012 at 5:17 PM,
Steven D'Aprano wrote:
>> Excuse me, I think that anybody who was offended by it needs to take a
>> long, hard look at themselves. Would you be offended if Rurpy asked "Are
>> you diabe
On 10/18/2012 04:02 AM, Zero Piraeus wrote:> On 18 October 2012 05:22,
wrote:
>>[...]
> By the way: are you using Google Groups? It's just that I'm led to
> understand that it's recently started to misbehave [more than it used
> to], and your replies are addressed to both
> and ,
> which is red
[I posted the following in another thread yesterday...]
When you post from Google Groups you will sometimes
see a checkbox above the edit window that is a cc to
the python mailing list ()
which is checked by default.
If you uncheck that, you'll stop the double posting.
--
http://mail.python.o
> On Fri, 19 Oct 2012 21:21:11 -0700 (PDT), ru...@yahoo.com declaimed the
> following in gmane.comp.python.general:
>
>> [I posted the following in another thread yesterday...]
>>
>> When you post from Google Groups you will sometimes
>> see a checkbox above the edit window that is a cc to
>> the
On 10/30/2012 11:07 PM, Robert Miles wrote:> On 9/16/2012 8:18 AM, Ben Finney
wrote:
>> Νικόλαος Κούρας writes:
>>
>>> Iam sorry i didnt do that on purpose and i dont know how this is done.
>>>
>>> Iam positng via google groups using chrome, thats all i know.
>>
>> It is becoming quite clear that
On 10/31/2012 09:11 AM, Grant Edwards wrote:> On 2012-09-16, ??
wrote:
>
>> Iam positng via google groups using chrome, thats all i know.
>
> Learn something else. Google Groups is seriously and permanently
> broken, and all posts from Google Groups are filtered out and ignored
>
On Wednesday, October 31, 2012 3:38:57 PM UTC-6, Mark Lawrence wrote:
> On 31/10/2012 19:35, ru...@yahoo.com wrote:
>> "Broken"? Yes. But so is every piece of software in one way
>> or another. Thunderbird is one of the most perpetually buggy
>> pierces of software I have ever used on a continui
On 11/01/2012 03:55 AM, Jamie Paul Griffin wrote:
> Anybody serious about programming should be using a form of
> UNIX/Linux if you ask me. It's inconceivable that these systems
> should be avoided if you're serious about Software Engineering and
> Computer Science, etc. For UNIX there are loads of
On 11/01/2012 06:09 AM, Grant Edwards wrote:> On 2012-10-31, ru...@yahoo.com
wrote:
>> On 10/31/2012 09:11 AM, Grant Edwards wrote:> On 2012-09-16, ??
>> wrote:
>>>
Iam positng via google groups using chrome, thats all i know.
>>>
>>> Learn something else. Google Groups is
On 11/02/2012 03:36 AM, Jamie Paul Griffin wrote:
> / ru...@yahoo.com wrote on Thu 1.Nov'12 at 15:08:26 -0700 /
>
>> On 11/01/2012 03:55 AM, Jamie Paul Griffin wrote:
>>> Anybody serious about programming should be using a form of
>>> UNIX/Linux if you ask me. It's inconceivable that these syste
On 11/02/2012 03:57 AM, Jamie Paul Griffin wrote:
> / ru...@yahoo.com wrote on Thu 1.Nov'12 at 15:00:48 -0700 /
>> [...list of Thunderbird problems...]
>
> With a list of problems like that maybe the time spent on learning
> how to use a Usenet client or mua that is properly written would be
> wor
On 11/04/2012 04:13 AM, Jamie Paul Griffin wrote:
> / ru...@yahoo.com wrote on Fri 2.Nov'12 at 11:39:10 -0700 /
>
>> (I also hope I haven't just been suckered by a troll attempt,
>> windows/unix is better then unix/windows being an age-old means of
>> trolling.)
>
> No, i'm not a "troll". I was
On 11/02/2012 04:12 PM, Steven D'Aprano wrote:
> On Fri, 02 Nov 2012 11:51:29 -0700, Jason Benjamin wrote:
>
>> On another note, it appears that Google (the only archive I can find for
>> this group) only has a little under 400 messages archived for this
>> group,
>
> Google Groups is poison. If
On 11/13/2012 09:10 PM, Chris Angelico wrote:
> On Wed, Nov 14, 2012 at 2:31 PM, Caroline Hou wrote:
>> Thank you Dave and everybody here for your helpful comments!This
>> place is awesome! I found this group when I googled python-list.
>> Seems like this is not the usual way you guys access the li
On 11/13/2012 11:02 PM, Chris Angelico wrote:
> On Wed, Nov 14, 2012 at 4:08 PM, rurpy wrote:
>> On 11/13/2012 09:10 PM, Chris Angelico wrote:
>>> * Use a news-to-web gateway such as Google Groups. That
>>> specific one is deprecated on this list, as there's more
&
On 11/14/2012 06:35 AM, Chris Angelico wrote:
> On Wed, Nov 14, 2012 at 6:02 PM, rurpy wrote:
>> On 11/13/2012 11:02 PM, Chris Angelico wrote:
>>> To be more accurate: This is deprecated *by members of* this list. As
>>> there is no commanding/controlling e
On Wednesday, November 14, 2012 4:07:53 PM UTC-7, Steven D'Aprano wrote:
> On Wed, 14 Nov 2012 10:20:13 -0800, rurpy wrote:
> [...]
> > As an aside, I've noticed that some those most vocal against GG have
> > also been very vocal about this group being inclusive.
>
On 11/14/2012 04:07 PM, Steven D'Aprano wrote:
> On Wed, 14 Nov 2012 10:20:13 -0800, rurpy wrote:
I'll skip the issues already addressed by Joshua Landau.
>[...]
> I don't understand why you suggest counting setup time for the
> alternatives to Google Groups, but *don
On 12/16/2012 08:26 AM, n8fel...@gmail.com wrote:
> Hello all. Got a question for anyone out there that is willing to
> help. Looking to make a Python Daemon, Google searches lead me to
> http://pypi.python.org/pypi/python-daemon. My question is 2 part. 1)
> pip install python-daemon downloads vers
> Hey guys, I'm working on a Python rock paper scissors (lizard spock)
> game, and the beginning is complete. After I finished it, I thought,
> "You know what? I think I can make this even better, and add a score
> counter." And so I did.
>
> The problem is that it doesn't seem to actually keep tr
On Sunday, December 16, 2012 10:09:53 AM UTC-7, Kwpolska wrote:
>[...]
> PS. please do not use pastebin.com.
Why?
--
http://mail.python.org/mailman/listinfo/python-list
On Sunday, December 16, 2012 1:25:51 PM UTC-7, Chris Angelico wrote:
>[...]
> If your post is swallowed by someone's twit filter, that probably
> means that you're doing something twittish. Switching to direct mail
> isn't going to win you any friends :) Switching your newsgroup client,
> however,
On 12/16/2012 11:16 PM, Chris Angelico wrote:
> On Mon, Dec 17, 2012 at 9:18 AM, wrote:
>> On Sunday, December 16, 2012 1:25:51 PM UTC-7, Chris Angelico wrote:
>>>[...]
>>> If your post is swallowed by someone's twit filter, that probably
>>> means that you're doing something twittish. Switching
On Monday, December 17, 2012 12:33:52 AM UTC-7, Chris Angelico wrote:
> On Mon, Dec 17, 2012 at 6:25 PM, wrote:
> > No, that's not what you were "just" informing people of...
> > you were also informing us that we are "twits" for finding
> > Google Groups fits our needs better than some other cli
On Monday, December 17, 2012 10:35:58 PM UTC-7, Roy Smith wrote:
> iMath wrote:
> > where to view open() function's C implementation source code ï¼
> http://www.python.org/download/releases/
> Download the source for the version you're interested in.
iMath:
There is no need to download the sou
On Tuesday, December 18, 2012 1:57:37 PM UTC-7, ru...@yahoo.com wrote:
>[...]
> source code online. For the v3.0.0 version of open():
> hg.python.org/cpython/file/bd8afb90ebf2/Modules/_io/_iomodule.c
oops, that should have been:
http://hg.python.org/cpython/file/bd8afb90ebf2/Modules/_io/_iom
On 12/18/2012 04:55 PM, iMath wrote:
> > å¨ 2012å¹´12æ19æ¥ææä¸UTC+8ä¸å4æ¶57å37ç§ï¼ru...@yahoo.comåéï¼
> >[...]
>> >> There is no need to download the source. You can browse the
>> >> source code online. For the v3.0.0 version of open():
>> >> hg.python.org/cpython/file/bd
On Thursday, December 20, 2012 4:57:19 AM UTC-7, iMath wrote:
> how to detect the encoding used for a specific text data ?
The chardet package will probably do what you want:
http://pypi.python.org/pypi/chardet
--
http://mail.python.org/mailman/listinfo/python-list
On Wednesday, January 9, 2013 7:11:34 PM UTC-7, iMath wrote:
> can you give me an example code ?
For running any system command from Python, you can use the
subprocess module:
http://docs.python.org/3/library/subprocess.html#module-subprocess
To run "wget -p -k http://python.org"; from Python
On 01/27/2013 02:04 AM, Ferrous Cranus wrote:
>[...]
> data = cur.fetchall()
> for row in data:
> print ( "" )
>
> for item in row:
> print( ''' href='http://www.%s
On 01/27/2013 11:44 AM, Κώστας Παπαδόπουλος wrote:
> This is not correct.
> the attribute is for url (row[0]) only, not for url and hits too.
>
> i want the following working code:
>
> =
> data = cur.fetchall()
> for row in data:
> ur
On 01/27/2013 01:50 PM, Mitya Sirenef wrote:
> On 01/27/2013 03:24 PM, Κώστας Παπαδόπουλος wrote:
>> Τη Κυριακή, 27 Ιανουαρίου 2013 9:12:16 μ.μ. UTC+2, ο χρήστης
>> ru...@yahoo.com έγραψε:
> >>
> >
> > Yes indeed, there is no need to use a loop since i know the exact
> number of items i'am e
On 06/06/2012 10:09 AM, MRAB wrote:
> On 06/06/2012 08:09, Rurpy wrote:
>> On 06/05/2012 05:56 PM, MRAB wrote:
>>> On 06/06/2012 00:34, Victor Stinner wrote:
>>>> 2012/6/5 Rurpy:
>>>>> In my first foray into Python3 I've encountered this probl
You can leave out the "+" if you want, adjacent strings are
automatically
concatenated.
print "a string which is very loo" \
"ong."
Perhaps this is more efficient, since the string concatenation can be
done by Python's parser rather than at runtime?
Lars Kellogg-Stedman <[EMAIL
Is there a function/class/module/whatever I can use to
look at objects? I want something that will print the object's
value (if any) in pretty-printed form, and list all it's attributes
and their values. And do all that recursively.
I want to be able to find out everything about an object that
Py
__repr__ almost always only prints a summary of it's
object, not the detailed internal structure that I want to
see. When it prints values, that are not pretty-printed,
nor are the objects that constitute the value printed
recursively.
Writing my own __repr__() is emphatically what I don't
want t
"Chris Mellon" <[EMAIL PROTECTED]> wrote:
On 18 Nov 2005 14:05:05 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> -- snip --
> > Writing my own __repr__() is emphatically what I don't
> > want to do! That is no better than debugging by inserting
> > print statements, a technique from the 198
Bruno Desthuilliers wrote:
> [EMAIL PROTECTED] a écrit :
> > Is there a function/class/module/whatever I can use to
> > look at objects? I want something that will print the object's
> > value (if any) in pretty-printed form, and list all it's attributes
> > and their values. And do all that rec
Bruno Desthuilliers wrote:
> [EMAIL PROTECTED] a écrit :
> > Is there a function/class/module/whatever I can use to
> > look at objects? I want something that will print the object's
> > value (if any) in pretty-printed form, and list all it's attributes
> > and their values. And do all that rec
Shi Mu wrote:
> How to run a function to make [1,2,4] become [[1,2],1,4],[2,4]]?
> Thanks!
You want [[1,2],[1,4],[2,4]]? That is, all combinations of 2 items
from
the list? You might want to look at:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465
>>> import * from xpermutations
Fredrik Lundh wrote:
> [EMAIL PROTECTED] wrote:
>
> > so what would an entry-level Python programmer expect from this
> > piece of code?
> >
> > for item in a.reverse():
> > print item
> > for item in a.reverse():
> > print item
> >
> > I would expect it to first print a in reverse then a as it was
Colin J. Williams wrote:
> [EMAIL PROTECTED] wrote:
> > Bruno Desthuilliers wrote:
> >
> >>[EMAIL PROTECTED] a écrit :
> >>
> >>>Is there a function/class/module/whatever I can use to
> >>>look at objects? I want something that will print the object's
> >>>value (if any) in pretty-printed form, an
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 22 Nov 2005 08:53:07 -0800, rurpy wrote:
>
> > I am not a complete newb at python, but I am still pretty new.
> > I too thought immediately that the output should be 3
1 - 100 of 500 matches
Mail list logo