On Saturday, March 22, 2014 2:12:53 AM UTC+5:30, vasudevram wrote:
> Hi list,
> Can anyone - maybe one of the Python language core team, or someone with
> knowledge of the internals of Python - can explain why this code works, and
> whether the different occurrences of the name x in the expressi
On Saturday, March 22, 2014 2:26:09 AM UTC+5:30, vasudevram wrote:
> On Saturday, March 22, 2014 2:24:00 AM UTC+5:30, Rustom Mody wrote:
> > Lets try without comprehending comprehensions :-)
> > >>> x=[[1,2],[3,4]]
> > >>> for x in x:
> > ... fo
On Saturday, March 22, 2014 3:00:10 AM UTC+5:30, Ian wrote:
> On Fri, Mar 21, 2014 at 3:09 PM, Rustom Mody wrote:
> > A 'for' introduces a scope:
> This is false.
And
On Saturday, March 22, 2014 3:04:48 AM UTC+5:30, Gregory Ewing wrote:
> > A 'for'
On Saturday, March 22, 2014 8:11:27 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Mar 22, 2014 at 1:06 PM, Rustom Mody wrote:
> > Two: A comprehension variable is not bound but reassigned across the
> > comprehension. This problem remains in python3 and causes weird behavior
>
On Saturday, March 22, 2014 10:21:13 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Mar 22, 2014 at 3:39 PM, Rustom Mody wrote:
> >> So if that's not going to be broken, how is this fundamentally different?
> >> def func_loop():
> >> for x in 1,2,3:
> >&g
On Saturday, March 22, 2014 10:21:13 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Mar 22, 2014 at 3:39 PM, Rustom Mody wrote:
> >> So if that's not going to be broken, how is this fundamentally different?
> >> def func_loop():
> >> for x in 1,2,3:
>
On Saturday, March 22, 2014 2:39:56 PM UTC+5:30, Ian wrote:
> On Fri, Mar 21, 2014 at 8:06 PM, Rustom Mody wrote:
> > Two: A comprehension variable is not bound but reassigned across the
> > comprehension. This problem remains in python3 and causes weird behavior
> > when
&
On Saturday, March 22, 2014 7:52:28 PM UTC+5:30, Ian wrote:
> On Mar 20, 2014 9:59 PM, "Dave Angel" wrote:
> > dtra...@gmail.com Wrote in message:
> > > And I was wondering how I would add the partenthesis because I tried:
> > > return numtochar(c1 + c2 (%26)) and it gave me an error.
> > Please
The foll is fairly standard fare in denotational semantics -- please excuse
the length!
In order to understand (formally) the concept of 'variable'
we need to have at the least a concept of name(or identifier) -> value mapping.
This mapping is called an 'environment'
If we stop at that we get the
On Sunday, March 23, 2014 8:16:28 AM UTC+5:30, Ian wrote:
> On Sat, Mar 22, 2014 at 6:32 PM, Rhodri James wrote:
> > wrote:
> >> Well almost...
> >> Except that the 'loop' I am talking of is one of
> >> def loop():
> >> return [yield (lambda: x) for x in [1,2,3]]
> >> or
> >> return (yiel
On Sunday, March 23, 2014 6:37:11 PM UTC+5:30, Jens Thoms Toerring wrote:
> Simon Hardy-Francis wrote:
> > Hi Python fans, I just released my first open source project ever called
> > SharedHashFile [1]. It's a shared memory hash table written in C. Some guy
> > on Quora asked [2] whether there's
On Monday, March 24, 2014 8:57:32 AM UTC+5:30, Chris Angelico wrote:
> On Mon, Mar 24, 2014 at 1:35 PM, Rhodri James wrote:
> >> Would you not consider this to be declarative?
> >>x = [1, 2, 3]
> > I'm not sure I would. I look at that line of code and think of it as
> > "Create a list...", ve
On Monday, March 17, 2014 6:36:33 PM UTC+5:30, Frank Millman wrote:
> Hi all
> I know I *should* be using a Source Control Management system, but at
> present I am not. I tried to set up Mercurial a couple of years ago, but I
> think I set it up wrongly, as I got myself confused and found it mor
On Monday, March 24, 2014 7:34:59 PM UTC+5:30, Steven D'Aprano wrote:
> On Mon, 24 Mar 2014 22:49:38 +1100, Chris Angelico wrote:
> > wrote:
> >> You never *need* (Python's) lambda for anything. Inner functions are
> >> more capable and almost always more readable. It doesn't hurt to have
> >> la
On Tuesday, March 25, 2014 5:28:11 AM UTC+5:30, Ian wrote:
> On Mon, Mar 24, 2014 at 3:43 PM, Mark H Harris wrote:
> > On 3/24/14 4:03 AM, Ian Kelly wrote:
> >> The difference does not really lie in the lambda construct per se but in
> >> the binding style of closures. Functional languages tend to
On Tuesday, March 25, 2014 8:47:35 AM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 25, 2014 at 2:00 PM, Rustom Mody wrote:
> > Yeah: Its 2014 (at least out here)...
> > About time we started using unicode in earnest dont you think??
> We do.
> > Id like to see the follo
On Tuesday, March 25, 2014 12:28:16 AM UTC+5:30, Mark H. Harris wrote:
> On 3/24/14 4:58 AM, Mark Lawrence wrote:
> > Where do you get reduce from if it's not in the standard library?
> That was "a" proposal for 3000. Its there, but its not on the
> built-ins; ie., you have to import it. The
On Tuesday, March 25, 2014 8:47:35 AM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 25, 2014 at 2:00 PM, Rustom Mody wrote:
> > Yeah: Its 2014 (at least out here)...
> > About time we started using unicode in earnest dont you think??
> We do.
> > Id like to see the follo
On Tuesday, March 25, 2014 9:29:57 AM UTC+5:30, Mark H. Harris wrote:
> On 3/24/14 10:51 PM, Chris Angelico wrote:
> > Supporting both may look tempting, but you effectively create two ways
> > of spelling the exact same thing; it'd be like C's trigraphs. Do you
> > know what ??= is,
> This was a
On Tuesday, March 25, 2014 9:59:48 AM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 25, 2014 at 3:08 PM, Rustom Mody wrote:
> > And Chris is right in (rephrasing) we may have unicode-happy OSes and
> > languages. We cant reasonably have unicode-happy keyboards.
> > [Wha
On Tuesday, March 25, 2014 10:38:43 AM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 25, 2014 at 4:00 PM, Rustom Mody wrote:
> > Its already there -- and even easier
> > Switch to cyrillic-jis-russian (whatever that is!)
> > and I get л from k Л from K
> How quickly
On Tuesday, March 25, 2014 10:44:42 AM UTC+5:30, Mark H. Harris wrote:
> On 3/25/14 12:08 AM, Chris Angelico wrote:
> > How quickly can you switch, type one letter (to generate one Cyrillic
> > character), and switch back?
> ... very fast.
> Is not this nicer?
> >>> Π = pi
> >>> sin(Π/4)
> 0
On Tuesday, March 25, 2014 11:04:40 AM UTC+5:30, Mark H. Harris wrote:
> On 3/25/14 12:27 AM, Chris Angelico wrote:
> >> my pdeclib constants extension will have alternate spellings for Π and
> >> Γ
> >> and Δ and others...
> > That's good! (Although typing Π quicker than pi is majorly pushing
On Tuesday, March 25, 2014 11:17:51 AM UTC+5:30, Steven D'Aprano wrote:
> On Tue, 25 Mar 2014 14:57:02 +1100, Chris Angelico wrote:
> > wrote:
> >> What you are missing is that programmers spend 90% of their time
> >> reading code
> >> 10% writing code
> >> You may well be in the super-whiz catego
On Tuesday, March 25, 2014 11:42:50 AM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 25, 2014 at 4:47 PM, Steven D'Aprano wrote:
> > On Tue, 25 Mar 2014 14:57:02 +1100, Chris Angelico wrote:
> >> No, I'm not missing that. But the human brain is a tokenizer, just as
> >> Python is. Once you know wha
On Tuesday, March 25, 2014 12:03:24 PM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 25, 2014 at 5:10 PM, Rustom Mody wrote:
> > Something that Chris may relate to:
> > You type a music score into lilypond
> > Then call lilypond to convert it into standard western staff notati
On Tuesday, March 25, 2014 12:15:11 PM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 25, 2014 at 5:35 PM, Rustom Mody wrote:
> > I dont think we are anywhere near making real suggestions for real changes
> > which would need to talk of compatibility, portability, editor support
&
On Tuesday, March 25, 2014 12:33:49 PM UTC+5:30, Steven D'Aprano wrote:
> On Mon, 24 Mar 2014 20:56:19 -0700, Rustom Mody wrote:
> > Paren vs tuples: why do we need to write (x,) not (x)
> You don't. You can write x, without the brackets:
> py> t = 23,
> py> ty
On Tuesday, March 25, 2014 5:16:14 PM UTC+5:30, Antoon Pardon wrote:
> On 25-03-14 12:14, Steven D'Aprano wrote:
> >> Would
> >> such a use already indicate I should use a mathematical front-end?
> >> When a programming language is borrowing concepts from mathematics, I
> >> see no reason not to b
On Tuesday, March 25, 2014 4:08:38 PM UTC+5:30, Antoon Pardon wrote:
> So? We do use + -, so why shouldn't we use × for multiplication. Would
> such a use already indicate I should use a mathematical front-end?
> When a programming language is borrowing concepts from mathematics,
> I see no reason
On Tuesday, March 25, 2014 6:15:16 PM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 25, 2014 at 11:07 PM, Antoon Pardon
> > On 25-03-14 12:12, Chris Angelico wrote:
> >> On Tue, Mar 25, 2014 at 9:24 PM, Antoon Pardon
> >>> No they didn't have to. With the transition to python3, the developers
> >>>
On Tuesday, March 25, 2014 7:26:47 PM UTC+5:30, Chris Angelico wrote:
> On Wed, Mar 26, 2014 at 12:43 AM, Antoon Pardon
> >> It doesn't bother me. IIRC in primary school before fractions were
> >> introduced,
> >> a colon was used to indicate division.
> The way I learned it, a colon was for a ra
On Tuesday, March 25, 2014 7:13:09 PM UTC+5:30, Antoon Pardon wrote:
> On 25-03-14 13:53, Rustom Mody wrote:
> > On Tuesday, March 25, 2014 4:08:38 PM UTC+5:30, Antoon Pardon wrote:
> >> So? We do use + -, so why shouldn't we use × for multiplication. Would
> >&g
On Tuesday, March 25, 2014 7:53:23 PM UTC+5:30, Steven D'Aprano wrote:
> On Tue, 25 Mar 2014 05:53:45 -0700, Rustom Mody wrote:
> > And if we had hyphen '‐' distinguished from minus '-' then we could have
> > lispish names like call‐with‐current‐c
On Wednesday, March 26, 2014 12:22:40 AM UTC+5:30, wxjm...@gmail.com wrote:
> Le mardi 25 mars 2014 19:30:34 UTC+1, Mark H. Harris a écrit :
> > greetings, I would like to create a lamda as follows:
> > √ = lambda n: sqrt(n)
> > On my keyboard mapping the "problem" character is alt-v which produces
On Wednesday, March 26, 2014 10:00:21 AM UTC+5:30, Terry Reedy wrote:
> On 3/25/2014 8:12 PM, Steven D'Aprano wrote:
> > On Tue, 25 Mar 2014 19:55:39 -0400, Terry Reedy wrote:
> >> On 3/25/2014 11:18 AM, Steven D'Aprano wrote:
> >>> The thing is, we can't just create a ∑ function, because it doesn'
On Wednesday, March 26, 2014 9:35:53 PM UTC+5:30, Steven D'Aprano wrote:
> On Wed, 26 Mar 2014 00:30:21 -0400, Terry Reedy wrote:
> > On 3/25/2014 8:12 PM, Steven D'Aprano wrote:
> >> On Tue, 25 Mar 2014 19:55:39 -0400, Terry Reedy wrote:
> >>> On 3/25/2014 11:18 AM, Steven D'Aprano wrote:
>
On Wednesday, March 26, 2014 11:02:04 PM UTC+5:30, Rustom Mody wrote:
> On Wednesday, March 26, 2014 9:35:53 PM UTC+5:30, Steven D'Aprano wrote:
> > On Wed, 26 Mar 2014 00:30:21 -0400, Terry Reedy wrote:
> > > One passes an unquoted expression in code by quoting it with eith
On Thursday, March 27, 2014 5:13:21 AM UTC+5:30, Steven D'Aprano wrote:
> On Thu, 27 Mar 2014 09:24:49 +1100, Chris Angelico wrote:
> > wrote:
> >> Now actual python
> >> def sumjensen(i_get, i_set,lower,upper,exp):
> >> tot = 0
> >> i_set(lower)
> >> while i_get() <= upper:
> >>
On Thursday, March 27, 2014 8:53:29 AM UTC+5:30, James Smith wrote:
> I can't get this to work.
> It runs but there is no output when I try it on a file.
> #!/usr/bin/python
> import os
> import sys
> import re
> from datetime import datetime
> #logDir = '/nfs/projects/equinox/platformTools/RTLG
On Thursday, March 27, 2014 4:15:19 AM UTC+5:30, Marko Rauhamaa wrote:
> Chris Angelico :
> > You prove here that Python has first-class expressions in the same way
> > that 80x86 assembly language has garbage collection. Sure, you can
> > implement it using the primitives you have, but that's not
On Thursday, March 27, 2014 3:06:02 PM UTC+5:30, Antoon Pardon wrote:
> On 26-03-14 17:37, Ian Kelly wrote:
> > On Wed, Mar 26, 2014 at 2:52 AM, Antoon Pardon
> >> Of course we don't have to follow mathematical convention with python.
> >> However allowing any
> >> unicode symbol as an identifier
On Thursday, March 27, 2014 8:58:51 PM UTC+5:30, Mark H. Harris wrote:
> On 3/25/14 6:58 PM, Steven D'Aprano wrote:
> > To quote a great Spaniard:
> > “You keep using that word, I do not think it means what you
> > think it means.”
> In~con~theveable ! My name is Inigo Montoya
On Thursday, March 27, 2014 9:52:40 PM UTC+5:30, Ian wrote:
> On Thu, Mar 27, 2014 at 9:28 AM, Mark H Harris wrote:
> >> Do you think that the ability to write this would be an improvement?
> >> import ⌺
> >> ⌚ = ⌺.╩░
> >> ⑥ = 5*⌺.⋨⋩
> >> ❹ = ⑥ - 1
> >> ♅⚕⚛ = [⌺.✱✳**⌺.❇*❹{⠪|⌚.∣} for ⠪ in ⌺.⣚]
> >>
On Thursday, March 27, 2014 10:47:04 PM UTC+5:30, MRAB wrote:
> On 2014-03-27 15:51, Rustom Mody wrote:
> > On Thursday, March 27, 2014 8:58:51 PM UTC+5:30, Mark H. Harris wrote:
> >> On 3/25/14 6:58 PM, Steven D'Aprano wrote:
> >> > To quote a great Spaniard:
&g
On Friday, March 28, 2014 3:44:09 AM UTC+5:30, Mark H. Harris wrote:
> On 3/27/14 4:42 PM, Chris Angelico wrote:
> > And this is the bit where, I think, we disagree. I think that
> > programming is for programmers, in the same way that music is for
> > musicians and the giving of legal advice is fo
On Friday, March 28, 2014 8:36:26 AM UTC+5:30, Chris Angelico wrote:
> On Fri, Mar 28, 2014 at 1:46 PM, Rustom Mody wrote:
> >> Moore’s Law isn’t a mythical beast that magically materialized in 1965
> >> and threatens to unpredictably vanish at any moment. In fact, it’s
&
On Friday, March 28, 2014 8:43:21 AM UTC+5:30, Roy Smith wrote:
> Chris Angelico wrote:
> > Your syntax there looks reasonable already. I'd recommend you make it
> > a flat data file, though, don't try to make it a programming language
> > - unless you actively need it to be one. Here are a couple
On Friday, March 28, 2014 9:27:11 AM UTC+5:30, Chris Angelico wrote:
> On Fri, Mar 28, 2014 at 2:44 PM, Rustom Mody wrote:
> > [BTW I consider the windows registry cleaner than the linux /etc for
> > the same reason]
> And if I felt like trolling, I'd point out that there
On Friday, March 28, 2014 2:34:07 PM UTC+5:30, alister wrote:
> On Fri, 28 Mar 2014 14:57:11 +1100, Chris Angelico wrote:
> > wrote:
> >> [BTW I consider the windows registry cleaner than the linux /etc for
> >> the same reason]
> > And if I felt like trolling, I'd point out that there are a lot m
On Friday, March 28, 2014 5:44:48 PM UTC+5:30, Marko Rauhamaa wrote:
> Rustom Mody wrote:
> > On the other hand in linux I find that when something is upgraded and
> > needs to upgrade *its own* config files in /etc it can often have
> > trouble.
> Linux (service) conf
On Friday, March 28, 2014 6:52:15 PM UTC+5:30, Roy Smith wrote:
> Chris Angelico wrote:
> > On Sat, Mar 29, 2014 at 12:10 AM, Marko Rauhamaa wrote:
> > > If encapsulation exists outside OO and inheritance is not key to it,
> > > what is OO then, a marketing term?
> > Yep, OO is a marketing term.
On Saturday, March 29, 2014 8:34:19 AM UTC+5:30, Mark H. Harris wrote:
> On 3/28/14 9:33 PM, Steven D'Aprano wrote:
> > Mark, please stop posting to the newsgroup comp.lang.python AND the
> > mailing list (...). They mirror each other. Your posts
> > are not so important that we need to see everyth
On Saturday, March 29, 2014 12:25:45 AM UTC+5:30, rand...@fastmail.us wrote:
> On Thu, Mar 27, 2014, at 11:10, Rustom Mody wrote:
> > Just out of curiosity how do/did you type that?
> > When I see an exotic denizen from the unicode-universe I paste it into
> > emacs and ask &
On Saturday, March 29, 2014 10:38:47 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Mar 29, 2014 at 3:40 PM, Mark H Harris wrote:
> > On 3/28/14 10:51 PM, Steven D'Aprano wrote:
> >> You are being patronising to the 94% of the world that is not from the
> >> USA. Do you honestly think that people all
On Saturday, March 29, 2014 11:21:17 AM UTC+5:30, Mark H. Harris wrote:
> On 3/29/14 12:08 AM, Chris Angelico wrote:
> > Okay. History lesson time.
> Tell me what is the lingua franka today?
> Is it, E n g l i s h ?
I wonder Mark, if because you are communicating with your mailing sof
On Sunday, March 30, 2014 8:09:45 AM UTC+5:30, Roy Smith wrote:
> I have no particular problem with
> x < 2 < y
> because it fits the same pattern. But, if you show me
> a != None != b:
> my brain just goes into overload. Honestly, I don't even know what that
> means. My brain keeps tryin
On Monday, March 31, 2014 12:23:55 PM UTC+5:30, Ben Finney wrote:
> Mark, you are demonstrating a habit of making sweeping pronouncements
> and assertions; and then, when those statements are challenged, you
> act as though you never said them.
> Here's a characteristic example:
> Mark H Harris w
On Monday, March 31, 2014 9:33:54 PM UTC+5:30, Chris Angelico wrote:
> On Tue, Apr 1, 2014 at 2:40 AM, Marko Rauhamaa wrote:
> > As a simple layout question, I'd do it like this:
> >
> > if mode == "Brake2":
> > # Already
On Tue, Apr 1, 2014 at 3:26 PM, Steven D'Aprano wrote:
> Haskell has nifty pattern-matching syntax for this that looks quite close
> to the mathematical hybrid function syntax, but in Python, we're limited
> to explicitly using an if. If I were coding this, and I'm not, I'd wrap
> it in a functio
On Tuesday, April 1, 2014 6:38:14 PM UTC+5:30, Chris Angelico wrote:
> On Tue, Apr 1, 2014 at 11:29 PM, Roy Smith wrote:
> >> But I confess that is mostly personal taste, since I find names_like_this
> >> ugly. Names-like-this look better to me but that wouldn't be workable
> >> in python. But mayb
On Tuesday, April 1, 2014 7:14:15 PM UTC+5:30, Chris Angelico wrote:
> On Wed, Apr 2, 2014 at 12:33 AM, Ned Batchelder wrote:
> > Maybe I'm misunderstanding the discussion... It seems like we're talking
> > about a hypothetical definition of identifiers based on Unicode character
> > categories, b
On Tuesday, April 1, 2014 9:29:27 PM UTC+5:30, Marko Rauhamaa wrote:
> Chris Angelico :
> > On Wed, Apr 2, 2014 at 12:16 AM, Marko Rauhamaa wrote:
> >> I implemented the loops in the scheme way. Recursion is how iteration
> >> is done by the Believers.
> > Then I'm happily a pagan who uses while l
On Wednesday, April 2, 2014 8:28:02 AM UTC+5:30, Rustom Mody wrote:
> On Tuesday, April 1, 2014 9:29:27 PM UTC+5:30, Marko Rauhamaa wrote:
> > Chris Angelico :
> > > On Wed, Apr 2, 2014 at 12:16 AM, Marko Rauhamaa wrote:
> > >> I implemented the loops in the scheme w
On Wednesday, April 2, 2014 6:52:04 PM UTC+5:30, Hareesha Karunakar wrote:
> Hello Group,
> I am using python's nose testing frame work for my automated testing.
> I would like to run my python cases and generate only the documentation
> without actually running/executing the cases.
> How is this
On Wednesday, April 2, 2014 11:28:16 PM UTC+5:30, Roy Smith wrote:
> I have a big hairy data structure which is a tree of nested dicts. I have a
> sequence of strings which represents a path through the tree. Different
> leaves in the tree will be at different depths (which range from 1 to abou
On Thursday, April 3, 2014 8:11:33 AM UTC+5:30, Rustom Mody wrote:
> On Wednesday, April 2, 2014 11:28:16 PM UTC+5:30, Roy Smith wrote:
> > I have a big hairy data structure which is a tree of nested dicts. I have
> > a sequence of strings which represents a path through the t
On Thursday, April 3, 2014 10:44:16 PM UTC+5:30, Marko Rauhamaa wrote:
> Mark H Harris:
> > So, python(3)'s use of unicode is exciting, not only as a step forward
> > for the python interpreter, but also as a leadership step forward in
> > computer science around the world.
> Big words. I don't t
On Friday, April 4, 2014 3:23:31 PM UTC+5:30, Steven D'Aprano wrote:
> On Thu, 03 Apr 2014 11:38:13 -0500, Mark H Harris wrote:
>
> > On 4/1/14 5:33 PM, Terry Reedy wrote:
> >
> > hi Terry, hope you are well today, despite gmane difficulties;
> >
> >> If you narrowly meant "The python interp
On Saturday, April 5, 2014 2:28:29 AM UTC+5:30, Mark H. Harris wrote:
> hi Mark, yes that's my point. I have heard rumors of python2.8? At some
> point I would expect that the Cpython interpreter would 'freeze' and no
> one would fix it any longer. I have a serious question, namely, why does
> t
On Saturday, April 5, 2014 11:27:08 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Apr 5, 2014 at 4:29 PM, Ben Finney wrote:
> > Without actual data - which neither of us has on this matter - all of
> > these hypotheses are unfounded speculation. Let's not draw any
> > conclusions in the absence of e
On Sunday, April 6, 2014 1:40:58 PM UTC+5:45, Devin Jeanpierre wrote:
>
> You can choose to define mutability that way, but in many contexts
> you'll find that definition not very useful.
>
> c is such that you could have another variable d, where the following
> interpreter session fragment is e
On Sunday, April 6, 2014 10:22:21 PM UTC+5:30, Steven D'Aprano wrote:
> On Sun, 06 Apr 2014 12:05:16 +0300, Marko Rauhamaa wrote:
> > Mark H Harris :
> >> On 4/4/14 4:53 AM, Steven D'Aprano wrote:
> >>> Python is not a computer-science-ey language.
> >> Every programming language is interesting fr
On Sunday, April 6, 2014 11:24:15 PM UTC+5:30, Chris Angelico wrote:
> On Mon, Apr 7, 2014 at 3:31 AM, Rustom Mody wrote:
> > However consider that some of the things that people did around 40 years
> > ago and do today
> > - use FORTRAN for numerical/simulation work -- n
On Monday, April 7, 2014 6:15:47 AM UTC+5:30, Terry Reedy wrote:
> On 4/6/2014 7:48 PM, Steven D'Aprano wrote:
> > On Sun, 06 Apr 2014 23:10:47 +0300, Marko Rauhamaa wrote:
> >> Steven D'Aprano :
> >>> On Sun, 06 Apr 2014 12:05:16 +0300, Marko Rauhamaa wrote:
> Python, BTW, is perfectly suitab
On Monday, April 7, 2014 12:16:54 AM UTC+5:30, Chris Angelico wrote:
> On Mon, Apr 7, 2014 at 4:13 AM, Rustom Mody wrote:
> >> Using Python at the design stage would be what Steven's talking about
> >> - actually using it to build the theory of programming. I have about
On Monday, April 7, 2014 8:24:37 AM UTC+5:30, Onder Hazaroglu wrote:
> Hello,
> I've been using threading library to run some experiments parallel. There is
> no message passing between my threads but still it messes up somehow. The
> results are different than running it separated. Basically I exp
On Tuesday, April 8, 2014 7:03:31 AM UTC+5:30, Mark H. Harris wrote:
> I have another question for y'all, is a function (particularly a
> generator) a noun or a verb? Does a function (or generator) 'do'
> something (based on name and parms) or does it 'return' something based
> on name and
On Wednesday, April 9, 2014 4:02:10 AM UTC+5:30, Sturla Molden wrote:
> On 08/04/14 22:30, Grant Edwards wrote:
> >>> Unix maybe, but what about Windows? Is it efficient to create
> >>> processes under Windows?
> >> Processes are very heavy-weight on Windows.
> > Not surprising given its VMS herit
On Wednesday, April 9, 2014 9:36:40 PM UTC+5:30, trewio wrote:
> How to extract files from U-Boot image file, LZMA-compressed?
>
> Is there a Python script that can do this properly?
For lzma theres this (recent) python library
https://docs.python.org/dev/library/lzma.html
Though you might just
On Thursday, April 10, 2014 10:55:10 AM UTC+5:30, balaji marisetti wrote:
> There was long thread discussing flattening of a list on this list :).
> See the link below.
I dont think that thread is relevant to this question:
1. That (started with) a strange/cute way of using names
2. It does not wo
This is called imperative programming:
for it in x:
... if it.strip() != '':
...print ("Ok")
This is called functional programming:
>>> [y for y in x if y.strip() != '']
['x1', 'x2', 'x3']
What you have is a confusion:
print is imperative
comprehension is functional
You should not mix
On Thursday, April 10, 2014 10:38:49 PM UTC+5:30, Chris Angelico wrote:
> On Fri, Apr 11, 2014 at 2:25 AM, Marko Rauhamaa wrote:
> >> I don't know Python's asyncio as it's very new and I haven't yet found
> >> an excuse to use it, but with Pike, I just engage backend mode, set
> >> callbacks on the
On Thursday, April 10, 2014 9:24:48 PM UTC+5:30, Lalitha Prasad K wrote:
> Dear List
>
> Recently I was requested to teach python to a group of students of GIS
> (Geographic Information Systems). Their knowledge of programming is zero. The
> objective is to enable them to write plug-ins for GIS
On Friday, April 11, 2014 1:14:01 AM UTC+5:30, Marko Rauhamaa wrote:
>
>
> Seriously, Erlang (and Go) have nice tools for managing state machines
> and concurrency. However, Python (and C) are perfectly suitable for
> clear asynchronous programming idioms. I'm happy that asyncio is
> happening
On Friday, April 11, 2014 4:10:22 AM UTC+5:30, Rhodri James wrote:
> Sorry your post was the straw to break the camel's back this week, but it
> is a complete pain to the rest of us. I have more than once considered
> getting my reader to automatically discard anything with
> "@googlegroups.
On Friday, April 11, 2014 3:31:50 AM UTC+5:30, Rhodri James wrote:
> On Wed, 09 Apr 2014 18:18:56 +0100, Rustom Mody
> > After that.. whats the U-boot format?
>
> The Fine Manual (http://www.denx.de/wiki/view/DULG/UBootImages) isn't very
> forthcoming, sadly;
>
&g
On Friday, April 11, 2014 9:29:00 AM UTC+5:30, Chris Angelico wrote:
> On Fri, Apr 11, 2014 at 1:17 PM, Rustom Mody wrote:
>
> > There are cultures -- far more pervasive than USENET in 2014 -- where
> > top posting is the norm, eg
>
> > - Gmail makes top posting the n
On Friday, April 11, 2014 2:14:42 AM UTC+5:30, Marko Rauhamaa wrote:
> Rustom Mody:
>
> > What you are saying is that what the OS is doing, you can do better.
> > Analogous to said C programmer saying that what (data structures) the
> > python programmer can make he can d
On Friday, April 11, 2014 10:41:26 AM UTC+5:30, Chris Angelico wrote:
> On Fri, Apr 11, 2014 at 2:37 PM, Rustom Mody wrote:
> > Right. Its true that when I was at a fairly large corporate, I was not told:
> > "Please always top post!"
> >
> > What I was ve
On Friday, April 11, 2014 11:12:14 AM UTC+5:30, Rustom Mody wrote:
> On Friday, April 11, 2014 10:41:26 AM UTC+5:30, Chris Angelico wrote:
> > Also unhelpful is to suggest that norms should, simply *because* they
> > are the prevailing practice, be maintained. Even if everyone els
On Friday, April 11, 2014 10:45:08 AM UTC+5:30, Rustom Mody wrote:
> On Friday, April 11, 2014 2:14:42 AM UTC+5:30, Marko Rauhamaa wrote:
> > (1) oversimplification which makes it difficult to extend the design
> > and handle all of the real-world contingencies
>
> Th
For the rest, Im not sure that you need my help in making a fool of yourself...
Anyway since you are requesting said help, here goes:
> On Thu, 10 Apr 2014 22:42:14 -0700, Rustom Mody wrote:
>
>
> > People whose familiarity with religion is limited to the Judeo-Christian
> > tradi
On Friday, April 11, 2014 9:06:47 PM UTC+5:30, Marko Rauhamaa wrote:
> Rustom Mody:
> > On Friday, April 11, 2014 10:45:08 AM UTC+5:30, Rustom Mody wrote:
>
> >> On Friday, April 11, 2014 2:14:42 AM UTC+5:30, Marko Rauhamaa wrote:
>
> >> > (1) oversimpli
On Saturday, April 12, 2014 1:50:05 AM UTC+5:30, pete.b...@gmail.com wrote:
> On Thursday, April 10, 2014 3:40:22 PM UTC-7, Rhodri James wrote:
>
> > It's called irony, and unfortunately Mark is reacting to an all-to-common
> > situation that GoogleGroups foists on unsuspecting posters like your
On Saturday, April 12, 2014 5:55:22 PM UTC+5:30, wxjm...@gmail.com wrote:
> --
>
> Regarding the Flexible String Representation, I have always
> been very coherent in the examples I gave (usually with and/or
> from an interactive intepreter - not relevant).
> I never seen once somebody pointin
On Tuesday, April 15, 2014 12:24:47 AM UTC+5:30, Claudiu Popa wrote:
> Hello!
>
> I'm planning a Python hackathon in my area, which will be held in a
> couple of weeks. Being my first organized hackathon, I don't quite
> know on what we will be working.
Just yesterday I discovered that kodos that
On Wednesday, April 16, 2014 1:02:00 PM UTC+5:30, Andrew Berg wrote:
> On 2014.04.15 20:21, Steven D'Aprano wrote:
>
> > On Tue, 15 Apr 2014 17:32:57 -0500, Andrew Berg wrote:
>
> >
>
> >> On 2014.04.15 17:18, Ned Batchelder wrote:
>
> >>> Yeah, that's the wrong way to do it, and they shouldn'
On Saturday, April 19, 2014 4:35:41 PM UTC+5:30, Ben Finney wrote:
> Well, it's clear: Python 3 is uncontroversially the future :-) Also:
> \"Spam will be a thing of the past in two years' time." --Bill |
> `\ Gates, 2004-01-24 |
> _o__)
On Saturday, April 19, 2014 5:23:01 PM UTC+5:30, Steve Hayes wrote:
> It took me a week, with some help from this forum, to get the Print statement
> to work.
How long does it take one to learn to drive a car?
To play the piano? To become a brain surgeon?
No I am not exactly in the "gung-ho over
901 - 1000 of 1750 matches
Mail list logo