Re: lambda - strange behavior

2013-09-20 Thread rusi
On Friday, September 20, 2013 8:51:20 PM UTC+5:30, Kasper Guldmann wrote: > I was playing around with lambda functions, but I cannot seem to fully grasp > them. I was running the script below in Python 2.7.5, and it doesn't do what > I want it to. Are lambda functions really supposed to work that w

Re: reload and work flow suggestions

2013-09-22 Thread rusi
On Sunday, September 22, 2013 3:13:13 AM UTC+5:30, Peter Cacioppi wrote: > This is an idea brought over from another post. > > When I write Python code I generally have 2 or 3 windows open simultaneously. > > > 1) An editor for the actual code. > 2) The interactive interpreter. > 3) An editor fo

Re: Why do I have to use "global" so much when using Turtle?

2013-09-22 Thread rusi
On Monday, September 23, 2013 12:27:50 AM UTC+5:30, John Ladasky wrote: > All right, never mind! > > > I hacked around this morning, making some changes to parts of my program that > I thought were unrelated to my namespace issues. I was paring it down to a > minimal example, to post here as N

Functional Programming and python

2013-09-22 Thread rusi
Combining your two questions -- Recently: What minimum should a person know before saying "I know Python" And earlier this On Sunday, August 4, 2013 10:00:35 PM UTC+5:30, Aseem Bansal wrote: > If there is an issue in place for improving the lambda forms then that's > good. I wanted a link about f

Re: python, pythontex and plots

2013-09-22 Thread rusi
Take a look at babel http://www.cs.unm.edu/~eschulte/data/CISE-13-3-SciProg.pdf http://orgmode.org/worg/org-contrib/babel/intro.html Its my impression that babel supports everything and more that pylatex does ...the catch is that its under emacs...!! -- https://mail.python.org/mailman/listinfo/p

Re: reload and work flow suggestions

2013-09-23 Thread rusi
On Monday, September 23, 2013 2:01:00 PM UTC+5:30, Peter Cacioppi wrote: > One thing re: editors and interactive environments. I'm not a huge emacs fan > (ducking) and I really like iPython. Heh! Yeah we are an endangered species G enerally N ot U sed E ditor for M iddle A ged C omputer S cientis

Re: Functional Programming and python

