> 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]
>
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
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
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
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
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
:
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
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
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
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
:
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
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
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
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
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
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
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'
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
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
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
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
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
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
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
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.
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
:
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
> 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
:
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
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
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.
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
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
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
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
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.
>>
>
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
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
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
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
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
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 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*
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
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
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
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
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
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'
>
>
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
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
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
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'
>
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
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
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
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
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
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-
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
>> >
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
>
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
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)])
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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.
>> 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
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
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 - 100 of 114 matches
Mail list logo