Re: A desperate lunge for on-topic-ness

2012-10-17 Thread Demian Brecht
> 3. Say "well, at least it's not a backslash" and break the line using > parentheses. This. More times than not, there's a function call in that line, which makes sense to me when reading it if the args are on the next line. > 4. Spend 45 minutes trying to think up shorter [but still sensible] >

Re: Change computername

2012-10-17 Thread Anatoli Hristov
Thank you, I will test this, will keep you posted. Anatoli On Wed, Oct 17, 2012 at 7:47 PM, Ian Kelly wrote: > On Wed, Oct 17, 2012 at 8:07 AM, Anatoli Hristov wrote: >> Hello, >> >> Can you please help me out how can I change the computername of >> windows XP with or without the "WIN32" modul

Re: A desperate lunge for on-topic-ness

2012-10-17 Thread Steven D'Aprano
On Thu, 18 Oct 2012 02:06:19 -0400, Zero Piraeus wrote: > What are people's preferred strategies for dealing with lines that go > over 79 characters? A few I can think of off the bat: > > 1. Say "screw it" and go past 79, PEP8 be damned. I've been burnt enough by word-wrapping in editors that do

Re: Aggressive language on python-list

2012-10-17 Thread David Hutto
On Thu, Oct 18, 2012 at 2:19 AM, rusi wrote: > On Oct 18, 10:18 am, Zero Piraeus wrote: >> : >> >> On 18 October 2012 00:36, rusi wrote: >> >> > Unfortunately, I feel this whole discussion/thread has got derailed: >> > Zero you started this thread about aggressive behavior. It does not >> > seem

Re: Aggressive language on python-list

2012-10-17 Thread rusi
On Oct 18, 10:18 am, Zero Piraeus wrote: > : > > On 18 October 2012 00:36, rusi wrote: > > > Unfortunately, I feel this whole discussion/thread has got derailed: > > Zero you started this thread about aggressive behavior. It does not > > seem to me that this was the case you were talking of, was

Re: A desperate lunge for on-topic-ness

2012-10-17 Thread Chris Angelico
On Thu, Oct 18, 2012 at 5:06 PM, Zero Piraeus wrote: > What are people's preferred strategies for dealing with lines that go > over 79 characters? A few I can think of off the bat: > > 1. Say "screw it" and go past 79, PEP8 be damned. > > 6. Realise that if it's that long, it probably shouldn't ha

A desperate lunge for on-topic-ness