2013-09-24 Thread rusi
On Monday, September 23, 2013 11:54:53 PM UTC+5:30, Vito De Tullio wrote: > rusi wrote: > > > [Not everything said there is correct; eg python supports currying better > > [than haskell which is surprising considering that Haskell's surname is > > [Curry!] > &g

Re: Functional Programming and python

2013-09-24 Thread rusi
On Tuesday, September 24, 2013 1:12:51 PM UTC+5:30, Jussi Piitulainen wrote: > rusi writes: > > > Without resorting to lambdas/new-functions: > > With functools.partial one can freeze any subset of a > > function(callable's) parameters. > > > > &g

Re: Functional Programming and python

2013-09-24 Thread rusi
On Tuesday, September 24, 2013 8:21:19 PM UTC+5:30, Jussi Piitulainen wrote: > Would the type system get in the way of providing some analogous > function in Haskell? I don't know. Yes. The haskell curry curry f x y = f (x,y) is really only curry2 curry3 would be curry3 f x y z = f (x,y,z) and so

Re: Functional Programming and python

2013-09-24 Thread rusi
On Tuesday, September 24, 2013 8:56:21 PM UTC+5:30, Chris Angelico wrote: > On Wed, Sep 25, 2013 at 1:07 AM, rusi wrote: > > And this is an old conundrum in programming language design: > > > > In C printf is easy to write and NOT put into the language but into > > e

Re: Understanding how is a function evaluated using recursion

2013-09-25 Thread rusi
On Thursday, September 26, 2013 4:54:22 AM UTC+5:30, Arturo B wrote: > So I know what recursion is, but I don't know how is > >flatten(i) > > evaluated, what value does it returns? When you are a noob, who do you ask? The gurus. When you are a guru who do you ask? The co

Re: work develope matrix of difusive concentration

2013-09-26 Thread rusi
On Friday, September 27, 2013 12:43:51 AM UTC+5:30, D.YAN ESCOLAR RAMBAL wrote: > Good morning all > > thanks for your help. Now I`ve a question, if I need create a matrix, method > of thomas, ghost nodes, etc.. for developed one aplicative for the ecuation > of difusion in 1d, 2d, 3d, 4d. It`s

Re: Handling 3 operands in an expression without raising an exception

2013-09-28 Thread rusi
On Friday, September 27, 2013 4:13:52 PM UTC+5:30, Dave Angel wrote: > You should study APL. Many functions were written in one line, with > twenty lines of explanation. The function itself was considered > unreadable nonsense. And if a function stopped working, general wisdom > was to throw it o

Re: Understanding how is a function evaluated using recursion

2013-09-29 Thread rusi
On Thursday, September 26, 2013 4:54:22 AM UTC+5:30, Arturo B wrote: > So I know what recursion is, but I don't know how is > >flatten(i) > > evaluated, what value does it returns? There is a folklore in CS that recursion is hard [To iterate is human, to recurse divine

Re: Functional Programming and python

2013-09-30 Thread rusi
On Tuesday, October 1, 2013 6:11:18 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 30 Sep 2013 19:04:32 +0200, Franck Ditter wrote: > > 2. Lambda-expression body is limited to one expression. Why ? > > Nobody has come up with syntax that is unambiguous, would allow multiple > statements in an expr

Re: VERY BASIC HELP

2013-10-01 Thread rusi
On Monday, September 30, 2013 11:20:16 PM UTC+5:30, vignesh.h...@gmail.com wrote: > Thank you both so much! I'll be sure to make more pertinent subject lines now > :) Thanks for the detailed explanations! Clearly, I've just started learning > this language ~20 minutes before I made this post, an

Re: Tail recursion to while iteration in 2 easy steps

2013-10-01 Thread rusi
On Wednesday, October 2, 2013 3:00:41 AM UTC+5:30, Terry Reedy wrote: > Part of the reason that Python does not do tail call optimization is > that turning tail recursion into while iteration is almost trivial, once > you know the secret of the two easy steps. Here it is. What happens for mutual

Re: Tail recursion to while iteration in 2 easy steps

2013-10-02 Thread rusi
On Wednesday, October 2, 2013 1:53:46 PM UTC+5:30, Alain Ketterlin wrote: > rusi writes: > > > > > On Wednesday, October 2, 2013 3:00:41 AM UTC+5:30, Terry Reedy wrote: > >> Part of the reason that Python does not do tail call optimization is > >> th

Re: Tail recursion to while iteration in 2 easy steps

2013-10-04 Thread rusi
On Thursday, October 3, 2013 10:57:48 PM UTC+5:30, Ravi Sahni wrote: > On Wed, Oct 2, 2013 at 10:46 AM, rusi wrote: > > 4. There is a whole spectrum of such optimizaitons -- > > 4a eg a single-call structural recursion example, does not need to push > > return address on the

Re: Database statements via python but database left intact

2013-10-06 Thread rusi
On Sunday, October 6, 2013 2:35:24 PM UTC+5:30, Chris “Kwpolska” Warrick wrote: > So, instead of this, maybe we should work on getting psycopg2 to the > top result on Googling “python sql”, or even “python mysql” with an > anti-MySQL ad? (like vim was doing some time ago on Googling “emacs”) Do yo

Formal-ity and the Church-Turing thesis

2013-10-07 Thread rusi
On Tuesday, October 8, 2013 5:54:10 AM UTC+5:30, zipher wrote: > Now, one can easily argue that I've gone too far to say "no one has > understood it" (obviously), so it's very little tongue-in-cheek, but > really, when one tries to pretend that one model of computation can be > substituted for anot

Re: Formal-ity and the Church-Turing thesis

2013-10-07 Thread rusi
On Tuesday, October 8, 2013 10:46:50 AM UTC+5:30, Ravi Sahni wrote: > With due respect Sir, you saying that Turing machine not a machine? > Very confusion Sir!!! Thanks Ravi for the 'due respect' though it is a bit out of place on a list like this :-) Thanks even more for the 'very confusion'.

Re: Formal-ity and the Church-Turing thesis

2013-10-07 Thread rusi
On Tuesday, October 8, 2013 10:49:11 AM UTC+5:30, zipher wrote: > I don't have an infinite stack to implement > lambda calculus, but... And then > But this is not a useful formalism. Any particular Program implements > a DFA, even as it runs on a TM. The issue of whether than TM is > finite or

Re: Formal-ity and the Church-Turing thesis

2013-10-08 Thread rusi
On Tuesday, October 8, 2013 6:31:21 PM UTC+5:30, Ravi Sahni wrote: > On Tue, Oct 8, 2013 at 11:14 AM, rusi wrote: > > To explain at length will be too long and OT (off-topic) for this list. > > I'll just give you a link and you tell me what you make of it: > > http://sl

Re: Cookie gets changed when hit comes from a referrer

2013-10-09 Thread rusi
On Thursday, October 10, 2013 6:40:19 AM UTC+5:30, Steven D'Aprano wrote: > > I have no objection to encouraging people to read the fine manual, and I > don't intend to be Nikos' (or anyone else's) unpaid full-time help desk > and troubleshooter. But I do think it is simply unfair to treat him m

Re: Complex literals (was Re: I am never going to complain about Python again)

2013-10-10 Thread rusi
On Thursday, October 10, 2013 8:04:00 PM UTC+5:30, David wrote: > I have never heard the term "hypercomplex" numbers. I guess you > are referring to vectors with more dimensions than two. A three A generalization of quaternions : http://en.wikipedia.org/wiki/Hypercomplex_number http://en.wikipedia

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread rusi
On Sunday, October 13, 2013 6:34:56 PM UTC+5:30, Roy Smith wrote: > To be fair to Larry, there were different design drivers working there. One more thing to be said for perl: I remember when some colleague first told me about perl (I guess early 90s) I was incredulous that the *same* language

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread rusi
On Tuesday, October 15, 2013 7:01:37 AM UTC+5:30, zipher wrote: > Yes, and all of that is because, the world has not settled on some > simple facts. It needs an understanding of type system. It's been > throwing terms around, some of which are well-defined, but others, > not: there has been enor

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread rusi
On Tuesday, October 15, 2013 8:48:25 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 14 Oct 2013 12:18:59 -0700, John Nagle wrote: > > > No, Python went through the usual design screwups. Look at how > > painful the slow transition to Unicode was, from just "str" to Unicode > > strings, ASCII s

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread rusi
On Tuesday, October 15, 2013 2:20:10 PM UTC+5:30, Steven D'Aprano wrote: > If you read the whole python-history blog on blogspot, you'll see that > Python's had it's share of mistakes, design failures and other "oops!" > moments. I think that it is a testament to GvR's over-all design that the >

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread rusi
On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: > > Objects in programming languages (or 'values' if one is more functional > > programming oriented) correspond to things in the world. > > > One of the things you're saying there is that "values correspond to > things in the wor

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread rusi
On Wednesday, October 16, 2013 3:31:06 AM UTC+5:30, Rhodri James wrote: > On Tue, 15 Oct 2013 21:26:27 +0100, Mark Janssen > wrote: > > >> = Rusi, attribution missing from original. Yes. It would help to keep your quotes bound (firstclassly?) to their respective quoters --

Re: How pickle helps in reading huge files?

2013-10-16 Thread rusi
On Wednesday, October 16, 2013 12:35:42 PM UTC+5:30, Stéphane Wirtel wrote: > Keep it in memory Thats a strange answer given that the OP says his file is huge. Of course 'huge' may not really be huge -- that really depends on the h/w he's using. -- https://mail.python.org/mailman/listinfo/pytho

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-16 Thread rusi
On Wednesday, October 16, 2013 11:27:03 PM UTC+5:30, zipher wrote: > >>> Types on the other hand correspond to our classifications and so are > >>> things in our minds. > >> > >> That is not how a C programmer views it. They have explicit > >> "typedef"s that make it a thing for the computer. > >

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-16 Thread rusi
On Thursday, October 17, 2013 6:17:57 AM UTC+5:30, Ned Batchelder wrote: > On 10/16/13 8:13 PM, Mark Janssen wrote: > > > Who uses "object abstraction" in C? No one. That's why C++ was > > invented. Examples from 1. Linux Kernel 2. Python 3. OS/2 > > But, here it is significant that

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread rusi
On Thursday, October 17, 2013 12:19:02 PM UTC+5:30, Peter Cacioppi wrote: > Object oriented programming takes things further, most significantly by > introducing the idea that the object reference you are referencing might be a > run time dependent sub-class. Even Python, which isn't strongly typ

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread rusi
On Thursday, October 17, 2013 6:09:59 PM UTC+5:30, rusi wrote: > On Thursday, October 17, 2013 12:19:02 PM UTC+5:30, Peter Cacioppi wrote: > > > Object oriented programming takes things further, most significantly by > introducing the idea that the object reference you are referen

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread rusi
On Thursday, October 17, 2013 5:18:25 PM UTC+5:30, Zero Piraeus wrote: > : > > > > On Thu, Oct 17, 2013 at 09:20:39AM +, Steven D'Aprano wrote: > > > Oh well. There's only so much I can do at once. I've got bigger > > troubles than trying to solve Ruby's problems with yahoos, and > > frankl

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread rusi
On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: > Yes, well clearly we are not "having the same thoughts", yet the > purpose of the academic establishment is to pin down such terminology > and not have these sloppy understandings everywhere. You dig? Heh Mark I am really sorry.

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread rusi
On Thursday, October 17, 2013 11:14:29 PM UTC+5:30, MRAB wrote: > On 17/10/2013 18:32, rusi wrote: > > On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: > >> Yes, well clearly we are not "having the same thoughts", yet the > >> purpose of the

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread rusi
On Friday, October 18, 2013 7:38:30 AM UTC+5:30, zipher wrote: > >> It's like this. No matter how you cut it, you're going to get back to > >> the computers where you load instructions with switches. At that point, > >> I'll be very much looking in anticipation to your binary-digit lexer. > > > >

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-18 Thread rusi
On Saturday, October 19, 2013 2:02:24 AM UTC+5:30, Peter Cacioppi wrote: > > I still say that object-based is a distinct and meaningful subset of > object-oriented programming. Yes that is what is asserted by http://www-public.int-evry.fr/~gibson/Teaching/CSC7322/ReadingMaterial/Wegner87.pdf --

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread rusi
On Saturday, October 19, 2013 8:40:37 PM UTC+5:30, Roy Smith wrote: > Zero Piraeus wrote: > > > For example, a miscreant may create the username 'míguel' in order to > > pose as another user 'miguel', relying on other users inattentiveness. > > Asciifying is one way of reducing the risk of that.

Re: Error Testing

2013-10-19 Thread rusi
On Saturday, October 19, 2013 7:04:30 PM UTC+5:30, Scott Novinger wrote: > > My plan is to create several different programs that perform specific > Algebraic > operations. My boys are learning Algebra 2 and I thought it might be a fun > way > to help us all learn Algebra and programming toge

Re: converting letters to numbers

2013-10-20 Thread rusi
On Monday, October 14, 2013 10:32:36 AM UTC+5:30, Steven D'Aprano wrote: > On Sun, 13 Oct 2013 20:13:32 -0700, Tim Roberts wrote: > > > def add(c1, c2): > > % Decode > > c1 = ord(c1) - 65 > > c2 = ord(c2) - 65 > > % Process > > i1 = (c1 + c2) % 26 > > % Encode > >

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-20 Thread rusi
On Monday, October 21, 2013 7:51:12 AM UTC+5:30, Roy Smith wrote: > In article > Steven D'Aprano wrote: > > > According to > > some, Java, which has many low-level machine primitive types, is an > > object-oriented language, while Python, which has no machine primitives > > and where every v

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-21 Thread rusi
On Monday, October 21, 2013 2:13:52 PM UTC+5:30, Peter Cacioppi wrote: > Specifically the following seems so misguided as to be deliberate trolling. The same could be said for this below… but… > > "One of the reasons multiple languages exist is because people find that > useful programming idio

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-21 Thread rusi
On Tuesday, October 22, 2013 8:25:58 AM UTC+5:30, Peter Cacioppi wrote: Guess-who said: > "but it's "ugly", by which I mean it is hard to use, error prone, and not > easily maintained." > > OK, I see the problem. What you call "ugly" is really just objectively bad. You continue to not attribute

Re: Python Front-end to GCC

2013-10-21 Thread rusi
On Tuesday, October 22, 2013 1:59:36 AM UTC+5:30, Ned Batchelder wrote: > On 10/21/13 4:14 PM, Mark Janssen wrote: > > > On Mon, Oct 21, 2013 at 12:46 AM, Steven D'Aprano wrote: > >> An optimizing JIT compiler can > >> often produce much more efficient, heavily optimized code than a static > >> AO

Re: Python Front-end to GCC

2013-10-22 Thread rusi
Mark Janssen said: > Unattributed > > No its not like those 'compilers' i dont really agree with a compiler > > generating C/C++ and saying its producing native code. I dont really > > believe > > its truely within the statement. Compilers that do that tend to put in alot > > of type saftey cod

Re: Python Front-end to GCC

2013-10-22 Thread rusi
On Tuesday, October 22, 2013 11:53:22 PM UTC+5:30, Ned Batchelder wrote: > A BNF doesn't provide enough information to compile a program to C. > That's all I'm trying to help you understand. If you don't agree, then > we have to talk about the meaning of the words BNF, compile, program, and C.

Re: Python Front-end to GCC

2013-10-22 Thread rusi
On Wednesday, October 23, 2013 7:06:40 AM UTC+5:30, alex23 wrote: > On 23/10/2013 4:40 AM, Ned Batchelder wrote: > > > I've tried to be polite, and I've tried to be helpful, but I'm sorry: > > either you don't understand a lot of the terms you are throwing around, > > or you aren't disciplined eno

Re: Maintaining a backported module

2013-10-24 Thread rusi
On Thursday, October 24, 2013 5:16:58 PM UTC+5:30, Steven D'Aprano wrote: > On Thu, 24 Oct 2013 06:36:04 -0400, Ned Batchelder wrote: > > > coverage.py currently runs on 2.3 through 3.4 > > You support all the way back to 2.3??? > > I don't know whether to admire your dedication, or back away sl

Re: Python Front-end to GCC

2013-10-25 Thread rusi
On Saturday, October 26, 2013 12:15:43 AM UTC+5:30, zipher wrote: > Clearly the python list has been taken over by TheKooks. Notice he > did not respond to the request. Since we are talking about digital > computers (with digital memory), I'm really curious what the hex value > for NaN is to init

Re: Python Front-end to GCC

2013-10-25 Thread rusi
On Saturday, October 26, 2013 12:39:09 AM UTC+5:30, zipher wrote: > On Fri, Oct 25, 2013 at 11:59 AM, rusi wrote: > > > > I dont see how thats any more relevant than: > > Whats the hex value of the add instruction? > > > You "don't see". That is cor

Re: Don't use default Google Group client (was re:....)

2013-10-26 Thread rusi
On Saturday, October 26, 2013 8:10:16 AM UTC+5:30, Steven D'Aprano wrote: > Your personal attacks are not appreciated. Why can you not accept that > people who post using GG's defaults cause pain and difficulty to many -- > probably the great majority -- of readers who use either the mailing list

Re: Cookie fucking problem

2013-10-26 Thread rusi
On Saturday, October 26, 2013 9:20:40 PM UTC+5:30, Mark Lawrence wrote: > > I could almost feel sorry for you. But the more of your time I waste > the longer it'll take you to get your website working. Did you ever > stop to think about that? Or are you too busy trolling hundreds of > other

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-26 Thread rusi
On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote: > Rusi said: > > "Users of GG are requested to read and follow these instructions > https://wiki.python.org/moin/GoogleGroupsPython " > > > Seriously, it's not exactly clear what protoco

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-27 Thread rusi
On Sunday, October 27, 2013 10:34:11 AM UTC+5:30, ru...@yahoo.com wrote: > On 10/26/2013 07:45 PM, rusi wrote: > > > On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote: > >> Rusi said: > >> > >> "Users of GG are requested to r

Re: Using the nntplib module to count Google Groups users

2013-10-27 Thread rusi
On Sunday, October 27, 2013 12:07:29 PM UTC+5:30, Zero Piraeus wrote: > The results: > > > Senders: 1701 > GG users: 879 > > ... so just over 50%. > > > If anyone wants the complete output, just let me know and I'll email it > privately. If you have a GG account just go to the 'aboutgroup' in

Re: array/list of sockets

2013-10-27 Thread rusi
On Sunday, October 27, 2013 4:47:16 AM UTC+5:30, theel...@gmail.com wrote: > I apologize but I do not understand what you mean by "lack of context." I > have > taken Chris' words into consideration, for my previous post was supposed to > be > my last (I just had to say thank you). This is my fi

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-27 Thread rusi
On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote: > Rusi said: > > > Users of GG are requested to read and follow these instructions > > https://wiki.python.org/moin/GoogleGroupsPython > > Yes, I read those instructions and found them fairl

Re: Removing python django projects

2013-10-27 Thread rusi
On Sunday, October 27, 2013 6:44:35 AM UTC+5:30, Gary Roach wrote: > Hi > > In the process of trying to learn python, django, mysql and > virtualenvwrapper, I have created two projects and a mess. How can I > strip everything from a Debian, Wheezy, linux system. The files are all > over the pla

Re: Check if this basic Python script is coded right

2013-10-27 Thread rusi
On Saturday, October 26, 2013 11:50:33 PM UTC+5:30, MRAB wrote: > On 26/10/2013 18:36, HC wrote: > > I'm doing my first year in university and I need help with this basic > > assignment. > > > > Assignment: Write Python script that prints sum of cubes of numbers between > > 0-200 that are multipl

Re: Cookie xxxxing problem

2013-10-27 Thread rusi
On Sunday, October 27, 2013 1:02:38 AM UTC+5:30, Stephan Vladimir Bugaj wrote: > I rarely ever post here. > > But I wanted to say that people responding to this Nikos troll makes reading > this list a nuisance. > You've never ever been successful in convincing him to behave, and it's been > goin

Re: Python Front-end to GCC

2013-10-27 Thread rusi
On Monday, October 28, 2013 3:44:14 AM UTC+5:30, zipher wrote: > Otherwise, most of this, while sloppy, still stands. Yes All your quotes are unattributed So your discussion is both sloppy and meaningless -- https://mail.python.org/mailman/listinfo/python-list

Re: Cookie fucking problem

2013-10-27 Thread rusi
On Monday, October 28, 2013 4:56:38 AM UTC+5:30, Ben Finney wrote: > I'm not in any special position of power here; I'm not beholden to > address every instance of bad behaviour or none at all. Any member of > this community can apply the same social pressure, and together we can > cover as many of

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-27 Thread rusi
On Monday, October 28, 2013 11:10:21 AM UTC+5:30, ru...@yahoo.com wrote: > I updated the page, hopefully it's an improvement? Most people who top-post have no idea that they are top-posting and that there are alternatives and they are preferred (out here) http://en.wikipedia.org/wiki/Posting_styl

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-27 Thread rusi
On Monday, October 28, 2013 11:26:21 AM UTC+5:30, rusi wrote: > On Monday, October 28, 2013 11:10:21 AM UTC+5:30, ru...@yahoo.com wrote: > > I updated the page, hopefully it's an improvement? > > > Otherwise ok I think Just looked at the general netiquette link -- its lo

Re: Cookie fucking problem

2013-10-28 Thread rusi
On Monday, October 28, 2013 1:14:50 PM UTC+5:30, Steven D'Aprano wrote: > Here's an analogy: > > Person A: "Clean my room for me!" > Person B: "No. Clean it yourself. Here's the vacuum cleaner." > Person A: "CLEAN MY ROOM!!!" > Person B: "No. You made the mess, you're old enough to clean it yourse

Re: Cookie fucking problem

2013-10-28 Thread rusi
On Monday, October 28, 2013 10:38:45 PM UTC+5:30, Ned Batchelder wrote: > > We've already seen a few new people explicitly asking, "is this what > usually happens on this list?" and they weren't referring to the > Chris-style response, they were referring to the Mark-style > respon

Re: Python on a MacBook Pro (not my machine)

2013-10-28 Thread rusi
On Sunday, October 27, 2013 12:37:40 AM UTC+5:30, John Ladasky wrote: > So, what other free and lightweight editing options do I have for a Mac? I > have found a few (fairly old) discussions on comp.lang.python which suggest > Eric (http://eric-ide.python-projects.org/) and Editra (http://editra

Re: Setting up for python django development with Debian Linux

2013-10-28 Thread rusi
On Tuesday, October 29, 2013 1:16:07 AM UTC+5:30, Gary Roach wrote: > Hi all, > > I have been trying to set up a python, django, mysql, virtualenvwrapper > and git development project and am really confused. All of the > documentation seems to ignore the apt-get installation methods used by > D

Re: how to avoid checking the same condition repeatedly ?

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 7:14:51 PM UTC+5:30, Neil Cerutti wrote: > On 2013-10-28, Nobody wrote: > > If you're sufficiently concerned about performance that you're > > willing to trade clarity for it, you shouldn't be using Python > > in the first place. > > > When you detect a code small, a

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 8:10:20 PM UTC+5:30, Robert Gonda wrote: > Unfortunately I'm not that sort of person, the way my brain learns is by > experimenting, but first I need to know exactly what to write. Then I will > play > around with it and customize it to my needs, sorry to be such a

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 10:01:38 PM UTC+5:30, Robert Gonda wrote: > > > I honestly don't get it? this any better? ;D In google groups you will see a small 'show quoted text' Click it you will see what a cascading avalanche of mess is produced. Yes GG is stupid, not you. But if you use it (

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 10:35:52 PM UTC+5:30, Robert Gonda wrote: > > Is this better then? By a bit. For most here not enough Open the 'show quoted text' in your last post it shows like so [Ive replaced '>' by '&' so GG will show it & On Tuesday, October 29, 2013 10:01:38 PM UTC+5:30, Robert

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 10:52:04 PM UTC+5:30, Neil Cerutti wrote: > I just want to add that this programming exercise, while pretty > common, stinks. > > A new programmer shouldn't be embroiled in the morass of > interactive programming. Cheers to that! If the 'print' statement were called a

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 10:54:08 PM UTC+5:30, ru...@yahoo.com wrote: > Also, what Mark and Rusi were trying to say (not very clearly) > is that when you post from Google Groups, Google Groups insert > a lot of empty lines in the ">" the at the top of the message. So fro

Re: Help with guessing game :D

2013-10-29 Thread rusi
On Tuesday, October 29, 2013 11:56:28 PM UTC+5:30, ru...@yahoo.com wrote: > On Tuesday, October 29, 2013 11:52:15 AM UTC-6, rusi wrote: > > On Tuesday, October 29, 2013 10:54:08 PM UTC+5:30, ru...@yahoo.com wrote: > > > Also, what Mark and Rusi were trying to say (not very clea

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 3:43:03 PM UTC+5:30, jonas.t...@gmail.com wrote: > Den onsdagen den 30:e oktober 2013 kl. 11:00:30 UTC+1 skrev Mark Lawrence: * * Please stop sending us double spaced crap. * * Mark Lawrence * I am not sure what you want. And then again * You want me to remove the

Re: Small emacs fix for Google group users

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 6:43:33 PM UTC+5:30, rusi wrote: > For the double spacing rubbish produced by GG, I hacked up a bit of > emacs lisp code > -- > To try > 1. Eval the following in emacs* Tsk! It should be eval the preceding elisp! -- https://mail.pyt

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 9:05:29 PM UTC+5:30, Jonas Thornval wrote: > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > On 30/10/2013 14:31, Jonas Thornval wrote: > > Would you please be kind enough to read, digest and action this > > https://wiki.python.org/moin

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 9:27:08 PM UTC+5:30, jonas.t...@gmail.com wrote: > Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > > The simplest solution is that you stop posting, as you've been spewing > > this double spaced crap all day and show no inclination to do

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
Super Kushal! Below is the result of that First the original Then emacs' cleaned up version! -Original -- On Wednesday, October 30, 2013 10:00:47 PM UTC+5:30, Kushal Kumaran wrote: > rusi writes: > > > > > On Wednesday, Octo

small regexp help

2013-10-30 Thread rusi
Well it seems that we are considerably closer to a solution to the GG double-spaced crap problem. Just wondering if someone can suggest a cleanup of the regexp part Currently I have (elisp) (defun clean-gg () (interactive) 1 (replace-regexp "^> *\n> *\n> *$" "-=\=-" nil 0 (point-max)) 2 (f

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread rusi
On Thursday, October 31, 2013 2:37:31 AM UTC+5:30, Antoon Pardon wrote: > Op 30-10-13 21:52, Ned Batchelder schreef: > > On 10/30/13 3:59 PM, Antoon Pardon wrote: > >> Op 30-10-13 20:13, Jonas schreef: > >>> No it isn't... > >>> The programmers of the tools on either of side will have to adapt. > >

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread rusi
On Thursday, October 31, 2013 3:41:41 PM UTC+5:30, Mark Lawrence wrote: > On 31/10/2013 07:37, rusi wrote: > > If Mark had not been rude to Jonas and explained to him at a little more > > length, maybe he would not be assholing in full-blast. > What rubbish. The OP was asked re

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread rusi
On Thursday, October 31, 2013 4:42:15 PM UTC+5:30, Antoon Pardon wrote: > Op 31-10-13 08:37, rusi schreef: > > 2. Antoon: I was a bit surprised at your siding with the indentation > > business. > > As an old-geezer programmer I can think of a number of reasons why, > >

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-31 Thread rusi
On Thursday, October 31, 2013 3:00:24 AM UTC+5:30, Joshua Landau wrote: > What I'm confounded about is this list's inability to recognise a > troll when it slaps it vocally in the face. > This isn't like Nikos. There's no "troll vs. incompetent" debate to be > had. Its usually called "entertain

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread rusi
On Thursday, October 31, 2013 7:31:14 PM UTC+5:30, Mark Lawrence wrote: > On 31/10/2013 11:40, rusi wrote: > > Please treat python as a given -- like the sun, moon and taxes." > You missed the most obvious one, trolls :) :D Only that's not an element but a set

Re: Basic Python Questions - Oct. 31, 2013

2013-10-31 Thread rusi
On Thursday, October 31, 2013 4:08:48 PM UTC+5:30, E.D.G. wrote: > Posted by E.D.G. October 31, 2013 > Hi Chris, >Thanks for the responses. Several of my questions were answered. >The calculation speed question just involves relatively > simple math such as multiplications and di

Re: Error Testing

2013-10-31 Thread rusi
On Thursday, October 31, 2013 8:50:27 PM UTC+5:30, Neil Cerutti wrote: > wrote: > > This suggests that Pascal went against established practice. > > This is false. FORTRAN used = and that was a mistake caused by > > the language being hacked together haphazardly. > Respectfully, the designers of FO

Re: Error Testing

2013-10-31 Thread rusi
On Thursday, October 31, 2013 11:20:52 PM UTC+5:30, Denis McMahon wrote: > On Thu, 31 Oct 2013 09:05:04 -0700, rusi wrote: > > If I say: "My uncle knows more about flying planes than > > the Wright brothers" am I disrespecting the Wright brothers?? > No, but that'

Re: personal library

2013-10-31 Thread rusi
On Wednesday, October 30, 2013 10:18:20 AM UTC+5:30, Chris Angelico wrote: > On Wed, Oct 30, 2013 at 3:33 PM, Ben Finney wrote: > > Chris Angelico writes: > >> *Definitely* use source control. > > +1, but prefer to call it a “version control system” which is (a) more > > easily searched on the in

Re: Error Testing

2013-10-31 Thread rusi
On Friday, November 1, 2013 8:55:03 AM UTC+5:30, Mark Lawrence wrote: > On 01/11/2013 02:27, William Ray Wing wrote: > > supper computers > Somebody must have tough teeth, though thinking about it I recall people > eating bicycles :) You just have to be sufficiently non-vegetarian http://en.wik

Re: Error Testing

2013-10-31 Thread rusi
here is some hamming distance between the strings "Albert van der Horst" and "Rusi Mody". But you were objecting not to the state-er but to the statement... -- https://mail.python.org/mailman/listinfo/python-list

Re: First day beginner to python, add to counter after nested loop

2013-11-01 Thread rusi
On Friday, November 1, 2013 4:47:40 PM UTC+5:30, Alister wrote: > On Thu, 31 Oct 2013 04:07:14 -0700, rusi wrote: > > Also others (Alister?) were double-space-reply-posting as well. When > > you mean to point out a behavior without getting personal, it helps to > > point

Re: XML python to database

2013-11-01 Thread rusi
On Saturday, November 2, 2013 6:01:12 AM UTC+5:30, flebber wrote: > What I know and have learnt. > - Use lxml to open view and find info from nodes of an XML file > My main roadblock is the XML process, I am finding it unclear to understand > what tools and how to manage this process. > Most e

Re: XML python to database

2013-11-01 Thread rusi
On Saturday, November 2, 2013 7:31:20 AM UTC+5:30, flebber wrote: > Yes I have done the lxml search and learnt how to open view and query the > file. > But what is the next step in the process? To get it so that I can reliably > push XML files to my database repeatedly. > Looking for a basic stru

<    2   3   4   5   6   7   8   9   10   >