Ulrich:
If you take a look at pep 3105 you find five rationales.
http://www.python.org/dev/peps/pep-3105/#rationale
If the first were the only one then your suggestion would have merit.
There are also the other 4 in which pass and print dont really
correspond.
Steven wrote earlier:
> I have an ax
On Jul 25, 1:40 pm, Ulrich Eckhardt
wrote:
> Hi!
>
> I just had an idea, it occurred to me that the pass statement is pretty
> similar to the print statement, and similarly to the print() function,
> there could be a pass() function that does and returns nothing.
>
> Example:
> def pass():
>
On Jul 29, 10:08 am, Ben Finney wrote:
> Tim Chase writes:
> > On Sat, Jul 28, 2012 at 6:29 PM, Mark Lawrence wrote:
> > > I highly recommend the use of notepad++. If anyone knows of a
> > > better text editor for Windows please let me know :)
I would have bet Mark was ribbing the folks on this
On Jul 29, 9:01 pm, lipska the kat wrote:
> Pythoners
>
> Firstly, thanks to those on the tutor list who answered my questions.
>
> I'm trying to understand where Python fits into the set of commonly
> available, commercially used languages of the moment.
>
> My most recent experience is with Java
On Aug 3, 4:34 pm, lipska the kat wrote:
> A while ago someone asked me what I thought of the Eclipse plugin for
> python, well I just downloaded and installed the latest version of
> Eclipse for Java (Juno) followed by the Python plugin.
Thanks Lipska for reporting back.
I personally find the ec
On Aug 3, 10:04 pm, lipska the kat wrote:
>
> 117 methods seems a lot doesn't it. I'm still trying to get my head
> around Python packages, I think Eclipse will help me with this and the
> whole module mix of functions and classes is taking a while to get used
> to. The standard included libraries
On Aug 6, 12:46 am, lipska the kat wrote:
> On 04/08/12 16:49, Jean Dubois wrote:
>
> > I'm looking for a good introduction to object oriented programming
> > with Python.
>
> Object Oriented programming is a mindset, a way of looking at that
> particular part of our world that you are trying to
On Aug 6, 7:27 pm, lipska the kat wrote:
> You take out the garbage.
> I've got automatic garbage collection
:-)
BTW in "automatic garbage collection" which of the three words is most
important? Least?
Heres another take on nouns (and therefore OO):
http://hilgart.org/enformy/dma-verb.htm
--
On Aug 7, 6:16 am, Steven D'Aprano wrote:
> On Mon, 06 Aug 2012 09:05:50 -0700, Ethan Furman wrote:
> > These are not the errors an intermediate user would make, nor the
> > questions an intermediate user would ask. These are the errors that
> > somebody who doesn't know Python would make.
> >
On Aug 5, 11:26 pm, Csanyi Pal wrote:
> Mark Lawrence writes:
> > On 05/08/2012 16:58, Csanyi Pal wrote:
> >> Walter Hurry writes:
>
> >>> On Thu, 02 Aug 2012 20:24:36 +0200, Csanyi Pal wrote:
>
> I'm searching for a way to develope a Python graphical application for a
> Postgresql dat
On Aug 4, 11:15 am, Steven D'Aprano wrote:
> Most people are aware, if only vaguely, of the big Four Python
> implementations:
I think the question about where Cython fits into this, raises the
need for a complementary list to Steven's. What are the different
ways in which python can be extende
On Aug 7, 8:06 am, Jugurtha Hadjar wrote:
> On 08/05/2012 09:52 PM, John Mordecai Dildy wrote:
>
> > NameError: name 'start' is not defined
>
> > anyone know how to make start defined
>
> Maybe rename it "defined_start" ;)
>
> I wonder how someone can get to the point of writing more than 76 lines
On Aug 7, 7:34 pm, lipska the kat wrote:
>
> Never thought so for a moment, good to know you can be reasonable as
> well as misguided ;-)
Well Lipska I must say that I find something resonant about the 'no-
person' thing, though I am not sure what.
You also said something about 'user' being more
On Aug 8, 2:51 pm, lipska the kat wrote:
> The point I'm obviously struggling to make is that words convey concepts
> The word Person conveys a whole lifetime of experience of People and as
> imperfect human beings many of us are unable to tease out 'bits of being
> a person' that are relevant to
On Aug 13, 1:05 pm, Steven D'Aprano wrote:
>
> Chill out Alex, it's all good. Mark was channelling a famous scene from
> "Fawlty Towers", staring Monty Python's own John Cleese, hence it is on-
> topic, for the sillier definitions of on-topic.
Ha! Thanks for that connection.
Watched and enjoyed F
On Aug 17, 3:36 am, Chris Angelico wrote:
> On Fri, Aug 17, 2012 at 1:40 AM, Ramchandra Apte
> wrote:
> > On 16 August 2012 21:00, Mark Lawrence wrote:
> >> and "bottom" reads better than "top"
>
> > Look you are the only person complaining about top-posting.
> > GMail uses top-posting by defau
On Aug 17, 12:25 pm, Chris Angelico wrote:
> On Fri, Aug 17, 2012 at 12:27 PM, Steven D'Aprano
>
> wrote:
> > There is already awesome protocols for running Python code remotely over
> > a network. Please do not re-invent the wheel without good reason.
>
> > See pyro, twisted, rpyc, rpclib, jpc,
On Aug 17, 10:19 am, Dennis Lee Bieber wrote:
> On Thu, 16 Aug 2012 15:42:54 -0700 (PDT), Madison May
> declaimed the following in
> gmane.comp.python.general:
>
>
>
> > As a lurker, I agree completely with Chris's sentiments.
>
> I've been holding back on quoting the "netiquette RFC"...
On Aug 18, 8:34 pm, Grant Edwards wrote:
> On 2012-08-17, rusi wrote:
>
> > I was in a corporate environment for a while. And carried my
> > 'trim&interleave' habits there. And got gently scolded for seeming to
> > hide things!!
>
> I have, rarely, g
On Aug 18, 10:59 pm, Steven D'Aprano wrote:
> On Sat, 18 Aug 2012 08:07:05 -0700, wxjmfauth wrote:
> > Is there any reason why non ascii users are somehow penalized compared
> > to ascii users?
>
> Of course there is a reason.
>
> If you want to represent 1114111 different characters in a string,
On Aug 19, 11:11 pm, wxjmfa...@gmail.com wrote:
> Le dimanche 19 août 2012 19:48:06 UTC+2, Paul Rubin a écrit :
>
>
>
> > But they are not ascii pages, they are (as stated) MOSTLY ascii.
>
> > E.g. the characters are 99% ascii but 1% non-ascii, so 393 chooses
>
> > a much more memory-expensive enco
On Aug 19, 12:15 pm, Steven D'Aprano wrote:
> is probably a really great person and kind to small animals and furry
> children, but...
ROFL!
The first we're all familiar with.
Furry children?
Something to do with heads the size of a planet?
--
http://mail.python.org/mailman/listinfo/python-l
On Aug 23, 9:34 am, Steven D'Aprano wrote:
> On Wed, 22 Aug 2012 18:46:43 +0100, lipska the kat wrote:
> > We need to separate out the 'view' from the 'implementation' here. Most
> > developers I know, if looking at the code and without the possibly
> > dubious benefit of knowing that in Python 'e
On Aug 23, 3:11 pm, Peter Otten <__pete...@web.de> wrote:
> Mark Carter wrote:
> > Suppose I want to define a function "safe", which returns the argument
> > passed if there is no error, and 42 if there is one. So the setup is
> > something like:
>
> > def safe(x):
> > # WHAT WOULD DEFINE HERE?
On Aug 23, 12:52 pm, Fg Nu wrote:
> List folk,
>
> I am a newbie trying to get used to Python. I was wondering if anyone knows
> of web resources that teach good practices in data cleaning and management
> for statistics/analytics/machine learning, particularly using Python.
>
> Ideally, these w
On Aug 24, 7:23 pm, Ramchandra Apte wrote:
> As BFDL, I hereby command everybody to stop the discussion.
> lets put time on useful stuff
>
> i am using google groups (i think it knows what to do)
Your posts are coming in doubles.
And the quoted lines are coming double-spaced!
Actually the 'new'
On Aug 24, 12:22 am, Ian Kelly wrote:
> On Thu, Aug 23, 2012 at 12:33 PM, wrote:
> >> >>> sys.getsizeof('a' * 80 * 50)
>
> >> > 4025
>
> >> sys.getsizeof('a' * 80 * 50 + '•')
>
> >> > 8040
>
> >> This example is still benefiting from shrinking the number of bytes
>
> >> in half over usi
On Aug 23, 8:30 pm, Roy Smith wrote:
> We got burned yesterday by a scenario which has burned us before. We had
> multiple copies of a module in sys.path. One (the one we wanted) was in our
> deployed code tree, the other was in /usr/local/lib/python/ or some such. It
> was a particularly co
On Aug 24, 8:58 pm, rusi wrote:
> On Aug 24, 7:23 pm, Ramchandra Apte wrote:
>
> > As BFDL, I hereby command everybody to stop the discussion.
> > lets put time on useful stuff
>
> > i am using google groups (i think it knows what to do)
>
> Your posts are co
On Aug 28, 4:57 am, Neil Hodgson wrote:
> wxjmfa...@gmail.com:
>
> > Go "has" the integers int32 and int64. A rune ensure
> > the usage of int32. "Text libs" use runes. Go has only
> > bytes and runes.
>
> Go's text libraries use UTF-8 encoded byte strings. Not arrays of
> runes. See, for exa
On Sep 5, 4:27 am, Mark Lawrence wrote:
> On 05/09/2012 00:05, Ben Finney wrote:
>
>
>
>
>
>
>
>
>
> > Andreas Perstinger writes:
>
> >> On 04.09.2012 11:34, Paolo wrote:
> >>> how do I know if a JTextField has the focus?
> >>> thank to all
>
> >> Look there:
> >>http://www.catb.org/esr/faqs/smar
On Sep 7, 5:01 am, jimbo1qaz wrote:
> Is it faster to use bitshifts or floor division? And which is better, & or %?
> All divisors and mods are power of 2, so are binary operations faster? And
> are they considered bad style?
On an 8086/8088 a MUL (multiply) instruction was of the order of 100
c
On Sep 7, 9:32 am, Paul Rubin wrote:
> rusi writes:
> > On an 8086/8088 a MUL (multiply) instruction was of the order of 100
> > clocks ... On most modern processors (after the pentium) the
> > difference has mostly vanished. I cant find a good data sheet to
> >
On Sep 28, 10:21 am, Dwight Hutto wrote:
> On Fri, Sep 28, 2012 at 1:12 AM, Littlefield, Tyler
> wrote:
> > On 9/27/2012 10:50 PM, Dwight Hutto wrote:
>
> >> On Fri, Sep 28, 2012 at 12:40 AM, Chris Angelico wrote:
>
> >>> On Fri, Sep 28, 2012 at 1:47 PM, Dwight Hutto
> >>> wrote:
>
> [ lo
On Sep 27, 5:11 pm, Devin Jeanpierre wrote:
> On Thu, Sep 27, 2012 at 2:13 AM, Steven D'Aprano
>
> wrote:
> > On Tue, 25 Sep 2012 09:15:00 +0100, Mark Lawrence wrote:
> > And a response:
>
> >http://data.geek.nz/python-is-doing-just-fine
>
> Summary of that article:
>
> "Sure, you have all these
On Sep 28, 5:54 pm, Steven D'Aprano wrote:
> On Fri, 28 Sep 2012 05:08:24 -0700, rusi wrote:
> > On Sep 27, 5:11 pm, Devin Jeanpierre wrote:
> >> On Thu, Sep 27, 2012 at 2:13 AM, Steven D'Aprano
>
> >> wrote:
> >> > On Tue, 25 Sep 2012 09:15:
On Sep 30, 5:58 pm, tcgo wrote:
> Hi!
> I'm really new to Usenet/Newsgroups, but... I'd like to learn some new
> programming language, because I learnt a bit of Perl though its OOP is ugly.
> So, after searching a bit, I found Python and Ruby, and both of they are cute.
> So, assuming you'll say
On Oct 7, 9:15 am, Ramchandra Apte wrote:
> On Sunday, 7 October 2012 00:13:58 UTC+5:30, Darryl Owens wrote:
> > I am currently starting my PhD in software quality assurance and have been
> > doing a lot of reading round this subject. I am just trying to find out if
> > there is any relevant/cu
On Oct 9, 7:06 am, Roy Smith wrote:
> In article ,
> Terry Reedy wrote:
>
>
>
>
>
>
>
>
>
> > On 10/8/2012 3:28 PM, mooremath...@gmail.com wrote:
> > > What's the best way to accomplish this? Am I over-complicating it? My
> > > gut
> > > feeling is there is a better way than the following:
>
On Oct 9, 7:34 am, rusi wrote:
> How about a 2-paren version?
>
> >>> x = [1,2,3]
> >>> reduce(operator.add, [['insert', a] for a in x])
>
> ['insert', 1, 'insert', 2, 'insert', 3]
Or if one prefers the different p
On Oct 13, 5:03 am, Roy Smith wrote:
> In article ,
>
> moo...@yahoo.co.uk wrote:
> > I need to define some configuration in a file that will be manually created.
> > [...]
> > json seemed a quick an easy way of achieving this
>
> JSON would not be my first choice for a file which needs to be
> m
On Oct 15, 9:00 pm, John Gordon wrote:
> In Debashish Saha
> writes:
>
> > how to insert random error in a programming?
>
> Open the program source file and replace the Nth character with a random
> character.
I'm reminded of a description of vi:
A program with two modes, one in which it beep
On Oct 16, 7:55 pm, Demian Brecht wrote:
> I'm not sure whether or not this is a troll, but I'll bite.
Do trolls exist any more than pixies, elves, gnomes, unicorns?
Trolling posts of course do... IOW:
> There's a small light somewhere deep down that says maybe this is just
> someone quite misdi
chnically he is correct; humanly I am not so sure.
[I have a personal regret that I did not rebut Steven's rudeness with
a '... that is not necessarily the view of the whole group...'
I hesitated to do so because I am not adept at giving sympathy without
giving false hope and keeping the post at reasonable length.
Anyhow this (too long) post is an attempt at correcting that.]
In the earlier (Quora-thread) Terry Reedy's voice was most balanced
and sane; unfortunately covered in the 'dog-pile' of all the rest.
Hopefully he will put in his word here as well.
[And Zero thank you for starting this thread]
Rusi
- http://blog.languager.org
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 17, 7:14 am, Dave Angel wrote:
> On 10/16/2012 09:54 PM, Kevin Anthony wrote:
>
>
>
>
>
>
>
>
>
> > I've been teaching myself list comprehension, and i've run across something
> > i'm not able to convert.
>
> > here's the original code for matrix multiplcation
>
> > retmatrix = Matrix(self.
On Oct 17, 9:25 am, alex23 wrote:
> On Oct 17, 1:54 pm, "Kristen J. Webb" wrote:
>
> > It sucks for me to spend so much time filtering this BS.
>
> Yet you then chose to participate in a discussion about it. Because
> that's what people do to discuss suitable behaviour.
>
> I really don't get peo
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.
>
> list comprehensions specifically abbreviate the code that they are
> (essentially) equivalent to.
On Oct 17, 11:15 am, alex23 wrote:
> On Oct 17, 2:43 pm, rusi wrote:
>
> > Let me try to restate alex without the barb.
>
> Do you offer this service for hire? :)
Hmm now thats an idea…
Are you offering to hire? [Considering how many jobs Ive changed,
never know whats nex
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
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 a
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)])
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 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
On Oct 18, 11:06 am, Zero Piraeus wrote:
> :
>
> 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
On Oct 18, 11:27 am, David Hutto wrote:
> > [BTW This was enunciated 2000 years ago by a clever chap: Love your
> > enemies; drive them crazy
>
> That only works if they're not already insane.
> Otherwise you're just prodding a cornered beast.
Usually but not necessarily
http://en.wikipedia.org/w
> \ “When I get new information, I change my position. What, sir, |
> `\ do you do with new information?” —John Maynard Keynes |
> _o__) |
> \ “Anyone who believes exponential growth can go on forever in a
Dont know what your code does/tries to do. Anyway some points:
On Oct 19, 1:40 pm, inshu chauhan wrote:
> in this prog I have written a code to calculate teh centre of a given 3D
> data..
>
> but i want to calculate it for every 3 points not the whole data, but
> instead of giving me centre for
On Oct 19, 6:24 pm, graham wrote:
> On 16/10/2012 12:29, graham wrote:
>
>
>
>
>
>
>
>
>
>
>
> > Downloaded and installed Python 2.7.3 for windows (an XP machine).
>
> > Entered the Python interactive interpreter/command line and typed the
> > following:
>
> > >>>import feedparser
>
> > and I
On Oct 19, 6:58 pm, Tarek Ziadé wrote:
> On 10/19/12 12:22 PM, narasimha1...@gmail.com wrote:
>
> > yes but it is not only for one structure like above there will be many
> > sections like that
>
> I'd use yaml or json then...
Maybe http://www.voidspace.org.uk/python/configobj.html ??
--
http:/
On Oct 20, 8:35 am, Michael Torrie wrote:
> On 10/19/2012 06:43 PM, Mark Lawrence wrote:
>
> > Good morning/afternoon/evening all,
>
> > Is there any possibility that we could find a way to prevent the double
> > spaced rubbish that comes from G$ infiltrating this ng/ml? For example,
> > does Pyt
On Oct 20, 8:27 am, Tim Chase wrote:
> On 10/19/12 17:14, Steven D'Aprano wrote:
>
> > Code never *needs* to be long, because it can always be shortened.
>
> I advocate one bit per line:
>
> 1
> 0
> 1
> 0
> 0
> 1
> 0
> 1
> 1
> 0
> 0
> 1
> 0
> 1
> 1
> 1
> 0
> 0
> 0
> 0
> 1
> 1
> 1
> 0
> 1
> 1
> 0
>
On 10/21/2012 11:33 AM, Vincent Davis wrote:
> I am looking for a good way to get every pair from a string. For example,
> input:
> x = 'apple'
> output
> 'ap'
> 'pp'
> 'pl'
> 'le'
Maybe zip before izip for a noob?
>>> s="apple"
>>> [a+b for a,b in zip(s, s[1:])]
['ap', 'pp', 'pl', 'le']
>>>
--
On Oct 22, 9:19 pm, rusi wrote:
> On 10/21/2012 11:33 AM, Vincent Davis wrote:
>
> > I am looking for a good way to get every pair from a string. For example,
> > input:
> > x = 'apple'
> > output
> > 'ap'
> > 'pp'
> >
On Oct 23, 7:52 pm, Virgil Stokes wrote:
> I am working with some rather large data files (>100GB) that contain time
> series
> data. The data (t_k,y(t_k)), k = 0,1,...,N are stored in ASCII format. I
> perform
> various types of processing on these data (e.g. moving median, moving average,
> an
On Oct 25, 7:56 pm, Charles Hixson wrote:
> In Python3 is there any good way to count the number of on bits in an
> integer (after an & operation)?
> Alternatively, is there any VERY light-weight implementation of a bit
> set? I'd prefer to use integers, as I'm probably going to need
> thousands
On Oct 25, 8:57 pm, Steven D'Aprano wrote:
> On Fri, 26 Oct 2012 02:31:53 +1100, Chris Angelico wrote:
> > On Fri, Oct 26, 2012 at 2:25 AM, Christian Heimes
> > wrote:
> >> Simple, easy, faster than a Python loop but not very elegant:
>
> >> bin(number).count("1")
>
> > Unlikely to be fast.
>
On Oct 25, 9:30 pm, Chris Angelico wrote:
> On Fri, Oct 26, 2012 at 3:17 AM, rusi wrote:
> > On Oct 25, 8:57 pm, Steven D'Aprano > +comp.lang.pyt...@pearwood.info> wrote:
> >> py> min(t.repeat(number=1, repeat=7))
> >> 0.6819710731506348
&
On Oct 28, 5:49 am, Steven D'Aprano wrote:
> It's sure as hell more beautiful and readable than assignment as an
> expression.
>
> If we are going to judge code on the ability of people to take a quick
> glance and immediately understand it, then pretty much nothing but
> trivial one-liners will
On Oct 29, 8:20 pm, andrea crotti wrote:
> Any comments about this? What do you prefer and why?
Im not sure how what the 'prefer' is about -- your specific num
wrapper or is it about the general question of choosing mutable or
immutable types?
If the latter I would suggest you read
http://en.wi
On Oct 31, 1:45 am, Neal Becker wrote:
> rusi wrote:
> > On Oct 29, 8:20 pm, andrea crotti wrote:
> >
> >> Any comments about this? What do you prefer and why?
>
> > Im not sure how what the 'prefer' is about -- your specific num
> > wrappe
On Nov 4, 4:14 pm, 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 jus
On Nov 5, 11:40 am, Chris Angelico wrote:
> On Mon, Nov 5, 2012 at 5:10 PM, rusi wrote:
> > Among people who know me, I am a linux nerd: My sister scolded me
> > yesterday because I put files on her computer without spaces:
> > DoesAnyoneWriteLikeThis?!?!
>
> My file
On Nov 7, 5:26 am, MRAB wrote:
> I prefer the term "reference semantics".
Ha! That hits the nail on the head.
To go back to the OP:
On Nov 5, 11:28 am, Demian Brecht wrote:
> So, here I was thinking "oh, this is a nice, easy way to initialize a 4D
> matrix" (running 2.7.3, non-core libs not a
On Nov 9, 4:12 am, Peng Yu wrote:
> Hi,
>
> In bash, set -v will print the command executed. For example, the
> following screen output shows that the "echo" command is printed
> automatically. Is there a similar thing in python?
>
> ~/linux/test/bash/man/builtin/set/-v$ cat main.sh
> #!/usr/bin/e
On Nov 9, 5:54 pm, Artie Ziff wrote:
> Hello,
>
> I want to process XML-like data like this:
> Edits were substituting '/' for '\' on the end tags, and adding the
> following structure:
If thats all you want, you can try the following:
# obviously this should come from a file
input= """
On Nov 9, 11:37 am, Steven D'Aprano wrote:
> On Fri, 09 Nov 2012 17:07:09 +1100, Chris Angelico wrote:
> > On Fri, Nov 9, 2012 at 12:39 PM, Mark Lawrence
> > wrote:
> >> On 07/11/2012 01:55, Steven D'Aprano wrote:
>
> >>> Who knows? Who cares? Nobody does:
>
> >>> n -= n
>
> >> But I've seen this
On Nov 9, 10:41 pm, Peng Yu wrote:
> I have to explicitly specify the modules I want to ignore. Is there a
> way to ignore all the modules by default?
Is this your problem?
http://bugs.python.org/issue10685
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 11, 3:58 am, Roy Smith wrote:
> I'm trying to pull down tweets with one of the many twitter APIs. The
> particular one I'm using (python-twitter), has a call:
>
> data = api.GetSearch(term="foo", page=page)
>
> The way it works, you start with page=1. It returns a list of tweets.
> If the
On Nov 12, 12:09 pm, rusi wrote:
> This is a classic problem -- structure clash of parallel loops
Sorry wrong solution :D
The fidgetiness is entirely due to python not allowing C-style loops
like these:
>> while ((c=getchar()!= EOF) { ... }
Putting it into coroutine form, i
On Nov 12, 9:09 pm, Steve Howell wrote:
> On Nov 12, 7:21 am, rusi wrote:
>
> > On Nov 12, 12:09 pm, rusi wrote:> This is a classic
> > problem -- structure clash of parallel loops
>
> >
>
> > Sorry wrong solution :D
>
> > The fidgetiness is e
On Nov 14, 12:02 pm, ru...@yahoo.com wrote:
>
> ==
> [*] Actually, now that I think about it, IIRC one can sign
> up for python-list email, and go into the mailman settings
> and disable mail delivery, allowing one to post to the list
> via email yet read the list via GG, Gmane or whatever.
> Howev
On Nov 16, 2:29 am, ru...@yahoo.com wrote:
> But of course, our genius doesn't keep any records
> and the cases where he is wrong don't make as much
> impression on his memory. Further, he doesn't bother
> to check the headers on the non-crap posts. Even a
> junior-high science student could see
On Nov 16, 5:15 pm, chip9munk <"chip9munk[SSSpAm"@gmail.com> wrote:
> ok, I've got it:http://docs.python.org/3.1/library/configparser.html
>
> works like a charm!
>
> Sorry for the unnecessary question. :/
Not an issue.
And there may be better options (allows nested sections)
http://www.voidspace
On Nov 16, 7:08 pm, Roy Smith wrote:
> These days, if I was writing something that needed a config file and I
> didn't want to do "import settings" for whatever reason, I would go with
> YAML. It seems to give an attractive mix of:
>
> * supporting complex data structures
> * easy to for humans t
On Nov 18, 6:32 pm, Artie Ziff wrote:
> Unfortunately, xml parsing fails due to angle brackets inside
> description tags. In particular, xml.etree.ElementTree.parse()
> aborts on '<' inside xml data such as the following:
>
>
>
> This testcase tests if crontab installs the cronjob
On Nov 18, 8:54 pm, rusi wrote:
> Start with cgi.escape perhaps?http://docs.python.org/2/library/cgi.html
This may be a better link for starters
http://wiki.python.org/moin/EscapingHtml
(Note the escaping xml at the bottom)
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 5, 7:36 am, Roy Smith wrote:
> In article <29c74a30-f017-44b5-8a3d-a3c0d6592...@googlegroups.com>,
>
>
>
>
>
>
>
>
>
> SherjilOzair wrote:
> > Hello list,
>
> > When it comes to printing things while some computation is being done, there
> > are 2 extremes.
>
> > 1. printing speed is slow
On Dec 7, 6:46 pm, Marco wrote:
> Hi all, do you think this code:
>
> $ more myscript.py
> for line in open('data.txt'):
> result = sum(int(data) for data in line.split(';'))
> print(result)
>
> that sums the elements of the lines of this file:
>
> $ more data.txt
> 30;44;99;88
> 11;17;1
On Dec 10, 3:03 pm, Jean-Michel Pichavant
wrote:
> - Original Message -
> > On Dec 7, 6:46 pm, Marco wrote:
> > > Hi all, do you think this code:
>
> > > $ more myscript.py
> > > for line in open('data.txt'):
> > > result = sum(int(data) for data in line.split(';'))
> > > print(
On Dec 13, 5:18 am, Michael Torrie wrote:
> On 12/12/2012 04:40 PM, Mark Lawrence wrote:
>
> > Awesome!!! But what the is it???
>
> Are you serious? You honestly don't know what one of the oldest, most
> widely used piece of open source software it and what it does? Samba is
> at least as
On Dec 13, 11:01 am, Steven D'Aprano wrote:
> On Wed, 12 Dec 2012 21:23:47 -0800, Ramchandra Apte wrote:
> >> Cheers.
>
> >> Mark Lawrence.
>
> > haha. What does "Cheers" mean?
>
> It is an exclamation expressing good wishes. In particular, good wishes
> before drinking. Think of it as a variation
On Dec 13, 11:51 am, Cameron Simpson wrote:
> It looked good-natured, she thought; Still it had very long claws and a
> great many teeth, so she felt it ought to be treated with respect.
heh!
If only we could respect without such coercion(s)
--
http://mail.python.org/mailman/listinfo/python-li
On Dec 14, 8:33 am, Dave Angel wrote:
> Do you know any one computer language thoroughly? Or just a little of
> many languages?
There is a quote by Bruce Lee to the effect:
I am not afraid of the man who knows 10,000 kicks
I am afraid of the man who has practised 1 kick 10,000 times
--
http://m
On Dec 14, 11:56 am, Devin Jeanpierre wrote:
> On Fri, Dec 14, 2012 at 1:13 AM, rusi wrote:
> > On Dec 14, 8:33 am, Dave Angel wrote:
> >> Do you know any one computer language thoroughly? Or just a little of
> >> many languages?
>
> > There is a quote by B
On Dec 14, 6:13 pm, Dave Angel wrote:
> On 12/14/2012 01:56 AM, Devin Jeanpierre wrote:
>
> > On Fri, Dec 14, 2012 at 1:13 AM, rusi wrote:
> >> On Dec 14, 8:33 am, Dave Angel wrote:
> >>> Do you know any one computer language thoroughly? Or just a little of
&g
On Jan 16, 6:51 pm, Ferrous Cranus wrote:
> When trying to open an html template within Python script i use a relative
> path to say go one folder back and open index.html
>
> f = open( '../' + page )
>
> How to say the same thing in an absolute way by forcing Python to detect
> DocumentRoot by
On Jan 13, 12:08 pm, Mitya Sirenef wrote:
> Sure: they play back a list of instructions on use of string methods and
> list comprehensions along with demonstration in a mock-up of the
> interpreter with a different display effect for commands typed into (and
> printed out by) the interpeter. The s
On Jan 21, 5:55 pm, alex23 wrote:
> On Jan 21, 10:39 pm, Oscar Benjamin
> wrote:
>
> > This is a very old problem (still unsolved I
> > believe):http://en.wikipedia.org/wiki/Ship_of_Theseus
>
> +1 internets for referencing my most favourite thought experiment
> ever :)
+2 Oscar for giving me th
On Jan 21, 8:07 pm, Ferrous Cranus wrote:
> Τη Δευτέρα, 21 Ιανουαρίου 2013 9:20:15 π.μ. UTC+2, ο χρήστης Chris Angelico
> έγραψε:
>
>
>
>
>
>
>
>
>
> > On Mon, Jan 21, 2013 at 6:08 PM, Ferrous Cranus
> > wrote:
>
> > > An .html page must retain its database counter value even if its:
>
> > > (r
On Jan 22, 8:59 pm, Ferrous Cranus wrote:
> I just need a way to CONVERT a string(absolute path) to a 4-digit unique
> number with INT!!!
> That's all i want!! But i cannot make it work :(
I just need a way to eat my soup with a screwdriver.
No I WONT use a spoon.
Im starving
HELP
--
http://ma
201 - 300 of 916 matches
Mail list logo