2012-10-17 Thread Zero Piraeus
: Okay, so, first thing vaguely Python-related that comes to mind [so probably not even slightly original, but then that's not really the point]: What are people's preferred strategies for dealing with lines that go over 79 characters? A few I can think of off the bat: 1. Say "screw it" and go p

Re: Aggressive language on python-list

2012-10-17 Thread David Hutto
On Thu, Oct 18, 2012 at 1:29 AM, Steven D'Aprano wrote: > David, > > While I acknowledge and appreciate your efforts to be less aggressive on > this list, I think you have crossed a line by forwarding the contents of > an obviously personal email containing CLEARLY PRIVATE MATTERS to a > public li

Re: Aggressive language on python-list

2012-10-17 Thread Steven D'Aprano
David, While I acknowledge and appreciate your efforts to be less aggressive on this list, I think you have crossed a line by forwarding the contents of an obviously personal email containing CLEARLY PRIVATE MATTERS to a public list without permission, without even anonymising it. Not cool mat

Re: unittest for system testing

2012-10-17 Thread Dave Angel
On 10/17/2012 08:22 PM, Rita wrote: > Hi, > > Currently, I use a shell script to test how my system behaves before I > deploy an application. For instance, I check if fileA, fileB, and fileC > exist and if they do I go and start up my application. > > This works great BUT > > I would like to use py

Re: Aggressive language on python-list

2012-10-17 Thread Zero Piraeus
: On 18 October 2012 00:36, rusi wrote: > Unfortunately, I feel this whole discussion/thread has got derailed: > Zero you started this thread about aggressive behavior. It does not > seem to me that this was the case you were talking of, was it? Sorry, but I'm having trouble parsing that sentenc

Re: Aggressive language on python-list

2012-10-17 Thread Hguant
On 10/18/2012 12:42 AM, Chris Angelico wrote: On Thu, Oct 18, 2012 at 3:33 PM, Dwight Hutto wrote: On Thu, Oct 18, 2012 at 12:23 AM, Chris Angelico wrote: Common misconception. The First Amendment to the United States Constitution prohibits the *making of any law* that restricts certain freed

Re: Aggressive language on python-list

2012-10-17 Thread Dwight Hutto
On Thu, Oct 18, 2012 at 12:31 AM, alex23 wrote: > On Oct 18, 2:26 pm, Dwight Hutto wrote: >> But you apparently want freedom of speech. > > I can't even begin to address this idiocy. Then don't(your idiocy acknowledges your own misunderstanding), because you don't want the freedom to speak publi

Re: Aggressive language on python-list

2012-10-17 Thread rusi
On Oct 18, 9:06 am, alex23 wrote: > On Oct 18, 2:02 pm, Dwight Hutto wrote: > [a public response to a private email] > > I really don't appreciate you pushing public a *private email > exchange*, especially when it has nothing whatsoever to do with this > list. Speaking generally I agree. Speci

Re: Aggressive language on python-list

2012-10-17 Thread Dwight Hutto
On Thu, Oct 18, 2012 at 12:24 AM, alex23 wrote: > On Oct 18, 2:21 pm, Dwight Hutto wrote: >> Usually, etiquette dictates, that we hit "reply all". > > Then why did you actively re-add the list as a recipient when I had > removed it? How was I supposed to know you removed it. Usually it's an acci

Re: Aggressive language on python-list

2012-10-17 Thread Chris Angelico
On Thu, Oct 18, 2012 at 3:33 PM, Dwight Hutto wrote: > On Thu, Oct 18, 2012 at 12:23 AM, Chris Angelico wrote: >> Common misconception. The First Amendment to the United States >> Constitution prohibits the *making of any law* that restricts certain >> freedoms. It does not have ANYTHING to do wi

Re: Aggressive language on python-list

2012-10-17 Thread alex23
On Oct 18, 2:26 pm, Dwight Hutto wrote: > But you apparently want freedom of speech. I can't even begin to address this idiocy. > As I've mentioned before...people can start arguing, and one replies > off list, and then goes back on the list after a private e-mail, and > says ahah, see how they'

Re: Aggressive language on python-list

2012-10-17 Thread Dwight Hutto
On Thu, Oct 18, 2012 at 12:28 AM, Chris Angelico wrote: > On Thu, Oct 18, 2012 at 3:21 PM, Dwight Hutto wrote: >> On Thu, Oct 18, 2012 at 12:06 AM, alex23 wrote: >>> On Oct 18, 2:02 pm, Dwight Hutto wrote: >>> [a public response to a private email] >>> >>> I really don't appreciate you pushing

Re: Aggressive language on python-list

2012-10-17 Thread Dwight Hutto
On Thu, Oct 18, 2012 at 12:23 AM, Chris Angelico wrote: > On Thu, Oct 18, 2012 at 3:05 PM, Dwight Hutto wrote: >> On Wed, Oct 17, 2012 at 11:50 PM, wu wei wrote: >>> Did you really forward a private email to a public mailing list without >>> permission? >>> >>> Are you really that fucking ignora

Re: Aggressive language on python-list

2012-10-17 Thread Dwight Hutto
On Thu, Oct 18, 2012 at 12:11 AM, alex23 wrote: > On Oct 18, 2:05 pm, Dwight Hutto wrote: >> This is a public discussion. Maybe you just need to stand behind a >> loophole in the law, but the first amendment overrides that. > > I'm not in America, so your constitution means nothing to me. But yo

Re: Aggressive language on python-list

2012-10-17 Thread Chris Angelico
On Thu, Oct 18, 2012 at 3:21 PM, Dwight Hutto wrote: > On Thu, Oct 18, 2012 at 12:06 AM, alex23 wrote: >> On Oct 18, 2:02 pm, Dwight Hutto wrote: >> [a public response to a private email] >> >> I really don't appreciate you pushing public a *private email >> exchange*, especially when it has not

Re: Aggressive language on python-list

2012-10-17 Thread alex23
On Oct 18, 2:21 pm, Dwight Hutto wrote: > Usually, etiquette dictates, that we hit "reply all". Then why did you actively re-add the list as a recipient when I had removed it? -- http://mail.python.org/mailman/listinfo/python-list

Re: Aggressive language on python-list

2012-10-17 Thread Chris Angelico
On Thu, Oct 18, 2012 at 3:05 PM, Dwight Hutto wrote: > On Wed, Oct 17, 2012 at 11:50 PM, wu wei wrote: >> Did you really forward a private email to a public mailing list without >> permission? >> >> Are you really that fucking ignorant of the law? > > This is a public discussion. Maybe you just n

Re: Aggressive language on python-list

2012-10-17 Thread Dwight Hutto
On Thu, Oct 18, 2012 at 12:06 AM, alex23 wrote: > On Oct 18, 2:02 pm, Dwight Hutto wrote: > [a public response to a private email] > > I really don't appreciate you pushing public a *private email > exchange*, especially when it has nothing whatsoever to do with this > list. Usually, etiquette d

Re: Aggressive language on python-list

2012-10-17 Thread alex23
On Oct 18, 2:05 pm, Dwight Hutto wrote: > This is a public discussion. Maybe you just need to stand behind a > loophole in the law, but the first amendment overrides that. I'm not in America, so your constitution means nothing to me. > Plus, that is the standard. We discuss this as a community.

Re: Aggressive language on python-list

2012-10-17 Thread alex23
On Oct 18, 2:02 pm, Dwight Hutto wrote: [a public response to a private email] I really don't appreciate you pushing public a *private email exchange*, especially when it has nothing whatsoever to do with this list. -- http://mail.python.org/mailman/listinfo/python-list

Re: Aggressive language on python-list

2012-10-17 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 11:50 PM, wu wei wrote: > Did you really forward a private email to a public mailing list without > permission? > > Are you really that fucking ignorant of the law? This is a public discussion. Maybe you just need to stand behind a loophole in the law, but the first amendm

Re: Deployment tools using Python (was: unittest for system testing)

2012-10-17 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 11:59 PM, alex23 wrote: > On Oct 18, 1:39 pm, Dwight Hutto wrote: >> Logging and >> testing your own functions/classes is something that come in the >> pre-algorithm of the app you wish to deploy. > > What is a pre-algorithm? > -- > http://mail.python.org/mailman/listinfo/

Re: Aggressive language on python-list

2012-10-17 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 11:47 PM, wu wei wrote: > On Thu, Oct 18, 2012 at 1:10 PM, Dwight Hutto > wrote: >> >> It's intended to be involved, witty, and as informed as I can be > > > You fail on every level here. According to your opinion. > >> >> No, I'm fine a s a monk until recently, when medi

Re: Deployment tools using Python (was: unittest for system testing)

2012-10-17 Thread alex23
On Oct 18, 1:39 pm, Dwight Hutto wrote: > Logging and > testing your own functions/classes is something that come in the > pre-algorithm of the app you wish to deploy. What is a pre-algorithm? -- http://mail.python.org/mailman/listinfo/python-list

Re: bad httplib latency due to IPv6 use

2012-10-17 Thread Chris Angelico
On Thu, Oct 18, 2012 at 11:28 AM, Roy Smith wrote: > One likely path is to check in /etc/nsswitch.conf to see what data > sources the resolver should consult. On the box I'm using at the > moment, it says: > > hosts: files dns This is true on Linux, and presumably on various other Unice

Re: Deployment tools using Python (was: unittest for system testing)

2012-10-17 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 11:30 PM, Ben Finney wrote: > Rita writes: > >> Currently, I use a shell script to test how my system behaves before I >> deploy an application. For instance, I check if fileA, fileB, and >> fileC exist and if they do I go and start up my application. > > The operating sys

Deployment tools using Python (was: unittest for system testing)

2012-10-17 Thread Ben Finney
Rita writes: > Currently, I use a shell script to test how my system behaves before I > deploy an application. For instance, I check if fileA, fileB, and > fileC exist and if they do I go and start up my application. The operating system shell, or the deployment framework of choice, is best suit

Re: unittest for system testing

2012-10-17 Thread Rita
thanks. I suppose I would need a simple example from one of these libraries. ( i typed too soon for , "no code needed" ) On Wed, Oct 17, 2012 at 8:49 PM, Mark Lawrence wrote: > On 18/10/2012 01:22, Rita wrote: > >> Hi, >> >> Currently, I use a shell script to test how my system behaves before

Re: Aggressive language on python-list

2012-10-17 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 9:02 PM, alex23 wrote: > On Oct 18, 9:53 am, Dwight Hutto wrote: >> To take it a little further, what if I said I got gypped. I think it >> goes to gypsy's. Was it racist? > > Ignorant racism is still racism. No it's not, that 's why it's called ignorant...you just didn't

By this program, you get full access to any account SkypeHackers 2013 and FacebookHackers 2013

2012-10-17 Thread ranyahayatee
By this program, you get full access to any account SkypeHackers 2013 you can enjoy a http://www.mediafire.com/?1d3o9sum1wbepvr By this program, you get full access to any account FacebookHackers 2013 you can enjoy a http://www.mediafire.com/?1zfu43i2jrryrau -- http://mail.python.org/mailman/lis

Re: Aggressive language on python-list

2012-10-17 Thread alex23
On Oct 18, 9:53 am, Dwight Hutto wrote: > To take it a little further, what if I said I got gypped. I think it > goes to gypsy's. Was it racist? Ignorant racism is still racism. Historical racism is still racism. > It seems that we get too politically correct when we want to cherry > pick a comm

Re: Aggressive language on python-list

2012-10-17 Thread Mark Lawrence
On 18/10/2012 01:44, Oscar Benjamin wrote: It came across to me as an offensive comment both to you and to people with Asperger's that I would not tolerate generally. It is retracted so I hold no ill will and don't want to dwell on it. In fact the very quick retraction is a good thing to happen

Re: unittest for system testing

2012-10-17 Thread Mark Lawrence
On 18/10/2012 01:22, Rita wrote: Hi, Currently, I use a shell script to test how my system behaves before I deploy an application. For instance, I check if fileA, fileB, and fileC exist and if they do I go and start up my application. This works great BUT I would like to use python and in part

Re: Aggressive language on python-list

2012-10-17 Thread Oscar Benjamin
On 18 October 2012 00:17, Steven D'Aprano wrote: > On Wed, 17 Oct 2012 14:10:34 -0700, rurpy wrote: > >> 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 wr

Re: bad httplib latency due to IPv6 use

2012-10-17 Thread Roy Smith
In article , Ulrich Eckhardt wrote: > Some updates on the issue: > > The etc/hosts file contains the following lines: > > # localhost name resolution is handled within DNS itself. > # 127.0.0.1 localhost > # ::1 localhost > > As I understand it, those effectively

Re: Aggressive language on python-list

2012-10-17 Thread rurpy
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 diabetic?" > > If the question were sincer

unittest for system testing

2012-10-17 Thread Rita
Hi, Currently, I use a shell script to test how my system behaves before I deploy an application. For instance, I check if fileA, fileB, and fileC exist and if they do I go and start up my application. This works great BUT I would like to use python and in particular unittest module to test my s

Re: Aggressive language on python-list

2012-10-17 Thread Zero Piraeus
: On 17 October 2012 19:53, Dwight Hutto wrote: > To take it a little further, what if I said I got gypped. I think it > goes to gypsy's. Was it racist? "Racist" is a word with competing definitions, and intent is a factor in some of them ... but yes, many people are offended by such use of the

Re: Aggressive language on python-list

2012-10-17 Thread Dwight Hutto
> Instead of "diabetic", try inserting the word "black" or "female". > There's no shame in those either, yet I think that the offensiveness > of either of those words used in that context should be obvious. To take it a little further, what if I said I got gypped. I think it goes to gypsy's. Was i

Re: Aggressive language on python-list

2012-10-17 Thread Zero Piraeus
: On 17 October 2012 19:17, Steven D'Aprano wrote: [on Asperger's] > 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 diabetic?" There's no more shame in being Aspie than there is in > being dia

Re: Aggressive language on python-list

2012-10-17 Thread Ian Kelly
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 diabetic?" If the question were sincere, no. On the other hand, if it were a rhetorica

Re: where to view range([start], stop[, step])'s C implementation source code ?

2012-10-17 Thread iMath
On Monday, October 1, 2012 11:42:26 PM UTC+8, Ian wrote: > On Mon, Oct 1, 2012 at 9:28 AM, iMath wrote: > > > where to view range([start], stop[, step])'s C implementation source code ? > > > > http://hg.python.org/cpython/file/3f739f42be51/Objects/rangeobject.c thanks -- http://mail.python.

Re: OT Questions

2012-10-17 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 7:12 PM, Steven D'Aprano wrote: > On Wed, 17 Oct 2012 18:05:12 -0400, Dwight Hutto wrote: > >> On Wed, Oct 17, 2012 at 5:31 AM, Chris Angelico >> wrote: >>> On Wed, Oct 17, 2012 at 5:27 PM, Dwight Hutto >>> wrote: On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht

Re: Aggressive language on python-list

2012-10-17 Thread Steven D'Aprano
On Wed, 17 Oct 2012 14:10:34 -0700, rurpy wrote: > 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 tu

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread Steven D'Aprano
On Wed, 17 Oct 2012 13:16:43 -0400, David Robinow wrote: > On Wed, Oct 17, 2012 at 1:07 PM, Ian Kelly > wrote: >> "return len(w) != len(w_decomposed)" is all you need. > > Thanks for helping, but I already knew that. David, Ian was directly responding to wxjmfa...@gmail.com, whose suggestion i

Re: OT Questions

2012-10-17 Thread Steven D'Aprano
On Wed, 17 Oct 2012 18:05:12 -0400, Dwight Hutto wrote: > On Wed, Oct 17, 2012 at 5:31 AM, Chris Angelico > wrote: >> On Wed, Oct 17, 2012 at 5:27 PM, Dwight Hutto >> wrote: >>> On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht >>> wrote: I can't ascertain what your strengths are as I don't w

Re: list comprehension question

2012-10-17 Thread Oscar Benjamin
On 17 October 2012 06:09, Dwight Hutto wrote: > On Wed, Oct 17, 2012 at 12:43 AM, Kevin Anthony > wrote: >> Is it not true that list comprehension is much faster the the for loops? >> >> If it is not the correct way of doing this, i appoligize. >> Like i said, I'm learing list comprehension. >> >

Re: OT Questions

2012-10-17 Thread Robert Kern
On 10/17/12 11:05 PM, Dwight Hutto wrote: On Wed, Oct 17, 2012 at 5:31 AM, Chris Angelico wrote: On Wed, Oct 17, 2012 at 5:27 PM, Dwight Hutto wrote: On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht wrote: I can't ascertain what your strengths are as I don't work with you on a daily basis (o

Re: OT Questions

2012-10-17 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 12:38 PM, Prasad, Ramit wrote: > David Hutto wrote: >> On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht >> wrote: >> > * Your strength is not design. Using bevel and emboss (and a pattern here >> > and there) does not constitute good >> design. >> >> It's simplicity within

Re: OT Questions

2012-10-17 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 10:19 AM, Grant Edwards wrote: > On 2012-10-17, Dwight Hutto wrote: > >> No I'm not a troll. I like to answer, as well as ask, and sometimes >> things get heated, and you get called a name, and the name takes the >> argument out of context sometimes. > > Uh, what? How can

Re: OT Questions

2012-10-17 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 5:31 AM, Chris Angelico wrote: > On Wed, Oct 17, 2012 at 5:27 PM, Dwight Hutto wrote: >> On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht >> wrote: >>> I can't ascertain what your strengths are as I don't work with you on a >>> daily basis (one of the many benefits of wor

Re: list comprehension question

2012-10-17 Thread Terry Reedy
On 10/17/2012 3:13 AM, rusi wrote: On Oct 17, 10:22 am, Terry Reedy wrote: On 10/16/2012 9:54 PM, Kevin Anthony wrote: I've been teaching myself list comprehension, and i've run across something i'm not able to convert. My response is to the part Kevin could *not* convert, not the parts he

Re: Aggressive language on python-list

2012-10-17 Thread rurpy
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

Re: Aggressive language on python-list

2012-10-17 Thread Oscar Benjamin
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 apparently >>> didn't notice that *sending private emails*

Re: Aggressive language on python-list

2012-10-17 Thread rurpy
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 when one is the t

Re: Aggressive language on python-list

2012-10-17 Thread rurpy
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 apparently >>> didn't notice that *sending private email

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread wxjmfauth
Le mercredi 17 octobre 2012 20:28:21 UTC+2, Ian a écrit : > On Wed, Oct 17, 2012 at 12:17 PM, wrote: > > > Not at all, I knew this. In this I decided to program like > > > this. > > > > > > Do you get it? Yes/No or True/False > > > > It's just bad style, because both 'yes' and 'no' evalu

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread Ian Kelly
On Wed, Oct 17, 2012 at 12:17 PM, wrote: > Not at all, I knew this. In this I decided to program like > this. > > Do you get it? Yes/No or True/False It's just bad style, because both 'yes' and 'no' evaluate true. if HasDiacritics('éléphant'): print('Correct!') if HasDiacritics('elephant

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread Chris Angelico
On Thu, Oct 18, 2012 at 5:17 AM, wrote: > Not at all, I knew this. In this I decided to program like > this. > > Do you get it? Yes/No or True/False Yes but why? When you're returning a boolean concept, why not return a boolean value? You don't even use values with one that compares-as-true an

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread wxjmfauth
Le mercredi 17 octobre 2012 19:07:43 UTC+2, Ian a écrit : > On Wed, Oct 17, 2012 at 9:32 AM, wrote: > > import unicodedata > > def HasDiacritics(w): > > > ... w_decomposed = unicodedata.normalize('NFKD', w) > > > ... return 'no' if len(w) == len(w_decomposed) else 'yes' > >

Re: Aggressive language on python-list

2012-10-17 Thread Chris Angelico
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 apparently >> didn't notice that *sending private emails* is not by any definition >> "ignoring". So apparently

Re: Change computername

2012-10-17 Thread Ian Kelly
On Wed, Oct 17, 2012 at 8:07 AM, Anatoli Hristov wrote: > Hello, > > Can you please help me out how can I change the computername of > windows XP with or without the "WIN32" module ? Untested: from ctypes import * ComputerNamePhysicalDnsHostname = 5 computer_name = u'COMPUTER' success = windl

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread David Robinow
On Wed, Oct 17, 2012 at 1:07 PM, Ian Kelly wrote: > "return len(w) != len(w_decomposed)" is all you need. Thanks for helping, but I already knew that. -- http://mail.python.org/mailman/listinfo/python-list

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread Ian Kelly
On Wed, Oct 17, 2012 at 9:32 AM, wrote: import unicodedata def HasDiacritics(w): > ... w_decomposed = unicodedata.normalize('NFKD', w) > ... return 'no' if len(w) == len(w_decomposed) else 'yes' > ... HasDiacritics('éléphant') > 'yes' HasDiacritics('elephant') > 'no' >

Re: Aggressive language on python-list

2012-10-17 Thread rurpy
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: >> >> No, I wrote about trolls. "dicks" is a highly emotive an

Re: Index in a list

2012-10-17 Thread Hans Mulder
On 17/10/12 12:10:56, Anatoli Hristov wrote: > I'm trying to index a text in a list as I'm importing a log file and > each line is a list. > > What I'm trying to do is find the right line which contains the text > User : and take the username right after the text "User :", but the > list.index("(U

RE: OT Questions

2012-10-17 Thread Prasad, Ramit
David Hutto wrote: > On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht wrote: > > * Your strength is not design. Using bevel and emboss (and a pattern here > > and there) does not constitute good > design. > > It's simplicity within a symbolism, and now that I need money for > medical reasons, the

zip_longest_by

2012-10-17 Thread Neil Cerutti
While working through Project Euler, a fun source of exercises, I composed the following iterator recipe to yield from multiple iterators in fixed-length groups: import itertools def zip_longest_by(*args, fillvalue=None, n=1, grouper=tuple): """Yield n at a time from each of the args, with pa

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-10-17 Thread Alex
Fabio Zadrozny wrote: > On Thu, Sep 6, 2012 at 10:43 AM, Alex wrote: > > Ramchandra Apte wrote: > > > >> On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex wrote: > >> > I'm new to Python and have been using IDLE 3.2.3 to experiment > with >> > > >> > code as I learn. Despite being configured

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread wxjmfauth
Le mercredi 17 octobre 2012 17:00:46 UTC+2, Dave Angel a écrit : > On 10/17/2012 10:31 AM, nwaits wrote: > > > I'm very impressed with python's wordlist script for plain text. Is there > > a script for finding words that do NOT have certain diacritic marks, like > > acute or grave accents (utf-

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-10-17 Thread Fabio Zadrozny
On Thu, Sep 6, 2012 at 10:43 AM, Alex wrote: > Ramchandra Apte wrote: > >> On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex wrote: >> > I'm new to Python and have been using IDLE 3.2.3 to experiment with >> > >> > code as I learn. Despite being configured to use a 4 space >> > indentation >> >

Re: list comprehension question

2012-10-17 Thread 88888 Dihedral
rusi於 2012年10月17日星期三UTC+8下午10時50分11秒寫道: > On Oct 17, 7:37 pm, Dave Angel wrote: > > > > > And I'd wager all the improvement is in the inner loop, the dot() function. > > > > Sorry -- red herring! > > > > Changing > > > > def mm1(a,b): return [[sum(x*y for x,y in zip(ra,rb)) for rb in >

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread Dave Angel
On 10/17/2012 10:31 AM, nwaits wrote: > I'm very impressed with python's wordlist script for plain text. Is there a > script for finding words that do NOT have certain diacritic marks, like acute > or grave accents (utf-8), over the vowels? > Thank you. if you can construct a list of "illegal

Re: list comprehension question

2012-10-17 Thread rusi
On Oct 17, 7:37 pm, Dave Angel wrote: > And I'd wager all the improvement is in the inner loop, the dot() function. Sorry -- red herring! Changing def mm1(a,b): return [[sum(x*y for x,y in zip(ra,rb)) for rb in zip(*b)] for ra in a] to def mm1(a,b): return [[sum([x*y for x,y in zip(ra,rb)])

Re: list comprehension question

2012-10-17 Thread 88888 Dihedral
Dave Angel於 2012年10月17日星期三UTC+8下午10時37分01秒寫道: > On 10/17/2012 10:06 AM, rusi wrote: > > > On Oct 17, 5:33 pm, Dave Angel wrote: > > >> On 10/17/2012 12:43 AM, Kevin Anthony wrote:> Is it not true that list > >> comprehension is much faster the the for loops? > > >> > > >>> If it is not the co

Re: list comprehension question

2012-10-17 Thread Dave Angel
On 10/17/2012 10:06 AM, rusi wrote: > On Oct 17, 5:33 pm, Dave Angel wrote: >> On 10/17/2012 12:43 AM, Kevin Anthony wrote:> Is it not true that list >> comprehension is much faster the the for loops? >> >>> If it is not the correct way of doing this, i appoligize. >>> Like i said, I'm learing li

Re: Aggressive language on python-list

2012-10-17 Thread Chris Angelico
On Thu, Oct 18, 2012 at 1:29 AM, Grant Edwards wrote: > I disagree! I think occasional off-topic meta-arguments can be > interesting and entertaining. > > Yow! Am I having a meta-meta-discussion yet? Now we get to the meat of the discussion... It's like I was explaining to one of my brothers t

Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread nwaits
I'm very impressed with python's wordlist script for plain text. Is there a script for finding words that do NOT have certain diacritic marks, like acute or grave accents (utf-8), over the vowels? Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: list comprehension question

2012-10-17 Thread rusi
On Oct 17, 7:06 pm, rusi wrote: > On Oct 17, 5:33 pm, Dave Angel wrote: > > > On 10/17/2012 12:43 AM, Kevin Anthony wrote:> Is it not true that list > > comprehension is much faster the the for loops? > > > > If it is not the correct way of doing this, i appoligize. > > > Like i said, I'm learin

Re: OT Questions

2012-10-17 Thread Virgil Stokes
On 17-Oct-2012 11:31, Chris Angelico wrote: On Wed, Oct 17, 2012 at 5:27 PM, Dwight Hutto wrote: On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht wrote: I can't ascertain what your strengths are as I don't work with you on a daily basis (one of the many benefits of working with people smarter

Re: Aggressive language on python-list

2012-10-17 Thread Grant Edwards
On 2012-10-17, Terry Reedy wrote: > On 10/16/2012 11:47 PM, Kristen J. Webb wrote: > >> I will say that my perusal of this list has been >> informative. I also receive more email from this >> list than any other I subscribe to. > > You could instead access it as a newsgroup via news.gmane.org. Th

Re: Aggressive language on python-list

2012-10-17 Thread Grant Edwards
On 2012-10-17, Steven D'Aprano wrote: > On Tue, 16 Oct 2012 21:25:38 -0700, alex23 wrote: > >> I really don't get people who feel they need to share their opinion when >> that opinion is that other people shouldn't share theirs. > > +1 QOTW > > It makes me laugh when newcomers to this group stick

Re: OT Questions

2012-10-17 Thread Grant Edwards
On 2012-10-17, Dwight Hutto wrote: > No I'm not a troll. I like to answer, as well as ask, and sometimes > things get heated, and you get called a name, and the name takes the > argument out of context sometimes. Uh, what? How can a name take an argument out of context? "Taking something out o

Re: list comprehension question

2012-10-17 Thread rusi
On Oct 17, 5:33 pm, Dave Angel wrote: > On 10/17/2012 12:43 AM, Kevin Anthony wrote:> Is it not true that list > comprehension is much faster the the for loops? > > > If it is not the correct way of doing this, i appoligize. > > Like i said, I'm learing list comprehension. > list comprehensions

Re: cx_Oracle clause IN using a variable

2012-10-17 Thread Beppe
Il giorno martedì 16 ottobre 2012 19:23:22 UTC+2, Hans Mulder ha scritto: > On 16/10/12 15:41:58, Beppe wrote: > > > Hi all, > > > I don't know if it is the correct place to set this question, however, > > > I'm using cx_Oracle to query an Oracle database. > > > I've a problem to use the IN cla

Re: bad httplib latency due to IPv6 use

2012-10-17 Thread Chris Angelico
On Wed, Oct 17, 2012 at 11:40 PM, Ulrich Eckhardt wrote: > Concerning the question whether a firewall blocks and unnecessarily delays > connection attempts to ::1, I haven't determined that yet. I'll ask our > admins here to verify whether that is the case. It would only be a software firewall on

Re: easy_install says "not a recognized archive type" Windows Py3

2012-10-17 Thread Chris Angelico
On Tue, Oct 16, 2012 at 1:41 PM, Noah Coad wrote: > error: Not a recognized archive type: > c:\users\noahco~1\appdata\local\temp\easy_ > install-gpekqc\PyMySQL-0.5.tar.gz Nobody seems to have responded to this (or I haven't seen it), but it looks like your system can't extract gzip files. Sugges

Re: bad httplib latency due to IPv6 use

2012-10-17 Thread Ulrich Eckhardt
Some updates on the issue: The etc/hosts file contains the following lines: # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost As I understand it, those effectively mean that localhost is not resolved via this hosts fil

Re: Index in a list

2012-10-17 Thread Anatoli Hristov
Thanks a lot this solved my issue:) Regards Anatoli On Wed, Oct 17, 2012 at 12:23 PM, Chris Angelico wrote: > On Wed, Oct 17, 2012 at 9:10 PM, Anatoli Hristov wrote: >> Hello, >> >> I'm trying to index a text in a list as I'm importing a log file and >> each line is a list. >> >> What I'm tryi

Re: list comprehension question

2012-10-17 Thread Dave Angel
On 10/17/2012 12:43 AM, Kevin Anthony wrote: > Is it not true that list comprehension is much faster the the for loops? > > If it is not the correct way of doing this, i appoligize. > Like i said, I'm learing list comprehension. > (Please don't top-post; it ruins the ordering. In these forums,

Re: bad httplib latency due to IPv6 use

2012-10-17 Thread Roy Smith
In article <1s42l9-9al@satorlaser.homedns.org>, Ulrich Eckhardt wrote: > Hi! > > I noticed yesterday that a single HTTP request to localhost takes > roughly 1s, regardless of the actually served data, which is way too > long. After some digging, I found that the problem lies in > socket.

Re: system tray or notification area in python

2012-10-17 Thread Daniel Fetchinson
>> So I thought I would write a brand new stand alone system tray or >> notification area in python. I guess I need to use gtk bindings or >> some such but don't really know what my options are. >> >> Where would I start something like this? >> Any pointers would be greatly

Re: Index in a list

2012-10-17 Thread Chris Angelico
On Wed, Oct 17, 2012 at 9:10 PM, Anatoli Hristov wrote: > Hello, > > I'm trying to index a text in a list as I'm importing a log file and > each line is a list. > > What I'm trying to do is find the right line which contains the text > User : and take the username right after the text "User :", bu

Index in a list

2012-10-17 Thread Anatoli Hristov
Hello, I'm trying to index a text in a list as I'm importing a log file and each line is a list. What I'm trying to do is find the right line which contains the text User : and take the username right after the text "User :", but the list.index("(User :") is indexing only if all the text matching

  1   2   >